/*
Theme Name: Talentos do Agro
Author: Antigravity
Description: Tema premium focado em alta conversão para mentorias do agronegócio, construído com UI/UX inspirado em plataformas de streaming (Estilo Netflix).
Version: 1.0.0
Text Domain: talentos-do-agro
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
  --bg-main: #050505;
  --bg-secondary: #0f0f0f;
  --green-agro: #2D5A27;
  --green-neon: #3ed132;
  --text-main: #ffffff;
  --text-muted: #aaaaaa;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  height: 85vh;
  width: 100vw;
  background: url('./assets/hero_background.png') no-repeat center center/cover;
  display: flex;
  align-items: flex-end;
  padding: 50px 4%;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, var(--bg-main) 0%, rgba(5,5,5,0.4) 60%, rgba(5,5,5,0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-metadata {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.hero-metadata span.match {
  color: var(--green-neon);
}

.hero-metadata span.age {
  border: 1px solid rgba(255,255,255,0.4);
  padding: 2px 6px;
  border-radius: 4px;
}

.hero-desc {
  font-size: 1.2rem;
  font-weight: 400;
  color: #e5e5e5;
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.4;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--text-main);
  color: var(--bg-main);
}
.btn-primary:hover {
  background-color: rgba(255,255,255,0.7);
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.btn-secondary {
  background-color: var(--green-agro);
  color: var(--text-main);
}
.btn-secondary:hover {
  background-color: #3b7433;
  box-shadow: 0 0 20px rgba(45, 90, 39, 0.8);
}

/* --- TRILHAS (CAROUSELS) --- */
.trilhas-container {
  margin-top: -30px;
  position: relative;
  z-index: 5;
  padding-bottom: 50px;
}

.trilha {
  margin-bottom: 3rem;
}

.trilha-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-left: 4%;
  margin-bottom: 0.8rem;
}

.slider-wrapper {
  position: relative;
  overflow: visible;
}

.slider-track {
  display: flex;
  gap: 10px;
  padding: 0 4%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.slider-track::-webkit-scrollbar {
  display: none; /* Esconde scrollbar nativo */
}

/* O item possui fallback caso não carregue a imagem da classe cover */
.card-item {
  flex: 0 0 auto;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s ease;
}

/* Especificações para diferentes formatos *Netflix style* */
.card-item.horizontal {
  width: 300px;
  aspect-ratio: 16/9;
  background-color: var(--bg-secondary);
}

.card-item.vertical {
  width: 200px;
  aspect-ratio: 9/16;
  background-color: var(--bg-secondary);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Efeito Hover do Card e do Badge */
.card-item:hover {
  transform: scale(1.1);
  z-index: 10;
  box-shadow: 0 10px 25px rgba(0,0,0,0.9), 0 0 15px rgba(45,90,39, 0.6);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-item:hover .card-overlay {
  opacity: 1;
}

.card-overlay-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.card-overlay-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--green-agro);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 10px rgba(62, 209, 50, 0.5);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.card-item:hover .card-badge {
  opacity: 1;
  transform: translateY(0);
}

/* --- FOOTER --- */
footer {
  background-color: #000000;
  padding: 50px 4%;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid #1a1a1a;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.selo-nr01 {
  display: inline-block;
  padding: 5px 15px;
  border: 1px solid var(--green-agro);
  color: var(--green-neon);
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-main);
  text-decoration: underline;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-desc {
    font-size: 1rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .card-item.horizontal {
    width: 260px;
  }
  .card-item.vertical {
    width: 160px;
  }
}
