/* =======================================
   DRACULA BASE
=======================================  */
:root {
  --bg-main: #282a36;
  --bg-second: #44475a;

  --text-main: #f8f8f2;
  --text-accent: #50fa7b;
  --text-sub: #bd93f9;

  --accent: #ff79c6;
  --highlight: #f1fa8c;
  --cyan: #8be9fd;

  --glass-bg: rgba(68, 71, 90, 0.45);
  --glass-border: rgba(255, 255, 255, 0.08);

  --font-main: "Poppins", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

body {
  background: var(--bg-main);
  color: var(--text-main);
}

/* =======================================
   CONTAINER PRINCIPAL
======================================= */
.marketplace-container {
  width: 92%;
  max-width: 1300px;
  margin: 35px auto 80px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* =======================================
   HERO AREA
======================================= */
.hero-area {
  text-align: center;
  padding-top: 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-title span {
  color: var(--highlight);
  font-size: 3.2rem;
}

.hero-sub {
  color: #ddd;
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.search-box {
  margin: 0 auto;
  width: 100%;
  max-width: 700px;

  display: flex;
  gap: 12px;
  padding: 14px 18px;

  border-radius: 18px;
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 1rem;
}

.search-box button {
  background: var(--btn-bg);
  border: none;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.25s;
}

.search-box button:hover {
  transform: translateY(-2px);
  background: var(--text-accent);
  color: #000;
}

/* BADGES */
.hero-badges {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.badge {
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* GLASS */
.glass {
  color: var(--cyan);
  background: var(--bg-second);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}

.search-box {
  background: var(--glass-bg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* =======================================
   FILTROS
======================================= */
.filters-area {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  margin: auto;
}

/* SELECT — Glassmorphism moderno */
.filter-group select {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);

  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  font-size: 0.95rem;
  font-weight: 500;

  cursor: pointer;
  transition: 0.28s ease;

  box-shadow: inset 0 0 0 rgba(255, 255, 255, 0), 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* Hover (leve brilho) */
.filter-group select:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(139, 233, 253, 0.25);
}

/* Focus (animação acendendo) */
.filter-group select:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 12px rgba(139, 233, 253, 0.45),
    inset 0 0 18px rgba(139, 233, 253, 0.25);
  transform: translateY(-2px);
}

/* OPTIONS — Fundo escuro elegante + highlight */
.filter-group select option {
  background: #1c1d26; /* bem escuro, moderno */
  color: var(--text-main);
  padding: 10px;
  border: none;
}

/* Option hover (funciona no Chrome/Brave/Edge) */
.filter-group select option:hover {
  background: #2b2d3a;
}

/* =======================================
   GRID DE AUTOMAÇÕES
======================================= */
.autos-section {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cyan);
}

/* CARD */
.card {
  border-radius: 18px;
  transition: 0.25s;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35);
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.auto-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8f8f2;
}

.rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}

.stars {
  color: #f1fa8c;
  letter-spacing: 1px;
}

.rating-text {
  opacity: 0.6;
}

.auto-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.price-badge {
  padding: 6px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.8rem;
}

.price-badge.paid {
  background: linear-gradient(135deg, #50fa7b, #5af78e);
  color: #000;
}

.price-badge.free {
  background: rgba(255, 255, 255, 0.12);
}

.platform-chip {
  background: rgba(139, 233, 253, 0.15);
  border: 1px solid rgba(139, 233, 253, 0.35);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
}

.auto-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag.gray {
  background: rgba(255, 255, 255, 0.1);
}

.btn-product.primary {
  margin-top: 18px;
  background: #50fa7b;
  color: #000;
  font-weight: 700;
}

/* DESCRIPTION */
.auto-desc {
  color: #ddd;
  font-size: 0.85rem;
  max-height: 3.8em;
  overflow: hidden;
  line-height: 1.4;
}

.auto-desc.expanded {
  max-height: 1000px;
}

.show-more-btn {
  color: var(--cyan);
  font-size: 0.85rem;
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: underline;
  margin-top: -4px;
}

/* BUTTON LOAD MORE */
.btn-show-more2 {
  margin: 0 auto;
  padding: 11px 30px;
  border-radius: 10px;
  background: transparent;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  cursor: pointer;
  font-weight: 600;
  transition: 0.25s;
}

.btn-show-more2:hover {
  background: var(--cyan);
  color: #000;
  transform: translateY(-2px);
}

.pagination {
  margin: 40px auto;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.pagination button {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  color: white;
  cursor: pointer;
  transition: 0.25s;
  font-size: 14px;
}

.pagination button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.pagination button.active {
  background: rgba(111, 106, 255, 0.5);
  border-color: rgba(111, 106, 255, 0.8);
  font-weight: 600;
}

.pagination button.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.active-filters {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.filter-chip {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.85rem;
}

.filter-chip button {
  margin-left: 8px;
  cursor: pointer;
  background: transparent;
  border: none;
  color: #ff6b6b;
  font-size: 1rem;
  font-weight: bold;
  padding: 0;
}

.tag-click {
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.tag-click:hover {
  transform: translateY(-1px);
  background-color: var(--accent-color, #6c5ce7);
  color: #fff;
}

.tag-click:active {
  transform: scale(0.95);
}

/* RESPONSIVIDADE */

/* =======================================
   MOBILE — até 480px
======================================= */
@media (max-width: 480px) {
  .marketplace-container {
    width: 92%;
    margin-top: 20px;
    gap: 35px;
  }

  .hero-title {
    font-size: 1.95rem;
    line-height: 1.25;
  }

  .hero-sub {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .search-box {
    gap: 8px;
    padding: 12px 14px;
  }

  .search-box button {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .hero-badges {
    flex-direction: column;
    gap: 10px;
  }

  /* Filtros */
  .filters-area {
    flex-direction: column;
    gap: 14px;
    width: 100%;
    align-items: stretch;
  }

  .filter-group label {
    font-size: 0.85rem;
  }

  .filter-group select {
    width: 100%;
    font-size: 0.9rem;
    padding: 11px 14px;
  }

  .card .auto-thumb {
    height: 160px;
  }

  /* Texto dos cards */
  .auto-title {
    font-size: 1.05rem;
  }

  .auto-desc {
    font-size: 0.82rem;
  }

  /* Paginação */
  .pagination {
    gap: 6px;
  }

  .pagination button {
    padding: 7px 10px;
    font-size: 13px;
  }
}

.cta-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.btn-product {
  flex: 1;
  text-align: center;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 600;
  text-decoration: none;
  transition: 0.25s;
}

.btn-product.primary {
  background: var(--text-accent);
  color: rgba(0, 0, 0, 0.74);
}

.btn-product:hover {
  background: var(--highlight);
  color: #000;
}

/* =======================================
   TABLETS — 481px a 900px
======================================= */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .search-box {
    max-width: 600px;
  }

  .filters-area {
    gap: 16px;
    flex-wrap: wrap;
  }

  .cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
  }

  @media (min-width: 1600px) {
    .cards-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  @media (max-width: 900px) {
    .cards-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 22px;
    }
  }

  @media (max-width: 480px) {
    .cards-grid {
      grid-template-columns: 1fr;
      gap: 22px;
    }
  }

  .card .auto-thumb {
    height: 165px;
  }

  .auto-title {
    font-size: 1.1rem;
  }
}

/* =======================================
   TELAS GRANDES — acima de 1300px
======================================= */
@media (min-width: 1300px) {
  .marketplace-container {
    max-width: 1500px;
  }

  .card .auto-thumb {
    height: 190px;
  }

  .auto-title {
    font-size: 1.25rem;
  }
}
