/* ==========================================================
   SANCTUARY 2.0 — HERO CINEMATOGRÁFICO (ALTAR DIGITAL)
   Desktop split 60/40, partículas, parallax, card respiração
   ========================================================== */

/* ===== AURORA BACKGROUND GLOBAL ===== */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
  overflow: hidden;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

.aurora-layer {
  position: absolute;
  inset: -20%;
  filter: blur(80px);
  opacity: 0;
  transition: opacity var(--t-slow);
}

[data-theme="light"] .aurora-layer--1 {
  background: radial-gradient(circle at 70% 20%, var(--gold-solar) 0%, transparent 50%);
  opacity: 0.15;
}

[data-theme="light"] .aurora-layer--2 {
  background: radial-gradient(circle at 20% 80%, var(--gold-solar) 0%, transparent 50%);
  opacity: 0.25;
}

[data-theme="dark"] .aurora-layer--1 {
  background: radial-gradient(circle at 70% 20%, var(--blue-celestial) 0%, transparent 50%);
  opacity: 0.6;
}

[data-theme="dark"] .aurora-layer--2 {
  background: radial-gradient(circle at 30% 70%, var(--gold-sacred) 0%, transparent 50%);
  opacity: 0.15;
}

.aurora-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, var(--bg-site) 100%);
  pointer-events: none;
}

/* ===== SAUDAÇÃO DINÂMICA (Mobile first) ===== */
.greeting {
  padding: var(--s-5) var(--s-5) 0;
  text-align: center;
  display: none;
}

.greeting__title {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-family: var(--font-title);
  color: var(--text-main);
  margin-bottom: var(--s-2);
}

.greeting__sub {
  font-family: var(--font-verse);
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  padding: var(--s-7) var(--s-5) var(--s-9);
  max-width: 1280px;
  margin: 0 auto;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: center;
}

.hero__content {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  background: var(--halo-gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--r-pill);
  color: var(--bronze-deep);
  font-family: var(--font-cinzel);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: var(--s-4);
  animation: fadeUp 0.6s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__tag i { color: var(--gold-sacred); }

.hero__title {
  font-size: var(--fs-hero);
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: var(--s-4);
  background: linear-gradient(135deg, var(--text-main) 0%, var(--gold-sacred) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--s-6);
  max-width: 540px;
  animation: fadeUp 0.8s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
  animation: fadeUp 0.8s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: max-content;
  animation: fadeUp 0.8s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__date label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 500;
  color: var(--text-main);
}

.hero__date select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: var(--s-2) var(--s-4);
  color: var(--text-main);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--t-fast);
}

.hero__date select:hover { border-color: var(--gold-sacred); }
.hero__date select:focus { outline: none; border-color: var(--gold-sacred); }

/* ===== HERO CARD (Oração do Dia) ===== */
.hero__card {
  position: relative;
  perspective: 1500px;
  animation: fadeUp 0.8s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__card-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, var(--halo-gold) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: pulseGold 3s ease-in-out infinite;
}

.hero__card .prayer-card {
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}

/* ===== WIDGETS ESPIRITUAIS ===== */
.widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--s-5);
  max-width: 960px;
  margin: var(--s-6) auto;
  padding: 0 var(--s-5);
}

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-island);
  padding: var(--s-6) var(--s-5);
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all var(--t-normal);
  box-shadow: var(--shadow-sm);
}

.widget::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  width: 100%; height: 4px;
  background: var(--grad-dourado);
}

.widget:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.widget__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
  color: var(--gold-sacred);
}

.widget__head h3 {
  font-family: var(--font-cinzel);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-sacred);
  margin: 0;
}

.widget__head i { font-size: 1.1rem; }

.widget__verse {
  font-family: var(--font-verse);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: var(--s-2);
}

.widget__ref {
  font-family: var(--font-cinzel);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
}

.widget__hint {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: var(--s-2);
}

/* SANCTUARY 2.0 — WIDGETS RESPONSIVOS
   Garante que Salmo do Dia, Sua Sequência e Anjo da Guarda
   se adaptem a todos os breakpoints sem cortar texto. */
.widget { word-wrap: break-word; overflow-wrap: anywhere; }
.widget__verse { word-break: break-word; }
.widget__head { flex-wrap: wrap; }
.streak-display { flex-wrap: wrap; gap: var(--s-2) var(--s-3); }
.streak-display__flame { font-size: clamp(1.8rem, 6vw, 2.5rem); }
.streak-display__count { font-size: clamp(1.8rem, 6vw, 3rem); }
.streak-display__label { font-size: clamp(0.8rem, 2vw, 0.95rem); }

/* Tablet retrato (768–1199) — 1 coluna, mais legível */
@media (min-width: 768px) and (max-width: 1199px) {
  .widgets {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
}

.streak-display {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
}

.streak-display__flame {
  font-size: 2.5rem;
  filter: drop-shadow(0 0 8px rgba(245, 100, 30, 0.5));
  animation: float 3s ease-in-out infinite;
}

.streak-display__count {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gold-sacred);
  line-height: 1;
}

.streak-display__label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== DESKTOP (≥1200px) — ALTAR DIGITAL ===== */
@media (min-width: 1200px) {
  .hero {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    padding: var(--s-9) var(--s-5);
  }

  .hero__grid {
    grid-template-columns: 60% 40%;
    gap: var(--s-9);
  }

  .hero__title { font-size: clamp(2.5rem, 4.5vw, 4.5rem); }

  .widgets {
    grid-template-columns: repeat(2, 1fr);
    margin-top: var(--s-7);
  }
}

/* ===== TABLET (768–1199px) ===== */
@media (min-width: 768px) and (max-width: 1199px) {
  .hero__grid {
    grid-template-columns: 55% 45%;
    gap: var(--s-7);
  }

  .widgets {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== MOBILE (≤767px) — empilhado ===== */
@media (max-width: 767px) {
  .greeting { display: block; }
  .hero { padding: var(--s-5) var(--s-4); }
  .hero__cta .btn { flex: 1; min-width: 140px; }
  .hero__date { width: 100%; justify-content: space-between; }
}
