/* =============================================
   TATTVAM — Daily Gita Verse Page
   "Which Gita Verse Do I Need Today?"
   ============================================= */

/* Altar Crimson & Royal Gold Theme for Daily Gita Verse */
.verse-page {
  background-color: #2b1111 !important;
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(207, 166, 107, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 50%, rgba(207, 166, 107, 0.05) 0%, transparent 50%);
  color: #fffaf0;
}
.verse-page .gita-hero h1 {
  color: #fffaf0;
}
.verse-page .hero-subtitle {
  color: #d1b8b8;
}
.verse-page .nav-inner {
  color: #fffaf0;
}
.verse-page .nav-logo {
  color: #fffaf0 !important;
}
.verse-page .nav-link {
  color: #d1b8b8 !important;
}
.verse-page .nav-link:hover, .verse-page .nav-link.active {
  color: var(--color-gold) !important;
}
.verse-page .verse-card-inner {
  background: #fdfaf2;
  color: #2b1111;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.verse-page .action-btn {
  background: #3d1b1b;
  border-color: #522727;
  color: #fffaf0;
}
.verse-page .action-btn:hover {
  background: var(--color-gold);
  color: #2b1111;
}



/* ——— Hero Section ——— */
.gita-hero {
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gita-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(207, 166, 107, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 70%, rgba(207, 166, 107, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 0%, rgba(226, 201, 165, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.hero-eyebrow .date-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(207, 166, 107, 0.1);
  border: 1px solid rgba(207, 166, 107, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-bronze);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-eyebrow .date-badge svg {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

.gita-hero h1 {
  font-size: var(--text-3xl);
  font-weight: 300;
  color: var(--color-text-dark);
  margin-bottom: var(--space-4);
  letter-spacing: 0.02em;
}

.gita-hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--color-gold);
}

.hero-subtitle {
  color: var(--color-text-secondary);
  font-size: var(--text-md);
  max-width: 520px;
  margin: 0 auto var(--space-4);
  line-height: 1.7;
}

.hero-sanskrit-watermark {
  font-family: var(--font-sanskrit);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  opacity: 0.6;
}

/* ——— Verse Stage — The main card area ——— */
.verse-stage {
  padding: var(--space-4) 0 var(--space-16);
  position: relative;
}

.verse-stage-inner {
  max-width: 720px;
  margin: 0 auto;
  perspective: 1200px;
}

/* ——— The Grand Verse Card ——— */
.verse-card-wrapper {
  position: relative;
  transition: transform 0.7s var(--ease-out-expo), opacity 0.5s ease;
}

.verse-card-wrapper.transitioning-out {
  transform: scale(0.92) translateY(10px);
  opacity: 0;
}

.verse-card-wrapper.transitioning-in {
  animation: verseReveal 0.8s var(--ease-out-expo) forwards;
}

@keyframes verseReveal {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.verse-card {
  background-color: var(--color-parchment);
  background-image:
    radial-gradient(ellipse at 15% 40%, rgba(210, 180, 140, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(210, 180, 140, 0.1) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 90%, rgba(194, 164, 128, 0.08) 0%, transparent 45%);
  border: 1px solid var(--color-champagne);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-10);
  position: relative;
  overflow: hidden;
  box-shadow:
    var(--shadow-lg),
    inset 0 0 60px rgba(139, 119, 91, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Ornate corners for the verse card */
.verse-card .corner {
  position: absolute;
  width: 36px;
  height: 36px;
  border-color: var(--color-gold);
  border-style: solid;
  opacity: 0.45;
  transition: opacity 0.6s ease;
}

.verse-card:hover .corner {
  opacity: 0.75;
}

.verse-card .corner-tl { top: 16px; left: 16px; border-width: 2px 0 0 2px; }
.verse-card .corner-tr { top: 16px; right: 16px; border-width: 2px 2px 0 0; }
.verse-card .corner-bl { bottom: 16px; left: 16px; border-width: 0 0 2px 2px; }
.verse-card .corner-br { bottom: 16px; right: 16px; border-width: 0 2px 2px 0; }

/* Om watermark on the card */
.verse-card .om-mark {
  position: absolute;
  font-family: var(--font-sanskrit);
  font-size: 18rem;
  color: rgba(207, 166, 107, 0.035);
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  pointer-events: none;
  line-height: 1;
  font-style: normal;
  user-select: none;
}

/* Reference badge */
.verse-ref {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-8);
}

.verse-ref .badge-gold {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Sanskrit text */
.verse-sanskrit-main {
  font-family: var(--font-sanskrit);
  font-size: var(--text-2xl);
  line-height: 1.7;
  color: var(--color-text-dark);
  text-align: center;
  margin-bottom: var(--space-6);
  padding: 0 var(--space-4);
}

/* Thin decorative line */
.verse-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin: var(--space-6) auto;
  max-width: 200px;
}

.verse-ornament .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-champagne));
}

.verse-ornament .line:last-child {
  background: linear-gradient(90deg, var(--color-champagne), transparent);
}

.verse-ornament .dot {
  width: 5px;
  height: 5px;
  background: var(--color-gold);
  border-radius: 50%;
  opacity: 0.6;
}

/* Transliteration */
.verse-translit {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: var(--space-6);
  letter-spacing: 0.02em;
  line-height: 1.6;
  padding: 0 var(--space-4);
}

/* English translation */
.verse-english {
  font-size: var(--text-md);
  color: var(--color-text-primary);
  text-align: center;
  line-height: 1.85;
  max-width: 560px;
  margin: 0 auto var(--space-8);
  padding: 0 var(--space-4);
}

/* Card footer actions */
.verse-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(226, 201, 165, 0.4);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-secondary);
  background: transparent;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.04em;
}

.action-btn:hover {
  color: var(--color-text-dark);
  border-color: var(--color-gold);
  background: rgba(207, 166, 107, 0.06);
}

.action-btn svg {
  width: 14px;
  height: 14px;
}

.action-btn.copied {
  color: var(--color-success);
  border-color: var(--color-success);
  background: rgba(122, 158, 106, 0.06);
}

/* ——— Practical Application Section ——— */
.application-section {
  padding: 0 0 var(--space-16);
}

.application-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-warm-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
}

.application-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-8);
  cursor: pointer;
  user-select: none;
  transition: background 0.3s ease;
}

.application-header:hover {
  background: rgba(207, 166, 107, 0.04);
}

.application-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.application-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(207, 166, 107, 0.15), rgba(207, 166, 107, 0.05));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.application-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.application-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-text-dark);
  font-weight: 600;
}

.toggle-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: transform 0.4s var(--ease-out-expo);
}

.toggle-icon.open {
  transform: rotate(180deg);
}

.toggle-icon svg {
  width: 20px;
  height: 20px;
}

.application-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease-out-expo);
}

.application-body.open {
  max-height: 600px;
}

.application-content {
  padding: 0 var(--space-8) var(--space-8);
}

.meaning-block {
  padding: var(--space-6);
  background: var(--color-parchment);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--color-gold);
  margin-bottom: var(--space-6);
}

.meaning-block h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meaning-block p {
  font-size: var(--text-base);
  color: var(--color-text-primary);
  line-height: 1.8;
  margin-bottom: 0;
}

.practice-block h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.practice-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.practice-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.step-number {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-bronze));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-cream);
  margin-top: 2px;
}

.step-text {
  font-size: var(--text-base);
  color: var(--color-text-primary);
  line-height: 1.7;
}

/* ——— New Verse Button ——— */
.new-verse-section {
  text-align: center;
  padding-bottom: var(--space-20);
}

.new-verse-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-10);
  background: var(--color-text-dark);
  color: var(--color-cream);
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 500;
  letter-spacing: 0.06em;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.new-verse-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(207, 166, 107, 0.15), transparent);
  transition: left 0.6s ease;
}

.new-verse-btn:hover {
  background: linear-gradient(135deg, var(--color-gold), var(--color-bronze));
  box-shadow: var(--shadow-gold), 0 8px 24px rgba(207, 166, 107, 0.25);
  transform: translateY(-2px);
}

.new-verse-btn:hover::before {
  left: 100%;
}

.new-verse-btn:active {
  transform: translateY(0);
}

.new-verse-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.4s var(--ease-out-expo);
}

.new-verse-btn:hover svg {
  transform: rotate(180deg);
}

.new-verse-hint {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* ——— Verse Counter / Info Strip ——— */
.verse-info-strip {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-8) 0;
  max-width: 720px;
  margin: 0 auto;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.info-value {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text-dark);
}

.info-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ——— Toast notification ——— */
.toast {
  position: fixed;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-text-dark);
  color: var(--color-cream);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: var(--z-toast);
  opacity: 0;
  transition: all 0.4s var(--ease-out-expo);
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ——— Decorative background elements ——— */
.bg-lotus-left,
.bg-lotus-right {
  position: fixed;
  pointer-events: none;
  opacity: 0.03;
  font-size: 16rem;
  color: var(--color-gold);
  z-index: -1;
  font-family: var(--font-sanskrit);
}

.bg-lotus-left {
  top: 30%;
  left: -5%;
}

.bg-lotus-right {
  bottom: 20%;
  right: -5%;
}

/* ——— Responsive ——— */
@media (max-width: 768px) {
  .gita-hero {
    padding-top: calc(var(--nav-height) + var(--space-10));
    padding-bottom: var(--space-4);
  }

  .gita-hero h1 {
    font-size: var(--text-2xl);
  }

  .verse-card {
    padding: var(--space-8) var(--space-6);
    border-radius: var(--radius-lg);
  }

  .verse-card .corner {
    width: 24px;
    height: 24px;
  }

  .verse-card .corner-tl { top: 10px; left: 10px; }
  .verse-card .corner-tr { top: 10px; right: 10px; }
  .verse-card .corner-bl { bottom: 10px; left: 10px; }
  .verse-card .corner-br { bottom: 10px; right: 10px; }

  .verse-sanskrit-main {
    font-size: var(--text-xl);
  }

  .verse-translit {
    font-size: var(--text-base);
  }

  .verse-card-footer {
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .application-header {
    padding: var(--space-5) var(--space-6);
  }

  .application-content {
    padding: 0 var(--space-6) var(--space-6);
  }

  .verse-info-strip {
    gap: var(--space-6);
  }

  .new-verse-btn {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
  }

  .verse-card .om-mark {
    font-size: 12rem;
  }
}

@media (max-width: 480px) {
  .verse-card {
    padding: var(--space-6) var(--space-4);
  }

  .verse-sanskrit-main {
    font-size: var(--text-lg);
    padding: 0;
  }

  .verse-translit {
    font-size: var(--text-sm);
    padding: 0;
  }

  .verse-english {
    font-size: var(--text-base);
    padding: 0;
  }

  .verse-card-footer {
    gap: var(--space-2);
  }

  .action-btn {
    font-size: 0.7rem;
    padding: var(--space-2) var(--space-3);
  }

  .verse-card .om-mark {
    font-size: 8rem;
    right: -12%;
  }
}
