/* ═══════════════════════════════════════════════════════════════
   Varzea Fest — Public Frontend Styles
   ═══════════════════════════════════════════════════════════════ */

/* ── Public Body ────────────────────────────────────────────── */
.public-body {
  background: #ffffff;
  color: var(--gray-800);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  padding-top: 64px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.public-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
}

.public-navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green-800);
}

.navbar-brand:hover { text-decoration: none; }

.navbar-logo { font-size: 1.5rem; }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: all 0.15s;
}

.nav-link:hover {
  color: var(--green-700);
  background: var(--green-50);
  text-decoration: none;
}

.nav-link-admin {
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 600;
  border: 1px solid var(--green-200);
}

.nav-link-admin:hover {
  background: var(--green-200);
  border-color: var(--green-400);
}

.nav-btn { padding: 0.35rem 0.85rem; }

/* ── Hero Section ───────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #14532d 0%, #166534 40%, #15803d 100%);
  color: white;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--green-300);
  display: block;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions .btn {
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
}

.hero-actions .btn-primary {
  background: white;
  color: var(--green-800);
  border: none;
}

.hero-actions .btn-primary:hover {
  background: var(--green-50);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-actions .btn-outline-light {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
}

.hero-actions .btn-outline-light:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
}

/* ── Hero Stats ─────────────────────────────────────────────── */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
}

.hero-stat-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

/* ── Section ────────────────────────────────────────────────── */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.section-header p {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 500px;
  margin: 0 auto;
}

.section-alt {
  background: var(--gray-50);
}

/* ── Event Cards Grid (Container Central Dinamico) ──────────── */
.eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.evento-card {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.evento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.evento-card-header {
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.evento-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
  line-height: 1.3;
}

.evento-card-body {
  padding: 0 1.25rem 1rem;
}

.evento-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.evento-card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.evento-card-meta-item .meta-icon {
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.evento-card-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gray-50);
}

.evento-card-teams {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.evento-card-teams strong {
  color: var(--gray-800);
}

/* ── Empty State ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  grid-column: 1 / -1;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.25rem;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--gray-400);
  font-size: 0.9rem;
}

/* ── Filtros / Search ───────────────────────────────────────── */
.filtros-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.filtro-input {
  flex: 1;
  min-width: 220px;
  padding: 0.625rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.filtro-input:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.filtro-select {
  padding: 0.625rem 2rem 0.625rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  background: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.filtro-select:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.filtro-count {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-left: auto;
}

/* ── Como Funciona ──────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.step-card {
  padding: 2rem;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 1rem;
}

.step-card h3 {
  font-size: 1.1rem;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ── Evento Show (Publico) ──────────────────────────────────── */
.evento-show-header {
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  color: white;
  padding: 3rem 0;
}

.evento-show-header .container {
  max-width: 800px;
}

.evento-show-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.evento-show-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.evento-show-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.evento-show-content {
  padding: 2rem 0;
}

.evento-show-content .container {
  max-width: 800px;
}

.evento-show-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.evento-show-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.evento-info-box {
  background: var(--gray-50);
  border-radius: 10px;
  padding: 1.25rem;
}

.evento-info-box h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin-bottom: 0.35rem;
}

.evento-info-box .info-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-800);
}

.evento-show-inscricoes {
  margin-top: 2rem;
}

.evento-show-inscricoes h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--gray-800);
}

/* ── Footer ─────────────────────────────────────────────────── */
.public-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
}

.footer-brand p {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  line-height: 1.5;
}

.footer-links h4 {
  color: white;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.footer-links a {
  display: block;
  color: var(--gray-400);
  font-size: 0.85rem;
  padding: 0.25rem 0;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--green-400);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
}

/* ═══════════════════════════════════════════════════════════════
   Convite Page (Email Link)
   ═══════════════════════════════════════════════════════════════ */

.convite-card {
  max-width: 560px;
  margin: 2rem auto;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  overflow: hidden;
}

.convite-header {
  text-align: center;
  padding: 2.5rem 2rem 1.5rem;
  background: linear-gradient(135deg, var(--green-50), white);
  border-bottom: 1px solid var(--gray-100);
}

.convite-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.convite-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.convite-header p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.5;
  max-width: 400px;
  margin: 0 auto;
}

.convite-detalhes {
  padding: 1.5rem 2rem;
}

.convite-detalhe {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.convite-detalhe:last-child {
  border-bottom: none;
}

.convite-label {
  font-size: 0.82rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.convite-valor {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  text-align: right;
}

.convite-codigo {
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--green-700);
  background: var(--green-50);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.convite-acoes {
  padding: 1.5rem 2rem 2.5rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  text-align: center;
}

.convite-botoes {
  display: flex;
  gap: 0.75rem;
  max-width: 400px;
  margin: 0 auto;
}

.convite-divider {
  font-size: 0.8rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  position: relative;
}

.convite-divider::before,
.convite-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: var(--gray-200);
}

.convite-divider::before { left: 0; }
.convite-divider::after { right: 0; }

.convite-form {
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

.convite-form-grid {
  display: grid;
  gap: 0.85rem;
}

.convite-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.convite-form-group .painel-form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
}

.convite-form-group .painel-form-input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.convite-form-group .painel-form-input:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.convite-form-group .painel-form-input[readonly] {
  background: var(--gray-50);
  color: var(--gray-500);
  cursor: not-allowed;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .eventos-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .evento-show-info-grid { grid-template-columns: 1fr; }
  .public-body { padding-top: 56px; }
  .public-navbar { height: 56px; }
}
