/* ==========================
   Aventureiro Aleatório - UI
   Ajuste visual (sem mexer no HTML)
   ========================== */

:root{
  --bg: #0b1411;
  --surface: rgba(16, 25, 21, 0.72);
  --surface-solid: #101915;
  --panel: rgba(23, 36, 30, 0.70);
  --text: #ecf2ee;
  --muted: #b9c7bf;
  --accent: #c8ff4f;
  --accent-2: #ffbf47;
  --border: rgba(255,255,255,.10);
  --shadow: 0 12px 30px rgba(0,0,0,.35);
}

/* Reset */
*{ margin:0; padding:0; box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  font-family: 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(200,255,79,.12), transparent 60%),
              radial-gradient(900px 500px at 85% 10%, rgba(255,191,71,.10), transparent 55%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Container (padrão em coluna para corrigir layout das seções) */
.container{
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* =====================
   Header
   ===================== */
header{
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(16,25,21,.92), rgba(16,25,21,.65));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 14px 0;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
}


header nav ul{
  list-style:none;
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

header nav a{
  display:inline-block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
  text-decoration:none;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}

header nav a:hover{
  background: rgba(200,255,79,.10);
  border-color: rgba(200,255,79,.22);
  color: var(--accent);
  transform: translateY(-1px);
}

.header-image{
  width: 160px;
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.35));
}

/* =====================
   Hero
   ===================== */
.hero{
  position: relative;
  padding: 84px 0;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11,20,17,.10), rgba(11,20,17,.92)),
    url('./images/hero2.jpg') center/cover no-repeat;
  border-bottom: 1px solid var(--border);
}

/* Marca d'água (logo) no Hero */
.hero::before{
  content:"";
  position:absolute;
  inset: 0;
  background: url('./images/logo-watermark.png') no-repeat;
  background-position: 92% 70%;
  background-size: min(520px, 52vw);
  opacity: .10;
  filter: saturate(1.1) contrast(1.05);
  pointer-events:none;
}

.hero::after{
  content:"";
  position:absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 20% 10%, rgba(200,255,79,.18), transparent 60%),
    radial-gradient(900px 420px at 80% 15%, rgba(255,191,71,.14), transparent 60%);
  pointer-events:none;
}

.hero .container{ position: relative; z-index: 1; }

.hero h2{
  font-family: 'Secular One', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--accent);
  margin-bottom: 14px;
  text-shadow: 0 10px 22px rgba(0,0,0,.35);
}

.hero p{
  color: var(--muted);
  max-width: 920px;
  margin: 0 auto;
}

.hero .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  margin-top: 22px;
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(200,255,79,1), rgba(170,236,55,1));
  color: #0a120f;
  text-decoration:none;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.25);
  box-shadow: 0 14px 30px rgba(200,255,79,.12);
  transition: transform .12s ease, filter .12s ease;
}

.hero .btn:hover{ transform: translateY(-2px); filter: brightness(1.05); }

/* =====================
   Seções
   ===================== */
section{
  padding: 64px 0;
}

.section-subtitle{
  color: var(--muted);
  margin-top: -2px;
  margin-bottom: 16px;
}

h2{
  font-family: 'Secular One', sans-serif;
  color: var(--accent);
  font-size: 30px;
  margin-bottom: 14px;
}

.sobre p,
.blog p,
.rotas p{
  color: var(--muted);
}

/* Cards/Blocos */
.post{
  background: linear-gradient(180deg, rgba(34,54,44,.85), rgba(24,38,31,.85));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 18px;
  border-radius: 16px;
}

.post h3{
  color: var(--accent);
  margin-bottom: 8px;
}

.blog-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

/* =====================
   Rotas recentes
   ===================== */
.rotas-recentes .container{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.rotas-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.route-card{
  background: linear-gradient(180deg, rgba(34,54,44,.85), rgba(24,38,31,.85));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 18px;
  border-radius: 16px;
}

.route-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.route-badge{
  display:inline-flex;
  align-items:center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(200,255,79,.12);
  border: 1px solid rgba(200,255,79,.22);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.route-date{ color: var(--muted); font-size: 13px; }

.route-card h3{ color: var(--text); margin-bottom: 6px; }
.route-card p{ color: var(--muted); }

.route-meta{
  display:flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 12px;
  color: rgba(236,242,238,.90);
  font-size: 14px;
}

.route-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration:none;
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(16,25,21,.45);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.btn-secondary:hover{
  transform: translateY(-1px);
  border-color: rgba(200,255,79,.22);
  background: rgba(200,255,79,.08);
}

/* =====================
   Loja
   ===================== */
.loja .container{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.loja-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.product-card{
  display:block;
  text-decoration:none;
  background: linear-gradient(180deg, rgba(34,54,44,.85), rgba(24,38,31,.85));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 18px;
  border-radius: 16px;
  color: var(--text);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

/* === FIX: botão "Ver no Mercado Livre" sempre no pé do card === */

/* o card vira uma coluna */
.produto-card{
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* imagem fica no topo, corpo ocupa o resto */
.produto-card > img{
  flex: 0 0 auto;
}

/* corpo do card cresce para preencher */
.produto-body{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* empurra o bloco de ações para o final */
.produto-body .produto-actions{
  margin-top: auto;
}


.product-card:hover{
  transform: translateY(-2px);
  border-color: rgba(200,255,79,.22);
  background: linear-gradient(180deg, rgba(40,62,50,.90), rgba(24,38,31,.85));
}

.product-icon{
  font-size: 28px;
  margin-bottom: 10px;
}

.product-card h3{ margin-bottom: 6px; }
.product-card p{ color: var(--muted); }

.product-cta{
  display:inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 800;
}

/* Vídeos */
#videos iframe{
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Rotas */
.rotas .container{
  display:flex;
  flex-direction: column;
  gap: 14px;
}

.mapa{
  width: 100%;
}

.mapa iframe{
  width: 100%;
  height: min(520px, 70vh);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* =====================
   Footer
   ===================== */
footer{
  background: linear-gradient(180deg, rgba(16,25,21,.85), rgba(16,25,21,1));
  border-top: 1px solid var(--border);
  padding: 22px 0;
  text-align:center;
}

footer p{ color: var(--muted); }

footer .social{
  margin-top: 10px;
}

footer .social a{
  margin: 0 10px;
  color: var(--accent);
  text-decoration:none;
  font-weight: 600;
}

footer .social a:hover{ text-decoration: underline; }

/* =====================
   Responsivo
   ===================== */
@media (max-width: 900px){
  header h1{ font-size: 28px; }
  .header-image{ width: 120px; }
}

@media (max-width: 720px){
  header .container{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  header nav ul{ gap: 8px; }

  header nav a{
    padding: 8px 10px;
    font-size: 14px;
  }

  .header-image{ width: 110px; }

  .hero{ padding: 74px 0; }

  .hero::before{
    background-position: 50% 85%;
    background-size: min(420px, 78vw);
    opacity: .08;
  }
}

@media (max-width: 420px){
  header h1{ font-size: 24px; }
  .header-image{ width: 96px; }
  h2{ font-size: 26px; }

  .hero::before{
    background-size: min(340px, 86vw);
    opacity: .07;
  }
}

@media (max-width: 768px) {
    .logo img {
        height: 50px;
    }
}

/* Helpers */
.section-stack{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

/* Marcar item ativo no menu */
nav a.active{
  color: #c8ff4f;
}

/* Loja page */
.loja-page{
  padding: 60px 0;
  width: 100%;
}

.loja-grid{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.produto-card{
  background: #22362c;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.produto-card img{
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.produto-body{
  padding: 16px;
}

.produto-body h3{
  color: #c8ff4f;
  margin-bottom: 6px;
}

.produto-actions{
  margin-top: 12px;
}

.loja-disclaimer{
  margin-top: 10px;
  opacity: 0.85;
}

/* Responsivo extra */
@media (max-width: 480px){
  .produto-card img{ height: 140px; }
}

.loja-status{
  opacity: .85;
  margin-top: 6px;
}

.produto-tag{
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(200,255,79,0.14);
  color: #c8ff4f;
  border: 1px solid rgba(200,255,79,0.25);
  margin-bottom: 10px;
}

/* Se der erro no JSON */
.loja-erro{
  background: #22362c;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px;
}

/* Botão no seu padrão (se já tiver, mantém o seu) */
.btn.ml-btn{
  display: inline-block;
  padding: 10px 18px;
  background: linear-gradient(135deg, #c8ff4f, #9fe000);
  color: #1b2b23;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border-radius: 30px;
  transition: all .25s ease;
  box-shadow: 0 4px 12px rgba(200,255,79,0.3);
}
.btn.ml-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(200,255,79,0.5);
  background: linear-gradient(135deg, #d4ff66, #b8ff2c);
}

.loja-filtros{
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 10px;
}

.filtro-btn{
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(16,25,21,0.35);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}

.filtro-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(200,255,79,0.30);
}

.filtro-btn.active{
  background: rgba(200,255,79,0.16);
  border-color: rgba(200,255,79,0.35);
  color: #c8ff4f;
}

/* ============================= */
/* FIX FINAL – CARD + BOTÃO     */
/* ============================= */

/* Card vira coluna */
.produto-card{
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Corpo cresce */
.produto-body{
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Botão vai para o pé */
.produto-body .produto-actions{
  margin-top: auto;
}

/* Corrige a tag (Segurança / Tecnologia etc) */
.produto-tag{
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: auto;
  padding: 6px 12px;
  border-radius: 999px;
}

/* ============================= */
/* FIX: Rolês recentes           */
/* Botões sempre no pé do card   */
/* ============================= */

.rotas-recentes .route-card{
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rotas-recentes .route-actions{
    margin-top: auto;
    padding-top: 14px;
}

/* ============================= */
/* FIX: Loja da HOME            */
/* Botão sempre no pé da box    */
/* ============================= */

.loja .product-card{
    display: flex;
    flex-direction: column;
    height: 100%;
}

.loja .product-cta{
    margin-top: auto;
    padding-top: 14px;
}

:root{
  --header-h: 110px; /* ajuste se seu header for maior/menor */
}

.hero{
    aspect-ratio: 16 / 5;   /* controla o formato */
    min-height: 420px;      /* altura mínima */
    max-height: 650px;      /* evita ficar gigante */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero{
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#home,
#sobre,
#videos,
#rotas,
#rotas-recentes,
#loja,
#onde-assistir {
  scroll-margin-top: 110px;
}

/* ============================= */
/* Seção: Onde me encontrar      */
/* ============================= */

.onde-assistir{
  padding: 60px 0;
}

.onde-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 18px;
  align-items: stretch;
}

.onde-card{
  background: rgba(34, 54, 44, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px;
  display: flex;              /* ícone + conteúdo lado a lado */
  flex-direction: row;
  gap: 14px;
  text-decoration: none;
  color: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
}

.onde-card:hover{
  transform: translateY(-2px);
  border-color: rgba(200,255,79,0.25);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.onde-card.destaque{
  border-color: rgba(200,255,79,0.25);
  background: rgba(34, 54, 44, 0.70);
}

/* Ícone fixo (não estoura) */
.onde-icon{
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(16, 25, 21, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
}

.onde-icon img{
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

/* Conteúdo em coluna + CTA no pé */
.onde-content{
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.onde-content h3{
  margin-bottom: 6px;
}

.onde-cta{
  margin-top: auto;           /* cola no rodapé */
  padding-top: 14px;
  display: inline-block;
  color: #c8ff4f;
  font-weight: 700;
}

html {
  scroll-behavior: smooth;
}





/* ==================================================
   RESPONSIVIDADE MOBILE — ajustes sem alterar o visual
   ================================================== */
img,
video,
iframe{
  max-width: 100%;
}

body{
  overflow-x: hidden;
}

header nav{
  min-width: 0;
}

@media (max-width: 900px){
  header{
    position: relative;
  }

  header .container{
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  header nav ul{
    gap: 4px;
  }

  header nav a{
    padding: 7px 8px;
    font-size: 13px;
  }

  .header-image{
    width: 100px;
  }

  #home,
  #sobre,
  #videos,
  #rotas,
  #rotas-recentes,
  #loja,
  #onde-assistir{
    scroll-margin-top: 20px;
  }
}

@media (max-width: 720px){
  .container{
    width: min(100% - 32px, 1200px);
  }

  header .container{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0 12px;
  }

  .logo img{
    height: 54px;
  }

  header nav{
    width: 100%;
  }

  header nav ul{
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    padding: 2px 2px 6px;
  }

  header nav ul::-webkit-scrollbar{
    display: none;
  }

  header nav li{
    flex: 0 0 auto;
  }

  header nav a{
    white-space: nowrap;
    padding: 8px 10px;
    font-size: 13px;
    background: rgba(255,255,255,.025);
    border-color: rgba(255,255,255,.06);
  }

  .header-image{
    display: none;
  }

  section,
  .loja-page,
  .onde-assistir{
    padding: 48px 0;
  }

  .hero{
    aspect-ratio: auto;
    min-height: 500px;
    max-height: none;
    padding: 64px 0;
    background-position: center;
  }

  .hero h2{
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1.12;
  }

  .hero p{
    font-size: 15px;
    line-height: 1.65;
  }

  h2{
    font-size: 27px;
    line-height: 1.2;
  }

  #videos iframe{
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
  }

  .mapa iframe{
    height: 420px;
  }

  .blog-grid,
  .rotas-grid,
  .loja-grid,
  .onde-grid{
    grid-template-columns: minmax(0, 1fr);
  }

  .route-card,
  .product-card,
  .produto-card,
  .onde-card,
  .post{
    min-width: 0;
  }

  .route-actions,
  .produto-actions{
    width: 100%;
  }

  .route-actions .btn-secondary,
  .produto-actions .btn,
  .btn.ml-btn{
    width: 100%;
    text-align: center;
  }

  .loja-filtros{
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    padding-bottom: 5px;
  }

  .loja-filtros::-webkit-scrollbar{
    display: none;
  }

  .filtro-btn{
    flex: 0 0 auto;
    white-space: nowrap;
  }

  footer .social{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
  }

  footer .social a{
    margin: 0;
  }
}

@media (max-width: 480px){
  .container{
    width: min(100% - 24px, 1200px);
  }

  section,
  .loja-page,
  .onde-assistir{
    padding: 40px 0;
  }

  .hero{
    min-height: 470px;
    padding: 54px 0;
  }

  .hero .btn{
    width: 100%;
    max-width: 320px;
  }

  .mapa iframe{
    height: 360px;
  }

  .route-top{
    align-items: flex-start;
  }

  .route-meta{
    gap: 8px 10px;
    font-size: 13px;
  }

  .onde-card{
    padding: 16px;
    gap: 12px;
  }

  .produto-card img{
    height: 180px;
  }

  footer p{
    font-size: 13px;
  }
}

@media (max-width: 360px){
  .container{
    width: min(100% - 20px, 1200px);
  }

  .logo img{
    height: 48px;
  }

  .hero h2{
    font-size: 28px;
  }

  .mapa iframe{
    height: 320px;
  }

  .onde-card{
    flex-direction: column;
  }
}
