/* 🌿 Modern Spiritual Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  transition: outline-offset 0.2s ease;
}

/* ✨ Refined Divine Color System */
:root {
  --primary: #6D5DFF;
  --primary-light: #8E82FF;
  --primary-pale: rgba(109, 93, 255, 0.08);
  --secondary: #4ECDC4;
  --light: #F9FAFB;
  --dark: #1E293B;
  --darker: #0F172A;
  --text: #1E293B;
  --text-light: #F1F5F9;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --primary: #7D6BFF;
  --primary-light: #9D8FFF;
  --primary-pale: rgba(125, 107, 255, 0.08);
  --secondary: #5EDFD6;
  --light: #0F172A;
  --dark: #F1F5F9;
  --darker: #020617;
  --text: #F1F5F9;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 6px 28px rgba(0, 0, 0, 0.25);
}

/* 🌌 Sacred Background Grid */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(var(--primary-pale) 1px, transparent 1px),
    radial-gradient(var(--primary-pale) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  z-index: -1;
}

/* 📖 Foundational Typography */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.65;
  font-weight: 400;
  transition: var(--transition);
  font-size: 16px;
}

/* 🧘 Container */
.container {
  width: 92%;
  max-width: 720px;
  margin: auto;
  padding: 0 1.5rem;
}

/* 🔮 Sticky Navigation */
nav {
  padding: 1.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
}

.logo:hover {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* 🌙 Theme Toggle */
#theme-toggle {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
}

#theme-toggle:hover {
  background: var(--primary-pale);
  color: var(--primary);
  transform: rotate(10deg) scale(1.1);
}

/* 🌄 Hero */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.hero h1 span {
  font-weight: 600;
  color: var(--primary);
  position: relative;
}

.hero h1 span::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s ease;
}

.hero:hover h1 span::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero p {
  font-size: 1.1rem;
  max-width: 30rem;
  margin: 0 auto 3rem;
  opacity: 0.85;
}

/* 📖 Scripture Card */
.verse-display {
  background: var(--light);
  border-radius: 1rem;
  padding: 3.5rem 2.5rem;
  max-width: 680px;
  margin: auto;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
}

.verse-display:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.verse-display::before {
  content: '❝';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.06;
  font-family: 'Cormorant Garamond', serif;
}

#daily-verse {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-weight: 450;
}

#verse-reference {
  display: inline-block;
  background: var(--primary-pale);
  color: var(--text);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  margin-bottom: 2rem;
  opacity: 0.85;
}

/* 🌟 Refresh Button */
#new-verse-btn {
  background: var(--primary);
  color: white;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(109, 93, 255, 0.3);
}

#new-verse-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(109, 93, 255, 0.4);
}

/* 🙏 Holy Footer */
footer {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--darker);
  color: var(--text-light);
  margin-top: 6rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

footer i {
  font-size: 1.75rem;
  color: var(--secondary);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

footer i:hover {
  transform: translateY(-5px);
}

footer p {
  font-size: 0.95rem;
  opacity: 0.75;
}

footer span {
  color: var(--secondary);
  font-style: italic;
}

/* 📱 Responsiveness */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 85px;
    left: -100%;
    width: 100%;
    flex-direction: column;
    background: var(--light);
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: left 0.4s ease;
  }

  .nav-links.active {
    left: 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  #daily-verse {
    font-size: 1.65rem;
  }

  .verse-display {
    padding: 2.5rem 1.5rem;
  }
}

/* ✨ Fade Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.verse-fade {
  animation: fadeIn 0.8s ease forwards;
}
