/* ============================================================
   DESIGN SYSTEM — Okushiro Fotos
   ============================================================ */
:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --danger: #ef4444;
  --success: #16a34a;
  --dark: #0f172a;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --transition: 0.18s ease;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; font: inherit; }

/* TIPOGRAFIA */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.5px; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.125rem; font-weight: 600; }

/* CONTAINER */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a.nav-link:hover { color: var(--text); }

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); }
.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  border-radius: 12px;
}
.btn-full { width: 100%; }

/* ============================================================
   HERO — index
   ============================================================ */
.hero {
  background: linear-gradient(140deg, #0c1a36 0%, #1a3a6e 55%, #0c1a36 100%);
  color: #fff;
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(37,99,235,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.8);
  padding: 0.375rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
}
.hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 em {
  font-style: normal;
  color: #60a5fa;
}
.hero > .container > p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin: 0 auto 2.5rem;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FEATURES — index
   ============================================================ */
.features {
  padding: 5rem 0;
  background: var(--surface);
}
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title p {
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-size: 1rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ============================================================
   STEPS — index
   ============================================================ */
.steps-section {
  padding: 5rem 0;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem;
  text-align: center;
}
.step-number {
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.steps-grid .step h3 { margin-bottom: 0.375rem; }
.steps-grid .step p { color: var(--text-muted); font-size: 0.875rem; }

/* ============================================================
   PAGE HEADER (eventos, evento)
   ============================================================ */
.page-header {
  background: linear-gradient(140deg, #0c1a36, #1a3a6e);
  color: #fff;
  padding: 4rem 0 3rem;
  text-align: center;
}
.page-header h1 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}
.page-header p {
  color: rgba(255,255,255,0.65);
  margin-top: 0.625rem;
  font-size: 1rem;
}

/* ============================================================
   EVENTOS LIST
   ============================================================ */
.eventos-section { padding: 4rem 0; }
.eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.evento-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.evento-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.evento-card-cover {
  height: 190px;
  background: linear-gradient(135deg, #1a3a6e, #0c1a36);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  overflow: hidden;
}
.evento-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.evento-card-body { padding: 1.25rem; flex: 1; }
.evento-card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.375rem;
}
.evento-card h3 { font-size: 1.05rem; margin-bottom: 0.375rem; }
.evento-card-date { color: var(--text-muted); font-size: 0.825rem; margin-bottom: 1rem; }

/* Estados de carregamento */
.loading-state, .empty-state {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-muted);
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; }

/* ============================================================
   EVENTO SINGLE
   ============================================================ */
.evento-hero {
  background: linear-gradient(140deg, #0c1a36, #1a3a6e);
  color: #fff;
  padding: 5rem 0 4rem;
  text-align: center;
}
.evento-hero h1 { color: #fff; }
.evento-hero .evento-desc {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  margin-top: 0.75rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.evento-meta-bar {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}
.evento-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
}

.evento-cta-section {
  padding: 5rem 0;
  background: var(--surface);
  text-align: center;
}
.evento-cta-section h2 { margin-bottom: 0.75rem; }
.evento-cta-section > .container > p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2rem;
}
.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   AUTH PAGES (login, cadastro)
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  padding: 2rem 1rem;
}
.auth-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 430px;
  box-shadow: var(--shadow-lg);
}
.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-logo a {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}
.auth-logo a span { color: var(--text); }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 0.375rem; }
.auth-card > p { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 2rem; }

/* FORM */
.form-group { margin-bottom: 1.125rem; }
.form-group label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.form-group input {
  width: 100%;
  padding: 0.7rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-group input::placeholder { color: #94a3b8; }

.form-link {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}
.form-link:hover { text-decoration: underline; }

.form-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.form-footer a { color: var(--primary); font-weight: 600; }
.form-footer a:hover { text-decoration: underline; }

/* ALERT */
.alert {
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  display: none;
}
.alert.show { display: block; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2rem 0;
  font-size: 0.825rem;
}
footer strong { color: rgba(255,255,255,0.8); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .nav-links .nav-link { display: none; }
  .hero { padding: 4rem 0 3.5rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .features, .steps-section { padding: 3.5rem 0; }
  .auth-card { padding: 1.75rem; }
  .evento-meta-bar { gap: 1rem; }
}
