/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  --bg:       #080d1a;
  --bg2:      #0d1424;
  --card:     #0f1829;
  --border:   rgba(255,255,255,0.07);
  --border-h: rgba(124,58,237,0.5);
  --muted:    #4b4e53;
  --text:     #e4edf8;
  --accent1:  #7c3aed;
  --accent2:  #06b6d4;
  --glass:    rgba(255,255,255,0.04);
  --radius:   14px;
  --max:      1100px;
  --header-h: 64px;

  /* Lab badge colors */
  --lab1: #7c3aed;
  --lab2: #06b6d4;
  --lab3: #10b981;
  --labm: #f59e0b;
}

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: 'Poppins', system-ui, Segoe UI, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124,58,237,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(6,182,212,0.08) 0%, transparent 60%);
  background-attachment: fixed;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ─── Typography ────────────────────────────────────────── */
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: 1.7rem; font-weight: 700; margin-bottom: 6px; }
h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; line-height: 1.35; }
p  { line-height: 1.65; }

.gradient-text {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 6px;
}

.section-desc {
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 28px;
  font-size: 0.98rem;
  text-align: justify;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(90deg, #F6C27A, #5DB4C9, #5D6A73);
  color: white;
  box-shadow: 0 4px 20px rgba(93,106,115,0.35); /* sombra suave baseada no último tom */
}

.btn-primary:hover { box-shadow: 0 8px 28px rgba(124,58,237,0.5); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--border-h); background: var(--glass); }

.btn-sm {
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.82rem;
}
.btn-sm:hover { background: rgba(255,255,255,0.09); border-color: var(--border-h); }

/* ─── Header (Sticky + Glassmorphism) ──────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8,13,26,0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.brand {
  font-weight: 700;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-icon { font-size: 1.3rem; }

.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

/* Logo do Instituto Federal — fundo branco com cantos arredondados */
.brand-logo-if {
  height: 40px;
  background: #ffffff;
  border-radius: 8px;
  padding: 4px 10px;
}

.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--glass); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.3rem;
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  padding: 18px 0 0;
  background: linear-gradient(90deg, #08BCE4, #5555B7, #03102F);
}

.hero-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}
.hero-text { flex: 1; }

.hero-badge {
  display: inline-block;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  color: #c4b5fd;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: .04em;
}

.hero h1 { margin-bottom: 14px; }

.lead { color: var(--muted); margin-bottom: 10px; font-size: 1rem; }
.date { color: var(--accent2); font-weight: 600; margin-bottom: 24px; font-size: 0.95rem; }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Logo do evento no hero ── */



/* Quando a tela for menor que 600px (celular) */
@media (max-width: 600px) {
  .hero-logo {
    flex-direction: column; /* força a ficar um embaixo do outro */
    gap: 10px;
  }
}

.hero-header {
  display: flex;
  justify-content: center;   /* centraliza no topo */
  align-items: center;
  margin-top: 20px;          /* espaço do topo da página */
}

.hero-logo {
  display: flex;
  align-items: center;       /* logo e título na mesma linha */
  gap: 20px;                 /* espaço entre logo e título */
}

.hero-logo img {
  max-width: 180px;
  height: auto;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem); /* responsivo */
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;       /* impede quebra de linha */
  text-align: center;
}
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.6rem;       /* reduz fonte no mobile */
  }
  .hero-logo {
    gap: 12px;               /* diminui espaço entre logo e título */
  }
}


.btn-container {
  text-align: center;
  margin-top: 20px;
}

.discover-btn {
  border: 2px solid #08BCE4;
  border-radius: 25px;       /* cantos arredondados */
  padding: 12px 30px;        /* tamanho parecido com o antigo */
  background: transparent;
  color: #08BCE4;
  font-weight: 700;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.btn-container {
  text-align: center;
  margin-top: 20px;
}

.discover-btn {
  border: 2px solid #08BCE4;
  border-radius: 25px;       /* cantos arredondados */
  padding: 12px 30px;
  background: transparent;
  color: #08BCE4;
  font-weight: 700;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.hero-image {
  opacity: 0.7;
  width: 100%;
  height: auto;
}

.btn-container {
  display: flex;
  justify-content: center; /* centraliza em todos os dispositivos */
  margin-top: 20px;
}
/* Botão centralizado */
.btn-container {
  width: 100%;
  text-align: center;        
  margin: 20px 0;
  transform: translateX(-10px); /* desloca só um pouquinho para a esquerda */
}

.discover-btn {
  border: 2px solid #08BCE4;
  border-radius: 25px;
  padding: 14px 32px;
  background: transparent;   
  color: #08BCE4;            
  font-weight: 700;
  cursor: pointer;
  transition: background .3s, color .3s;
  display: inline-block;
}
.discover-btn:hover {
  background: #08BCE4;       
  color: white;              
}
/* Caixa de instruções centralizada e justificada */
.instructions-box {
  margin: 0 auto;           /* centraliza horizontalmente */
  display: block;
  font-size: 0.7rem;
  max-width: 600px;         /* largura máxima */
  line-height: 1.3;
  color: white;
  text-align: justify;      /* justifica todas as linhas */
  padding-top: 12px;        /* espaço em relação ao topo/título */
}

/* Ajustes para telas menores */
@media (max-width: 768px) {
  .instructions-box {
    font-size: 0.55rem;
    max-width: 95%;
    padding-top: 8px;
  }
}




/* Logo escondida na blusa */
.hidden-overlay {
  position: absolute;
  left: 6%;          
  top: 52%;          /* sobe bem mais para cair na blusa */
  width: 08vw;       /* menor */
  opacity: 0.35;     
  pointer-events: auto;
}

/* Logo oficial ao lado do título maior */
#hiddenLogo {
  max-width: 100px;  
}



.hero-event-logo {
  width: min(200px, 70vw);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(124,58,237,0.35));
}

.hero-visual {
  position: relative;
  width: min(100%, 1100px);
  height: 260px;
  margin: 0 auto;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(15,23,42,0.35), rgba(17,24,39,0.55)),
    linear-gradient(135deg, rgba(34,211,238,0.22), rgba(168,85,247,0.24)),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 22%),
    linear-gradient(180deg, rgba(19,25,36,0.6), rgba(10,16,27,0.8));
  border: 1px solid rgba(124,58,237,0.3);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.25);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: rgba(8,13,26,0.3);
  z-index: 0;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17,24,39,0.20) 0%, rgba(17,24,39,0.05) 30%, rgba(17,24,39,0.15) 100%);
}

/* ─── Event Info ────────────────────────────────────────── */
.event-info {
  background: linear-gradient(90deg, rgba(15,23,42,0.95), rgba(17,24,39,0.92));
  border-top: 1px solid rgba(124,58,237,0.2);
  border-bottom: 1px solid rgba(124,58,237,0.2);
  padding: 28px 0;
  text-align: center;
}
.event-info .container { padding-top: 0; padding-bottom: 0; }
.event-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
}
.event-location {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 500;
}
.event-dates {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent2);
  margin: 0;
  letter-spacing: .03em;
  background: linear-gradient(90deg, #08BCE4, #5555B7, #03102F);
  background-clip: text;
  color: transparent;
}

/* ─── Countdown ─────────────────────────────────────────── */
.hero-right { 
  flex: 0 0 auto; 
}

.countdown-card {
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(6,182,212,0.08));
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 20px;
  padding: 28px 32px;
  text-align: center;
  backdrop-filter: blur(8px);
  min-width: 280px;
}

.countdown-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent2);
  margin-bottom: 16px;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 16px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
}
.countdown-unit span {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.countdown-unit small {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-top: 4px;
}
.countdown-sep {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent1);
  line-height: 1;
  margin-bottom: 14px;
  opacity: .6;
}
.countdown-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ─── Sections ──────────────────────────────────────────── */
.section { padding: 52px 0; }

.about-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
  
  background: linear-gradient(90deg, #08BCE4, #5555B7, #03102F);
  border-radius: 12px;       /* opcional, deixa cantos arredondados */
  padding: 28px;             /* espaço interno */
  color: #fff;               /* mantém o texto legível */


  border-radius: 22px;
  padding: 26px 26px 20px;
  box-shadow: 0 18px 40px rgba(87, 64, 170, 0.18);
}

.about-copy {
  padding: 12px 8px 12px 12px;
}

.about-copy h2 {
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 0.96;
  margin: 0 0 16px;
  letter-spacing: -0.05em;
  
}
.section-label {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
  color: #3d3d9c;  
}

.section-label2 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;

 color: #5DB4C9;
  
  }
  .section-label3 {
  
  background: linear-gradient(180deg, #08BCE4, #5555B7, #03102F);
  -webkit-background-clip: text; /* Safari/Chrome */
  -webkit-text-fill-color: transparent;
  background-clip: text;         /* Padrão */
  color: transparent;   
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
 
  }

.about-copy .section-desc {
  max-width: 530px;
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  line-height: 1.45;
  margin-bottom: 24px;
}

.about-visual {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual .countdown-card {
  width: min(100%, 470px);
  min-height: 270px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, rgba(15,23,42,0.48), rgba(124,58,237,0.2));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  box-shadow: inset 0 0 30px rgba(10,14,24,0.22);
}

.about-photo {
  width: min(100%, 470px);
  height: 270px;
  border-radius: 18px;
  border: 2px solid rgba(255,255,255,0.15);
  background:
    linear-gradient(120deg, rgba(18,18,27,0.15), rgba(0,0,0,0.1)),
    radial-gradient(circle at 35% 25%, rgba(248,161,92,0.32), transparent 24%),
    linear-gradient(135deg, rgba(11,16,29,0.13), rgba(12,31,51,0.6));
  box-shadow: inset 0 0 30px rgba(9,12,20,0.25);
}

/* ─── About Stats ───────────────────────────────────────── */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 4px;
}
.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: border-color .2s, transform .2s;
}

.stat-card:hover { 
  border-color: rgba(255,255,255,0.26); 
  transform: translateY(-3px); 
}

.stat-num {
  font-size: 1.8rem;   /* reduzido em relação ao 2.2rem original */
  font-weight: 800;
  color: #3d3d9c;
  white-space: nowrap; /* mantém numa linha só */
}

.stat-label {
  font-size: 0.65rem;  /* menor que 0.8rem original */
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: center;
  white-space: nowrap; /* impede quebra de linha */
  overflow: hidden;
  text-overflow: ellipsis; /* evita corte feio */
}

/* Ajuste extra para telas pequenas */
@media (max-width: 768px) {
  .stat-num { font-size: 1.4rem; }
  .stat-label { font-size: 0.55rem; }
} 
/* ─── Tabs ──────────────────────────────────────────────── */

.tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 5px;
  width: fit-content;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .25s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.tab-btn {
  padding: 9px 20px;
  border-radius: 9px;
  border: none;
  font-family: inherit;
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
  color: #fff; /* texto branco para contraste */
  background: linear-gradient(90deg, #F6C27A, #5DB4C9, #5D6A73);
}

.tab-btn:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.tab-btn.active {
  background: linear-gradient(90deg, #F6C27A, #5DB4C9, #5D6A73);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

/* imagens de fundo */
/* ─── Imagens de fundo nos 4 blocos ─── */
.stat-card:nth-child(1) {
  background-image: url("premiacoes.jpeg");
  background-size: cover;
  background-position: center;
}
.stat-card:nth-child(2) {
  background-image: url("minicursos2.jpeg");
  background-size: cover;
  background-position: center;
}
.stat-card:nth-child(3) {
  background-image: url("palestras.jpeg");
  background-size: cover;
  background-position: center;
}
.stat-card:nth-child(4) {
  background-image: url("alunos.jpeg");
  background-size: cover;
  background-position: center;
}

/* ─── Efeito hover ─── */
.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform .3s ease, box-shadow .3s ease;
}

.stat-card:hover {
  transform: scale(1.1) translateX(10px);
  z-index: 5;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}


/* ─── Course Cards ──────────────────────────────────────── */
.course-cards {
  display: flex;
  flex-direction: column; /* cards empilhados */
  gap: 10px;
}

.course-card {
  position: relative;
  overflow: hidden;
  
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #fff;

  background-image: url("minicursos.jpeg");
  background-size: 100% 300%; /* divide a altura em 3 fatias */
  background-repeat: no-repeat;
}

/* cada card mostra sua fatia exata */
.course-cards .course-card:nth-child(1) {
  background-position: center 0%;   /* topo da imagem (cabeça) */
}
.course-cards .course-card:nth-child(2) {
  background-position: center 50%;  /* parte do meio (tronco/barriga) */
}
.course-cards .course-card:nth-child(3) {
  background-position: center 100%; /* base (pernas/pés) */
}




/* overlay para legibilidade */
.course-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45); /* retângulo escuro translúcido */
  z-index: 0;
}
.course-info, .course-icon, .btn {
  position: relative;
  z-index: 1; /* mantém texto acima do overlay */
}

.course-card:hover {
  border-color: rgba(124,58,237,0.4);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(124,58,237,0.1);
}

.course-icon { 
  font-size: 1.7rem; 
  flex: 0 0 auto; 
  width: 42px; 
  text-align: center; 
}

.course-info { flex: 1; }
.course-info h3 { font-size: 0.97rem; margin-bottom: 4px; }
.course-team { color: var(--muted); font-size: 0.82rem; margin-bottom: 6px; }

/* ─── Badges de Laboratório ─────────────────────────────── */
.lab-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .04em;
}

.lab1,
.lab2,
.lab3,
.lab-maker {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff; /* texto branco para contraste */

  background: linear-gradient(90deg, #F6C27A, #5DB4C9, #5D6A73);
  border: none; /* remove borda antiga */
}



/* ─── Esgotado / Vagas ──────────────────────────────────── */
.badge-esgotado {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .04em;
  background: rgba(239,68,68,0.15);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.4);
  margin-top: 6px;
}
.vagas-restantes {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 5px;
  letter-spacing: .02em;
}
.btn-esgotado {
  background: rgba(239,68,68,0.1) !important;
  border-color: rgba(239,68,68,0.3) !important;
  color: #fca5a5 !important;
  cursor: not-allowed !important;
  pointer-events: none;
}
.course-card.esgotado {
  opacity: 0.65;
  border-color: rgba(239,68,68,0.25);
}

/* ─── Admin: Vagas Progress ─────────────────────────────── */
.vagas-section { margin: 28px 0 0; }
.vagas-section h2 { font-size: 1.05rem; margin-bottom: 16px; }
.vagas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.vaga-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color .2s;
}
.vaga-card:hover { border-color: var(--border-h); }
.vaga-card-title { font-size: .85rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.vaga-card-sub   { font-size: .75rem; color: var(--muted); margin-bottom: 8px; }
.progress-track  { height: 6px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
.progress-fill   { height: 100%; border-radius: 99px; transition: width .4s ease; }
.progress-ok     { background: linear-gradient(90deg, #10b981, #34d399); }
.progress-warn   { background: linear-gradient(90deg, #f59e0b, #fcd34d); }
.progress-full   { background: linear-gradient(90deg, #ef4444, #fca5a5); }
.vaga-count      { font-size: .8rem; font-weight: 700; margin-top: 6px; text-align: right; }

/* ─── Cards ─────────────────────────────────────────────── */
.card {
  background: linear-gradient(160deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  border-color: rgba(124,58,237,0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(2,6,23,0.5);
}

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }

/* ─── Form ──────────────────────────────────────────────── */
.form-card { box-shadow: 0 12px 40px rgba(2,6,23,0.7); }
.form-grid { display: grid; gap: 12px; }
.form-grid.two { grid-template-columns: 1fr 1fr; gap: 16px; }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.88rem;
  color: var(--muted);
}
.form-field input,
.form-field select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0d1424;
  color: var(--text);
  outline: none;
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color .2s, box-shadow .2s;
  appearance: auto;
}
.form-field select option { background: #0d1424; color: #e4edf8; }
.form-field input::placeholder { color: rgba(255,255,255,0.25); }
.form-field input:focus,
.form-field select:focus {
  border-color: rgba(124,58,237,0.8);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}

.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.reg-status { color: var(--muted); font-size: 0.88rem; }
.required-note { color: #fca5a5; font-size: 0.82rem; margin-left: auto; }

.label-row { display: flex; align-items: center; gap: 6px; }
.label-text { font-weight: 600; color: var(--text); }
.req { color: #ef4444; font-weight: 700; font-size: 0.9rem; }
.suap-req.hidden { display: none; }

/* ─── Talks ─────────────────────────────────────────────── */
.talk-card { padding: 22px; }
.talk-inner { display: flex; gap: 18px; align-items: flex-start; }
/* ─── Avatar ─── */
/* ─── Avatar ─── */
.avatar {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #F6C27A, #5DB4C9, #5D6A73); /* gradiente Infoweek */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: white;
  letter-spacing: .04em;
  box-shadow: 0 6px 18px rgba(93,106,115,0.4);
  flex-shrink: 0;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 14px;
}

/* ─── Data e horário ─── */
.talk-date {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent2); /* azul suave */
  margin-bottom: 8px;
}

/* ─── Frases abaixo dos títulos ─── */
.talk-body p,
.speaker-line,
.muted {
  color: var(--muted); /* cinza discreto */
  font-size: 0.9rem;
  margin-bottom: 0;
}

.talk-action .btn {
  background: linear-gradient(90deg, #F6C27A, #5DB4C9, #5D6A73); /* gradiente Infoweek */
  border: 1px solid rgba(93,106,115,0.4);
  color: #fff;                 /* texto branco */
  font-size: 0.8rem;           /* mantém letras pequenas */
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}

.talk-action .btn:hover {
  background: linear-gradient(90deg, #5D6A73, #5DB4C9, #F6C27A); /* gradiente invertido no hover */
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(93,106,115,0.35);
}

.talk-body { flex: 1; }
.talk-date {
  display: inline-block;
  font-size: 0.72rem;        /* pequeno */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent2);     /* azul suave */
  margin-bottom: 8px;
}

.talk-body h3 { margin-bottom: 8px; }
.talk-body p,
.speaker-line,
.muted {
  color: var(--muted);       /* cinza discreto */
  font-size: 0.9rem;
  margin-bottom: 0;
}
.speaker-line { margin-top: 12px !important; font-size: 0.88rem !important; color: var(--text) !important; }


.muted { color: var(--muted); font-size: 0.9rem; }


/* ─── Contact ───────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .2s;
}
.contact-card:hover { border-color: var(--border-h); }
.contact-icon { font-size: 1.6rem; flex-shrink: 0; }
.contact-card strong { display: block; margin-bottom: 4px; }

/* ─── Games Championship ────────────────────────────────── */


.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.game-card {
  background: linear-gradient(180deg, #000000, #2C3995, #8C95FC);
  border-radius: 12px;
  padding: 20px;
  border: none; /* opcional, remove a borda se não quiser */
  color: #fff;  /* garante contraste do texto */
}
.game-day-header {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent2);
  margin-bottom: 12px;
}
.game-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.game-desc {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}
.game-list {
  display: flex;
  flex-direction: column;
}
.game-card .btn-inscrever {
  display: block;
  padding: 10px 20px;
  border-radius: 999px;   /* formato redondo */
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #fff;

  /* fundo transparente com leve sombra do gradiente */
  background: rgba(255, 255, 255, 0.08); /* leve transparência */
  backdrop-filter: blur(4px);            /* efeito vidro fosco */
  
  border: 1px solid rgba(255,255,255,0.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.game-card .btn-inscrever:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}



/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── Toast ─────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  max-width: 360px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success {
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.4);
  color: #6ee7b7;
}
.toast.error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.35);
  color: #fca5a5;
}

/* ─── Scroll Reveal ─────────────────────────────────────── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-item {
  opacity: 1;
  transform: none;
  transition: opacity .45s ease, transform .45s ease;
}
.reveal-item.visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 32px; }
  .countdown-card { min-width: unset; width: 100%; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: 1fr; }
  .form-grid.two { grid-template-columns: 1fr; }
  .tabs { flex-wrap: wrap; }
  .nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) + 4px);
    right: 20px;
    flex-direction: column;
    background: rgba(10,15,30,0.96);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 12px;
    min-width: 200px;
    box-shadow: 0 16px 40px rgba(2,6,23,0.7);
    z-index: 200;
  }
  .nav-toggle { display: block; }
  .hero-logo { width: 100%; justify-content: flex-start; }
  .hero-event-logo { width: 140px; }
}
@media (max-width: 600px) {
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 18px; }
  .hero { padding: 48px 0 36px; }
  .tabs { width: 100%; }
  .tab-btn { flex: 1; text-align: center; padding: 9px 10px; font-size: 0.8rem; }
  .brand-logo-if { height: 32px; padding: 3px 8px; }
  .hero-event-logo { width: 110px; }
}
