/* ============================================================
   BIBLIA BOM PRA TODOS - main.css
   ============================================================ */
:root {
  --gold: #D4AF37;
  --gold-light: #F0D060;
  --gold-dark: #8B7316;
  --bg: #0D0520;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.08);
  --border: rgba(212,175,55,0.2);
  --border-hover: rgba(212,175,55,0.5);
  --white: #F8F5EF;
  --gray-muted: rgba(248,245,239,0.5);
  --font-display: 'Cinzel Decorative', serif;
  --font-body: 'Exo 2', sans-serif;
  --radius: 16px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s;
}
.navbar.scrolled {
  background: rgba(13,5,32,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-cross { font-size: 22px; color: var(--gold); font-weight: 900; }
.logo-text { font-family: var(--font-display); font-size: 14px; color: var(--gold-light); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  text-decoration: none;
  color: rgba(248,245,239,0.7);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-light); }
.btn-nav-login {
  border: 1px solid var(--border) !important;
  padding: 7px 18px;
  border-radius: 30px;
  color: var(--white) !important;
}
.btn-nav-register {
  background: var(--gold) !important;
  color: #0D0520 !important;
  padding: 7px 18px;
  border-radius: 30px;
  font-weight: 700 !important;
}
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 22px; cursor: pointer; }

/* HERO */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 110px 60px 60px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}
.hero-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(212,175,55,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(74,45,138,0.25) 0%, transparent 50%),
    linear-gradient(180deg, #0D0520 0%, #1A0A2E 60%, #0D1535 100%);
}
.hero-content { flex: 1; max-width: 580px; }
.hero-badge {
  display: inline-block;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 30px;
  padding: 5px 18px;
  font-size: 12px;
  color: var(--gold-light);
  letter-spacing: 1px;
  margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.2;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.title-gold { color: var(--gold); text-shadow: 0 0 30px rgba(212,175,55,0.3); }
.hero-subtitle {
  font-size: 16px;
  color: var(--gray-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.btn-hero-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0D0520;
  padding: 13px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(212,175,55,0.25);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(212,175,55,0.4); }
.btn-hero-secondary {
  border: 1px solid var(--border);
  color: var(--white);
  padding: 13px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
}
.btn-hero-secondary:hover { border-color: var(--gold); color: var(--gold); }
.hero-stats { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-stat .stat-num { font-family: var(--font-display); font-size: 26px; color: var(--gold); display: block; }
.hero-stat .stat-label { font-size: 11px; color: var(--gray-muted); text-transform: uppercase; letter-spacing: 1px; }
.hero-stat-divider { color: var(--gold-dark); }

/* ARENA PREVIEW */
.hero-preview { flex: 1; max-width: 420px; }
.arena-preview-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(212,175,55,0.1), 0 8px 32px rgba(0,0,0,0.4);
}
.arena-header {
  background: rgba(212,175,55,0.12);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.live-badge {
  background: rgba(198,40,40,0.8);
  color: white;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.6} }
.arena-question { padding: 18px; }
.question-timer { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sand-timer { font-size: 18px; }
.timer-bar { flex: 1; height: 5px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.timer-fill { height: 100%; background: linear-gradient(90deg, var(--gold), #e74c3c); transition: width 1s linear; width: 100%; }
.timer-num { color: var(--gold); font-weight: 700; font-size: 15px; }
.arena-q-text { font-size: 14px; color: var(--white); margin-bottom: 12px; line-height: 1.5; }
.arena-options { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.arena-opt {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 7px;
  padding: 7px 10px;
  color: var(--white);
  font-size: 12px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: all 0.2s;
}
.arena-opt:hover { background: rgba(255,255,255,0.1); }
.correct-anim { background: rgba(46,125,50,0.4) !important; border-color: #4CAF50 !important; color: #A5D6A7 !important; }
.arena-players { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 7px; }
.mini-player { display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: rgba(255,255,255,0.03); border-radius: 7px; font-size: 12px; }
.mini-player.leader { background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.25); }
.mini-pts { margin-left: auto; color: var(--gold); font-weight: 700; }

/* SECTIONS */
.section { padding: 80px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-badge {
  display: inline-block;
  background: rgba(212,175,55,0.08);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 11px;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 32px);
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.3;
}
.text-gold { color: var(--gold); }

/* STEPS */
.steps-grid { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 44px; }
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 22px;
  width: 180px;
  text-align: center;
  position: relative;
}
.step-num {
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold);
  color: #0D0520;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px;
}
.step-icon { font-size: 32px; margin-bottom: 10px; display: block; }
.step-card h3 { font-size: 13px; color: var(--gold-light); margin-bottom: 7px; font-family: var(--font-display); }
.step-card p { font-size: 12px; color: var(--gray-muted); line-height: 1.5; }
.step-arrow { font-size: 22px; color: var(--gold-dark); }

/* FEATURES */
.features-section { background: rgba(0,0,0,0.2); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 44px; }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: all 0.3s;
}
.feature-card:hover { background: var(--bg-card-hover); border-color: var(--border-hover); transform: translateY(-3px); }
.feature-card.featured {
  border-color: rgba(212,175,55,0.35);
  background: rgba(212,175,55,0.04);
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 18px;
  align-items: start;
}
.feature-icon { font-size: 34px; margin-bottom: 12px; display: block; }
.feature-card.featured .feature-icon { font-size: 48px; grid-row: 1/3; }
.feature-card h3 { font-family: var(--font-display); font-size: 13px; color: var(--gold-light); margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--gray-muted); line-height: 1.6; }
.feature-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.feature-tags span {
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.25);
  color: var(--gold-light);
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 20px;
}

/* CTA */
.cta-section { padding: 80px 24px; }
.cta-box {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, rgba(212,175,55,0.06), rgba(45,27,94,0.2));
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 24px;
  padding: 56px 36px;
}
.cta-cross { font-size: 36px; color: var(--gold); margin-bottom: 18px; }
.cta-box h2 { font-family: var(--font-display); font-size: clamp(18px, 3vw, 28px); margin-bottom: 14px; }
.cta-box p { color: var(--gray-muted); font-size: 15px; margin-bottom: 28px; }
.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0D0520;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s;
  margin-bottom: 20px;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(212,175,55,0.4); }
.cta-verse { font-style: italic; font-size: 13px; color: rgba(212,175,55,0.5); }

/* FOOTER */
.site-footer { background: rgba(0,0,0,0.35); border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-logo { font-family: var(--font-display); font-size: 14px; color: var(--gold); margin-bottom: 10px; }
.footer-brand p { font-size: 13px; color: var(--gray-muted); line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4 { font-family: var(--font-display); font-size: 11px; color: var(--gold-light); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links a { text-decoration: none; color: var(--gray-muted); font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; color: rgba(248,245,239,0.3); flex-wrap: wrap; gap: 8px; }

/* AUTH */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 24px 40px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.08) 0%, transparent 60%),
    linear-gradient(180deg, #0D0520, #1A0A2E);
}
.auth-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 44px 38px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-title { font-family: var(--font-display); font-size: 17px; color: var(--white); margin-bottom: 6px; }
.auth-subtitle { color: var(--gray-muted); font-size: 13px; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 12px; color: rgba(248,245,239,0.7); margin-bottom: 7px; font-weight: 600; letter-spacing: 0.5px; }
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--gold); }
.form-input::placeholder { color: rgba(248,245,239,0.25); }
.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0D0520;
  border: none;
  border-radius: 50px;
  padding: 13px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 6px;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,175,55,0.35); }
.alert { padding: 11px 14px; border-radius: 9px; font-size: 13px; margin-bottom: 18px; }
.alert-error { background: rgba(198,40,40,0.18); border: 1px solid rgba(198,40,40,0.35); color: #EF9A9A; }
.alert-success { background: rgba(46,125,50,0.18); border: 1px solid rgba(46,125,50,0.35); color: #A5D6A7; }

/* DASHBOARD */
.dashboard-layout { display: flex; min-height: 100vh; padding-top: 70px; }
.sidebar {
  width: 240px;
  background: rgba(0,0,0,0.3);
  border-right: 1px solid var(--border);
  padding: 20px 0;
  position: fixed;
  top: 70px; bottom: 0;
  overflow-y: auto;
  z-index: 100;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  text-decoration: none;
  color: var(--gray-muted);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  color: var(--gold-light);
  background: rgba(212,175,55,0.07);
  border-left-color: var(--gold);
}
.nav-icon { font-size: 16px; width: 22px; }
.main-content { margin-left: 240px; flex: 1; padding: 28px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.2s;
}
.stat-card:hover { border-color: var(--border-hover); }
.coin-icon { font-size: 26px; margin-bottom: 7px; display: block; }
.coin-amount { font-family: var(--font-display); font-size: 22px; color: var(--gold); display: block; }
.coin-label { font-size: 11px; color: var(--gray-muted); text-transform: uppercase; letter-spacing: 1px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-section { flex-direction: column; padding: 90px 24px 40px; text-align: center; }
  .hero-preview { max-width: 100%; }
  .hero-stats { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-card.featured { grid-column: span 1; grid-template-columns: 1fr; }
  .feature-card.featured .feature-icon { font-size: 34px; grid-row: auto; }
  .steps-grid .step-arrow { display: none; }
  .main-content { margin-left: 0; padding: 16px; }
  .sidebar { display: none; }
}
@media (max-width: 600px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: rgba(13,5,32,0.98); padding: 18px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 20px; }
}
/* ============================================================
   FIX DEFINITIVO — Selects e Formulários Dark Theme
   ============================================================ */

/* Força o browser a usar tema escuro nos controles nativos */
:root {
    color-scheme: dark;
}

/* SELECT */
select,
select.form-input {
    color-scheme: dark;
    background-color: rgba(255,255,255,0.07) !important;
    color: #F8F5EF !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23D4AF37' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 40px !important;
    cursor: pointer;
}

select:focus,
select.form-input:focus {
    border-color: rgba(212,175,55,0.6) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1) !important;
}

/* Opções — cor-scheme dark resolve o fundo branco */
select option {
    color-scheme: dark;
    background: #1A0A2E;
    color: #F8F5EF;
}

select option:checked {
    background: #3D2A6B;
    color: #F0D060;
}

/* INPUTS date/time */
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"] {
    color-scheme: dark;
    background-color: rgba(255,255,255,0.07) !important;
    color: #F8F5EF !important;
}

/* Placeholders */
input::placeholder,
textarea::placeholder {
    color: rgba(248,245,239,0.25) !important;
    opacity: 1;
}

/* Checkbox e Radio */
input[type="checkbox"],
input[type="radio"] {
    color-scheme: dark;
    accent-color: #D4AF37;
    width: 16px;
    height: 16px;
    cursor: pointer;
}
