/* ==========================================================================
   Surah Yasin Rumi - Custom Styling & Animations
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Cinzel:wght@500;700;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --color-gold: #D4AF37;
  --color-gold-light: #F3E5AB;
  --color-gold-dark: #AA7C11;
  --color-bg-dark: #091312;
  --color-card-bg: rgba(15, 29, 27, 0.7);
  --color-emerald-accent: #059669;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #060e0d;
}
::-webkit-scrollbar-thumb {
  background: #1e3a35;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: #D4AF37;
}

/* Base Body Styles */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--color-bg-dark);
  color: #e2e8f0;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(5, 150, 105, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(212, 175, 55, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Arabic Font Class */
.font-arabic {
  font-family: 'Amiri', serif;
  line-height: 2.2;
}

/* Gold Title Font */
.font-cinzel {
  font-family: 'Cinzel', serif;
}

/* Custom Gold Gradient Text */
.gold-gradient-text {
  background: linear-gradient(135deg, #FFF1C5 0%, #D4AF37 50%, #9A7B1C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glowing Gold Border */
.gold-glow-border {
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

/* Glassmorphism Card Style */
.glass-card {
  background: rgba(15, 29, 27, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 10px 30px -10px rgba(5, 150, 105, 0.2), 0 0 20px rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

/* Navbar Glassmorphism */
.glass-nav {
  background: rgba(9, 19, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

/* Pulsing Next Prayer Highlight */
.pulse-prayer-glow {
  animation: prayerPulse 2.5s infinite alternate;
}

@keyframes prayerPulse {
  0% {
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3), inset 0 0 10px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
  }
  100% {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.7), inset 0 0 20px rgba(212, 175, 55, 0.2);
    border-color: rgba(243, 229, 171, 0.9);
  }
}

/* Bismillah Shimmer Animation */
.shimmer-text {
  background: linear-gradient(90deg, #F3E5AB 0%, #FFFFFF 50%, #D4AF37 100%);
  background-size: 200% auto;
  color: #000;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* Audio Playing Waveform Pulse */
.playing-pulse {
  position: relative;
}

.playing-pulse::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 9999px;
  border: 2px solid #D4AF37;
  animation: ripple 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

@keyframes ripple {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Hero High-Visibility Levitation & Glow Animations */
@keyframes bismillahFloat {
  0%, 100% {
    transform: translateY(0px);
    box-shadow: 0 10px 30px -5px rgba(212, 175, 55, 0.25), 0 0 15px rgba(5, 150, 105, 0.2);
  }
  50% {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px -5px rgba(212, 175, 55, 0.5), 0 0 30px rgba(212, 175, 55, 0.3);
  }
}

.animate-bismillah-float {
  animation: bismillahFloat 4.5s ease-in-out infinite;
}

/* Glowing Gold Shimmer for Main Title */
@keyframes titleShimmer {
  0% {
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.7)) drop-shadow(0 0 40px rgba(243, 229, 171, 0.3));
  }
  100% {
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.2));
  }
}

.title-glow-visible {
  animation: titleShimmer 3s ease-in-out infinite;
}

/* Primary Button Pulse Ring */
@keyframes btnPulseRing {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6), 0 10px 25px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(212, 175, 55, 0), 0 15px 35px rgba(212, 175, 55, 0.5);
  }
}

.btn-pulse-gold {
  animation: btnPulseRing 2.5s infinite;
}

/* Verse Number Badge Calligraphy Frame */
.verse-num-badge {
  background: radial-gradient(circle, rgba(212,175,55,0.2) 0%, rgba(15,29,27,0.8) 100%);
  border: 1px solid rgba(212,175,55,0.4);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Micro Animations */
.fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* AdSense Container Placeholder Styling */
.adsense-placeholder {
  background: rgba(12, 24, 22, 0.4);
  border: 1px dashed rgba(212, 175, 55, 0.2);
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}

/* Custom Tooltip */
[data-tooltip] {
  position: relative;
}
[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: #0f1d1b;
  border: 1px solid #D4AF37;
  color: #F3E5AB;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 50;
  margin-bottom: 6px;
  pointer-events: none;
}
