/* =============================================
   BHAKTI SANGRAH — STYLESHEET v3.0
   Modern Glassmorphism Devotional Design
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Poppins:wght@300;400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* --- CSS Variables --- */
:root {
  --saffron: #FF6B00;
  --saffron-light: #FF8C38;
  --saffron-dark: #D45500;
  --gold: #F5A623;
  --gold-light: #FFD166;
  --gold-dark: #C78A1A;
  --cream: #FFF8F0;
  --warm-white: #FFFDF8;
  --text-primary: #1A0A00;
  --text-secondary: #5C3A1E;
  --text-muted: #9B7653;
  --card-bg: rgba(255,255,255,0.85);
  --card-glass: rgba(255,255,255,0.7);
  --border: rgba(240,224,200,0.8);
  --shadow: rgba(255, 107, 0, 0.12);
  --shadow-hover: rgba(255, 107, 0, 0.28);
  --bg-primary: #FFF8F0;
  --bg-secondary: #FFF3E4;
  --nav-bg: rgba(255, 248, 240, 0.92);
  --footer-bg: #0D0500;
  --footer-text: #F5DEB3;
  --gradient-hero: linear-gradient(135deg, #FF4500 0%, #FF6B00 35%, #F5A623 70%, #FFD166 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,248,240,0.9), rgba(255,243,228,0.9));
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Poppins', sans-serif;
  --font-hindi: 'Noto Sans Devanagari', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-cinzel: 'Cinzel', serif;
  --blur: blur(16px);
}

/* Dark Mode */
[data-theme="dark"] {
  --cream: #120800;
  --warm-white: #0D0500;
  --text-primary: #FFF3E4;
  --text-secondary: #F5C98A;
  --text-muted: #C4956A;
  --card-bg: rgba(42,26,10,0.85);
  --card-glass: rgba(30,15,5,0.75);
  --border: rgba(61,37,18,0.8);
  --shadow: rgba(245, 166, 35, 0.18);
  --shadow-hover: rgba(245, 166, 35, 0.35);
  --bg-primary: #0D0500;
  --bg-secondary: #120800;
  --nav-bg: rgba(13, 5, 0, 0.93);
  --gradient-card: linear-gradient(145deg, rgba(42,26,10,0.9), rgba(26,14,6,0.9));
}

/* --- Reset & Base --- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); background-color: var(--bg-primary); color: var(--text-primary); line-height: 1.7; transition: background-color 0.4s, color 0.4s; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#FF6B00,#F5A623); border-radius: 3px; }

/* --- Typography --- */
h1,h2,h3,h4 { font-family: var(--font-serif); line-height: 1.3; font-weight: 700; color: var(--text-primary); }
h1 { font-size: clamp(2.2rem,5vw,3.5rem); }
h2 { font-size: clamp(1.6rem,3.5vw,2.4rem); }
h3 { font-size: 1.2rem; }
p { color: var(--text-secondary); }

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ======================================================
   NAVBAR
   ====================================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
  transition: var(--transition), box-shadow 0.3s;
}
.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(255,107,0,0.15);
  border-bottom-color: rgba(255,107,0,0.2);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-brand { display: flex; align-items: center; gap: 0.75rem; }
.nav-brand svg, .nav-brand .logo-icon { font-size: 2rem; }
.brand-name { display: block; font-family: var(--font-cinzel); font-size: 1.1rem; font-weight: 700; color: var(--saffron); line-height: 1.1; }
.brand-sub { display: block; font-family: var(--font-hindi); font-size: 0.78rem; color: var(--text-muted); }
.nav-links { display: flex; align-items: center; gap: 0.2rem; }
.nav-links a { padding: 0.5rem 0.85rem; border-radius: 8px; font-size: 0.92rem; font-weight: 500; color: var(--text-secondary); transition: var(--transition); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: 4px; left: 50%; width: 0; height: 2px; background: var(--saffron); border-radius: 2px; transition: all 0.3s; transform: translateX(-50%); }
.nav-links a:hover, .nav-links a.active { color: var(--saffron); }
.nav-links a:hover::after, .nav-links a.active::after { width: 60%; }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn { background: none; padding: 0.5rem; border-radius: 10px; font-size: 1.2rem; transition: var(--transition); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--shadow); transform: scale(1.1); }
#hamburger, .hamburger { display: none; flex-direction: column; gap: 5px; width: 36px; height: 36px; padding: 8px; }
#hamburger span, .hamburger span { display: block; height: 2.5px; background: var(--saffron); border-radius: 2px; transition: var(--transition); }

/* Mobile Nav */
.nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 1001; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.nav-overlay.show { opacity: 1; pointer-events: all; }
.mobile-nav { position: fixed; top: 0; right: -110%; width: min(85vw,360px); height: 100vh; background: var(--bg-primary); z-index: 1002; transition: right 0.4s cubic-bezier(0.4,0,0.2,1); box-shadow: -10px 0 40px rgba(0,0,0,0.3); overflow-y: auto; }
.mobile-nav.open { right: 0; }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border); }
.mobile-nav-links { padding: 1rem; }
.mobile-nav-links li a { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.2rem; border-radius: var(--radius-md); font-size: 1rem; font-weight: 500; color: var(--text-secondary); transition: var(--transition); margin-bottom: 0.3rem; }
.mobile-nav-links li a:hover, .mobile-nav-links li a.active { background: linear-gradient(135deg, rgba(255,107,0,0.12), rgba(245,166,35,0.08)); color: var(--saffron); padding-left: 1.6rem; }

/* Search */
.search-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); z-index: 2000; display: flex; align-items: flex-start; justify-content: center; padding-top: 100px; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.search-overlay.show { opacity: 1; pointer-events: all; }
.search-modal { background: var(--card-bg); backdrop-filter: var(--blur); border: 1px solid var(--border); border-radius: var(--radius-xl); width: min(90vw,640px); box-shadow: 0 30px 80px rgba(0,0,0,0.3); overflow: hidden; transform: translateY(-30px) scale(0.95); transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.search-overlay.show .search-modal { transform: none; }
.search-modal-inner { position: relative; }
.search-modal-input { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border); }
.search-modal-input span { font-size: 1.3rem; flex-shrink: 0; }
.search-modal-input input { flex: 1; border: none; background: none; font-size: 1.1rem; color: var(--text-primary); outline: none; font-family: inherit; }
.search-result-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.5rem; color: var(--text-primary); transition: background 0.2s; border-bottom: 1px solid var(--border); }
.search-result-item:hover { background: linear-gradient(135deg,rgba(255,107,0,0.07),rgba(245,166,35,0.07)); }
.search-result-icon { font-size: 1.5rem; flex-shrink: 0; }
.search-no-results { padding: 2rem; text-align: center; color: var(--text-muted); }

/* ======================================================
   HERO SECTION
   ====================================================== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #FF4500 0%, #FF6B00 25%, #E65100 50%, #FF8C38 75%, #F5A623 100%);
  background-size: 400% 400%;
  animation: heroGradient 12s ease infinite;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-image-overlay {
  position: absolute; inset: 0; z-index: 0;
  background: url('../images/temple-hero.png') center/cover no-repeat;
  opacity: 0.15;
  mix-blend-mode: overlay;
}
.hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-particle { position: absolute; font-size: 1.5rem; animation: floatParticle var(--dur,8s) linear infinite; opacity: 0; }
@keyframes floatParticle { 0% { transform: translateY(100vh) rotate(0deg); opacity: 0; } 10% { opacity: 0.7; } 90% { opacity: 0.4; } 100% { transform: translateY(-20vh) rotate(720deg); opacity: 0; } }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 2rem 1.5rem; max-width: 860px; }
.hero-om { display: block; font-size: clamp(5rem,12vw,9rem); line-height: 1; margin-bottom: 1.5rem; animation: omPulse 3s ease-in-out infinite; filter: drop-shadow(0 0 40px rgba(255,255,255,0.4)); cursor: pointer; }
@keyframes omPulse { 0%,100% { transform: scale(1); filter: drop-shadow(0 0 40px rgba(255,255,255,0.4)); } 50% { transform: scale(1.06); filter: drop-shadow(0 0 60px rgba(255,255,255,0.6)); } }
.hero h1 { color: white; font-family: var(--font-cinzel); font-size: clamp(2.2rem,6vw,4rem); text-shadow: 0 4px 20px rgba(0,0,0,0.3); margin-bottom: 0.5rem; }
.hero h1 em { font-family: var(--font-hindi); font-style: normal; font-size: 0.75em; display: block; opacity: 0.95; font-weight: 400; }
.hero-subtitle { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 0.5rem; }
.hero-typing { color: rgba(255,255,255,0.75); font-size: 1rem; min-height: 1.5em; margin-bottom: 2rem; font-style: italic; }
.hero-typing::after { content: '|'; animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.hero-search-wrap { position: relative; max-width: 520px; margin: 0 auto 2rem; }
.hero-search { width: 100%; padding: 1rem 1.5rem 1rem 3.5rem; border-radius: 50px; border: none; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); font-size: 1rem; font-family: inherit; color: var(--text-primary); box-shadow: 0 8px 32px rgba(0,0,0,0.2); cursor: pointer; transition: var(--transition); }
.hero-search:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.25); transform: translateY(-2px); }
.hero-search-icon { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.25rem; pointer-events: none; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary { padding: 0.85rem 2rem; background: white; color: var(--saffron); border-radius: 50px; font-weight: 700; font-size: 1rem; box-shadow: 0 8px 24px rgba(0,0,0,0.2); transition: var(--transition); border: 2px solid transparent; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.25); background: var(--saffron); color: white; }
.btn-outline { padding: 0.85rem 2rem; background: transparent; color: white; border: 2px solid rgba(255,255,255,0.7); border-radius: 50px; font-weight: 600; font-size: 1rem; transition: var(--transition); display: inline-flex; align-items: center; gap: 0.5rem; backdrop-filter: blur(8px); }
.btn-outline:hover { background: rgba(255,255,255,0.2); border-color: white; transform: translateY(-3px); }
.hero-scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,0.7); font-size: 0.85rem; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; animation: bounceHint 2s ease-in-out infinite; }
@keyframes bounceHint { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }
@keyframes heroGradient { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ======================================================
   STATS STRIP
   ====================================================== */
.stats-strip { background: linear-gradient(135deg,#FF6B00,#F5A623); padding: 1.5rem 0; }
.stats-strip .container { display: flex; align-items: center; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.stat-item { text-align: center; color: white; }
.stat-number { font-family: var(--font-cinzel); font-size: 1.8rem; font-weight: 700; display: block; }
.stat-label { font-size: 0.8rem; opacity: 0.9; }

/* ======================================================
   SECTION BASE
   ====================================================== */
.section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }
.divider { width: 80px; height: 3px; background: linear-gradient(90deg, var(--saffron), var(--gold)); border-radius: 2px; margin: 1rem auto; }

/* ======================================================
   CATEGORY CARDS
   ====================================================== */
.category-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.category-card {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  padding: 2.5rem 1.5rem; border-radius: var(--radius-xl);
  background: var(--card-glass); backdrop-filter: var(--blur);
  border: 1px solid var(--border); text-align: center;
  transition: var(--transition); cursor: pointer; position: relative; overflow: hidden;
}
.category-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s;
  background: linear-gradient(135deg, var(--saffron-light), var(--gold));
}
.category-card:hover::before { opacity: 0.08; }
.category-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px var(--shadow-hover); border-color: rgba(255,107,0,0.3); }
.cat-icon { font-size: 3rem; transition: var(--transition); display: block; }
.category-card:hover .cat-icon { transform: scale(1.2) rotate(-5deg); }
.category-card h3 { font-family: var(--font-cinzel); font-size: 1.2rem; color: var(--saffron); }
.category-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.cat-count { background: linear-gradient(135deg,var(--saffron),var(--gold)); color: white; border-radius: 20px; padding: 0.2rem 0.7rem; font-size: 0.75rem; font-weight: 600; }

/* ======================================================
   PRAYER CARDS (Glassmorphism)
   ====================================================== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.prayer-card {
  background: var(--card-glass); backdrop-filter: var(--blur);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: var(--transition);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(30px);
}
.prayer-card.visible { opacity: 1; transform: none; animation: cardIn 0.5s cubic-bezier(0.22,1,0.36,1) both; }
@keyframes cardIn { from { opacity:0; transform:translateY(30px) scale(0.97); } to { opacity:1; transform:none; } }
.prayer-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px var(--shadow-hover); border-color: rgba(255,107,0,0.25); }
.card-thumb {
  height: 180px; display: flex; align-items: center; justify-content: center;
  font-size: 4rem; position: relative; overflow: hidden;
}
.card-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.75; transition: opacity 0.4s; }
.prayer-card:hover .card-thumb img { opacity: 0.9; transform: scale(1.05); transition: transform 0.5s, opacity 0.4s; }
.card-thumb-icon { position: relative; z-index: 1; font-size: 3.5rem; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)); }
.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.card-badge { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 20px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.badge-aarti { background: linear-gradient(135deg,#FF6B0020,#FF8C3840); color: #D45500; border: 1px solid #FF6B0030; }
.badge-chalisa { background: linear-gradient(135deg,#1A6BB520,#283C8040); color: #1A6BB5; border: 1px solid #1A6BB530; }
.badge-mantra { background: linear-gradient(135deg,#2E7D3220,#388E3C40); color: #2E7D32; border: 1px solid #2E7D3230; }
.badge-pooja { background: linear-gradient(135deg,#E6510020,#FF8C3840); color: #E65100; border: 1px solid #E6510030; }
.card-body h3 { font-size: 1.1rem; margin-top: 0.3rem; }
.card-body p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-top: 1px solid var(--border); }
.card-footer a { font-size: 0.9rem; font-weight: 600; color: var(--saffron); transition: var(--transition); }
.card-footer a:hover { color: var(--saffron-dark); letter-spacing: 0.02em; }
.fav-btn { font-size: 1.3rem; background: none; border-radius: 50%; padding: 0.3rem; transition: var(--transition); }
.fav-btn:hover { transform: scale(1.3); }
.fav-btn.fav-pop { animation: favPop 0.4s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes favPop { 0% { transform: scale(1); } 60% { transform: scale(1.6); } 100% { transform: scale(1); } }

/* ======================================================
   TODAY'S PRAYER WIDGET
   ====================================================== */
.todays-prayer-widget {
  background: linear-gradient(135deg,#FF6B00,#F5A623);
  border-radius: var(--radius-xl); padding: 3rem 2rem; text-align: center; color: white;
  position: relative; overflow: hidden;
}
.todays-prayer-widget::before {
  content: 'ॐ'; position: absolute; right: -1rem; top: -1rem;
  font-size: 10rem; opacity: 0.07; font-family: var(--font-hindi);
  line-height: 1;
}
.todays-prayer-text { font-family: var(--font-hindi); font-size: clamp(1.2rem,3vw,1.8rem); margin-bottom: 0.75rem; text-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.todays-prayer-trans { font-size: 0.95rem; opacity: 0.9; margin-bottom: 0.5rem; font-style: italic; }
.todays-prayer-source { font-size: 0.85rem; opacity: 0.7; }

/* ======================================================
   HINDU CALENDAR WIDGET
   ====================================================== */
.calendar-widget {
  background: var(--card-glass); backdrop-filter: var(--blur);
  border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2rem;
}
.cal-item { display: flex; justify-content: space-between; align-items: center; padding: 0.85rem 0; border-bottom: 1px dashed var(--border); }
.cal-item:last-child { border-bottom: none; margin-top: 0.5rem; }
.cal-label { font-size: 0.85rem; color: var(--text-muted); font-family: var(--font-hindi); }
.cal-value { font-family: var(--font-hindi); font-weight: 600; color: var(--saffron); font-size: 1rem; }
.cal-festival .cal-value { font-size: 1.1rem; color: var(--gold-dark); }

/* ======================================================
   YOUTUBE BHAJAN SECTION
   ====================================================== */
.youtube-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.youtube-card {
  background: var(--card-glass); backdrop-filter: var(--blur);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: var(--transition);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(20px);
}
.youtube-card.visible { opacity: 1; transform: none; }
.youtube-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(255,0,0,0.15); border-color: rgba(255,0,0,0.25); }
.yt-thumb {
  height: 160px; position: relative; overflow: hidden;
  background: linear-gradient(135deg,#FF0000,#CC0000);
  display: flex; align-items: center; justify-content: center;
}
.yt-thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.yt-play-btn {
  position: relative; z-index: 1; width: 56px; height: 56px;
  background: rgba(255,255,255,0.95); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: var(--transition);
}
.youtube-card:hover .yt-play-btn { transform: scale(1.15); background: #FF0000; }
.youtube-card:hover .yt-play-btn::after { filter: invert(1); }
.yt-play-btn::after { content: '▶'; color: #FF0000; font-size: 1.2rem; margin-left: 4px; }
.youtube-card:hover .yt-play-btn::after { color: white; }
.yt-body { padding: 1rem 1.25rem; }
.yt-badge { display: inline-block; background: linear-gradient(135deg,#FF000020,#FF000040); color: #CC0000; border: 1px solid #FF000030; border-radius: 20px; padding: 0.15rem 0.6rem; font-size: 0.7rem; font-weight: 700; margin-bottom: 0.5rem; }
.yt-body h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.yt-body p { font-size: 0.82rem; color: var(--text-muted); }
.yt-link { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem; background: linear-gradient(135deg,#FF0000,#CC0000); color: white; font-weight: 600; font-size: 0.9rem; transition: var(--transition); }
.yt-link:hover { background: linear-gradient(135deg,#CC0000,#990000); color: white; }

/* ======================================================
   DEITY GALLERY
   ====================================================== */
.deity-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
.deity-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 3/4; cursor: pointer; transition: var(--transition);
  opacity: 0; transform: scale(0.95);
}
.deity-card.visible { opacity: 1; transform: none; }
.deity-card:hover { transform: scale(1.04); box-shadow: 0 20px 60px rgba(0,0,0,0.3); z-index: 1; }
.deity-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.deity-card:hover img { transform: scale(1.08); }
.deity-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 1.25rem; text-align: center; }
.deity-card-name { color: white; font-family: var(--font-hindi); font-size: 1.2rem; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.deity-card-en { color: rgba(255,255,255,0.8); font-size: 0.8rem; }

/* ======================================================
   PRAYER PAGE
   ====================================================== */
.prayer-header {
  padding: calc(70px + 4rem) 0 4rem;
  text-align: center; position: relative; overflow: hidden; color: white;
}
.prayer-header h1 { font-family: var(--font-cinzel); color: white; text-shadow: 0 4px 20px rgba(0,0,0,0.3); margin-bottom: 0.5rem; }
.subtitle { color: rgba(255,255,255,0.9); }
.prayer-meta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.prayer-meta span { background: rgba(255,255,255,0.2); backdrop-filter: blur(8px); padding: 0.3rem 0.9rem; border-radius: 20px; font-size: 0.85rem; color: white; border: 1px solid rgba(255,255,255,0.3); }
.diya-glow { animation: omPulse 3s ease-in-out infinite; }
.prayer-page { padding: 32px 0 5rem; }
.prayer-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; padding: 1rem 1.5rem; background: var(--card-glass); backdrop-filter: var(--blur); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.lang-switcher { display: flex; background: var(--bg-secondary); border-radius: 50px; padding: 4px; }
.lang-btn { padding: 0.5rem 1.3rem; border-radius: 50px; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); transition: var(--transition); background: none; }
.lang-btn.active { background: linear-gradient(135deg,var(--saffron),var(--gold)); color: white; box-shadow: 0 4px 12px var(--shadow); }
.tool-actions { display: flex; gap: 0.5rem; }
.tool-btn { padding: 0.5rem 1rem; background: var(--card-glass); border: 1px solid var(--border); border-radius: 50px; font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); transition: var(--transition); backdrop-filter: var(--blur); }
.tool-btn:hover { background: linear-gradient(135deg,rgba(255,107,0,0.1),rgba(245,166,35,0.1)); color: var(--saffron); border-color: rgba(255,107,0,0.3); }
.prayer-text-card { background: var(--card-glass); backdrop-filter: var(--blur); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
.prayer-section { padding: 2.5rem; }
.prayer-section-title { font-family: var(--font-cinzel); font-size: 1rem; color: var(--saffron); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 2rem; display: flex; align-items: center; gap: 0.75rem; }
.prayer-section-title::before, .prayer-section-title::after { content: '—'; opacity: 0.5; }
.prayer-verse { font-family: var(--font-hindi); font-size: 1.15rem; line-height: 2.1; color: var(--text-primary); }
.prayer-meaning { margin-top: 2rem; padding: 1.25rem 1.5rem; background: linear-gradient(135deg,rgba(255,107,0,0.06),rgba(245,166,35,0.06)); border-radius: var(--radius-md); border-left: 4px solid var(--saffron); font-size: 0.92rem; color: var(--text-secondary); }
.mandala-divider { text-align: center; color: var(--saffron); font-size: 1.2rem; padding: 1.5rem 0; opacity: 0.6; letter-spacing: 0.3em; }

/* YouTube on prayer pages */
.yt-watch-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1.4rem; background: linear-gradient(135deg,#FF0000,#CC0000);
  color: white; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
  transition: var(--transition); box-shadow: 0 4px 16px rgba(255,0,0,0.3);
  text-decoration: none;
}
.yt-watch-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,0,0,0.4); color: white; }

/* ======================================================
   PAGE HERO (listing pages)
   ====================================================== */
.page-hero {
  padding: calc(70px + 3.5rem) 0 3rem; text-align: center;
  background: var(--gradient-hero); position: relative; overflow: hidden; color: white;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-icon { font-size: 4rem; display: block; margin-bottom: 1rem; }
.page-hero h1 { font-family: var(--font-cinzel); color: white; }
.page-hero p { color: rgba(255,255,255,0.9); margin-top: 0.5rem; }

/* ======================================================
   FLOATING OM BUTTON
   ====================================================== */
#omBtn {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg,var(--saffron),var(--gold));
  color: white; font-size: 1.6rem; font-family: var(--font-hindi);
  box-shadow: 0 8px 32px rgba(255,107,0,0.4);
  transition: var(--transition); display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,0.3);
}
#omBtn:hover { transform: scale(1.12); box-shadow: 0 12px 40px rgba(255,107,0,0.5); }
#omBtn.om-active { animation: omRotate 6s linear infinite; box-shadow: 0 0 0 0 rgba(255,107,0,0.4); }
@keyframes omRotate { 0% { box-shadow: 0 0 0 0 rgba(255,107,0,0.6), 0 8px 32px rgba(255,107,0,0.4); } 50% { box-shadow: 0 0 0 16px rgba(255,107,0,0), 0 8px 32px rgba(255,107,0,0.4); } 100% { box-shadow: 0 0 0 0 rgba(255,107,0,0), 0 8px 32px rgba(255,107,0,0.4); } }

/* ======================================================
   FOOTER
   ====================================================== */
.footer { background: var(--footer-bg); color: var(--footer-text); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand .brand-name { font-family: var(--font-cinzel); font-size: 1.3rem; color: var(--saffron); margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.9rem; opacity: 0.7; line-height: 1.8; }
.footer-col h4 { font-family: var(--font-cinzel); font-size: 0.95rem; color: var(--gold); margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col a { display: block; font-size: 0.88rem; color: #C4956A; margin-bottom: 0.6rem; transition: var(--transition); }
.footer-col a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.5rem 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom p { font-size: 0.85rem; opacity: 0.6; }

/* ======================================================
   FAVOURITES PAGE
   ====================================================== */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.empty-state h3 { margin: 1rem 0 0.5rem; }

/* ======================================================
   TOAST
   ====================================================== */
.toast { position: fixed; bottom: 5rem; left: 50%; transform: translateX(-50%) translateY(20px); background: rgba(20,10,0,0.9); backdrop-filter: blur(12px); color: #FFD166; padding: 0.8rem 1.5rem; border-radius: 50px; font-size: 0.95rem; font-weight: 500; border: 1px solid rgba(255,166,35,0.3); z-index: 9998; opacity: 0; transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1); pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ======================================================
   FEEDBACK FORM
   ====================================================== */
.feedback-card { background: var(--card-glass); backdrop-filter: var(--blur); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2.5rem; }
.feedback-card h3 { margin-bottom: 0.5rem; }
.feedback-card p { margin-bottom: 1.5rem; color: var(--text-muted); }
.feedback-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.form-input, .form-textarea { padding: 0.8rem 1rem; background: var(--bg-primary); border: 1.5px solid var(--border); border-radius: var(--radius-md); font-size: 0.95rem; font-family: inherit; color: var(--text-primary); transition: var(--transition); outline: none; }
.form-input:focus, .form-textarea:focus { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(255,107,0,0.1); }
.form-textarea { min-height: 110px; resize: vertical; }
.form-submit { padding: 0.9rem; background: linear-gradient(135deg,var(--saffron),var(--gold)); color: white; border-radius: var(--radius-md); font-weight: 700; font-size: 1rem; transition: var(--transition); }
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--shadow-hover); }

/* ======================================================
   PARTICLE PETALS (JS-created)
   ====================================================== */
.particle-petal { will-change: transform, opacity; }

/* ======================================================
   SCROLL REVEAL (applied by JS)
   ====================================================== */
.section-header, .youtube-card, .deity-card, .stat-item, .festival-item {
  opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.section-header.visible, .youtube-card.visible, .deity-card.visible, .stat-item.visible, .festival-item.visible {
  opacity: 1; transform: none;
}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .nav-links { display: none; }
  #hamburger, .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .stats-strip .container { gap: 1.5rem; }
  .deity-gallery { grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .prayer-tools { flex-direction: column; }
  .prayer-section { padding: 1.5rem; }
  .youtube-cards { grid-template-columns: 1fr; }
}
/* ======================================================
   PRAYER PAGE — OVERFLOW & LAYOUT FIXES (v3.1)
   ====================================================== */

/* Ensure body-level overflow is clamped */
body { max-width: 100vw; }

/* Prayer section body should not overflow */
.prayer-text-card { overflow-x: hidden; }
.prayer-verse { word-break: break-word; overflow-wrap: break-word; }

/* Content max-width for prayer pages */
.prayer-page > .container { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem; }

/* Listing page cards should all cards be visible by default for SEO */
.cards-grid .prayer-card { opacity: 1 !important; transform: none !important; }

/* section spacing */
.section + .section { padding-top: 0; }

/* Footer column text visibility - ensure white text on dark bg */
.footer * { color: inherit; }
.footer a { color: #C4956A !important; }
.footer a:hover { color: var(--gold) !important; }
.footer h4 { color: var(--gold) !important; }
.footer-brand .brand-name { color: var(--saffron) !important; }
.footer-brand p { color: rgba(245,222,179,0.7) !important; }
.footer-bottom p { color: rgba(245,222,179,0.55) !important; }

/* Glassmorphism improvement for listing pages */
.prayer-card { opacity: 0; transform: translateY(30px); }
.prayer-card.visible { opacity: 1; transform: none; animation: cardIn 0.5s cubic-bezier(0.22,1,0.36,1) both; }

/* Mobile fixes */
@media (max-width: 768px) {
  [style*="grid-template-columns:1fr 1fr"],
  [style*="display:grid;grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
  .deity-gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 3rem 0; }
  .hero-content { padding: 1.5rem 1rem; }
  .prayer-page > .container { padding: 1.5rem 1rem; }
}

/* ======================================================
   UNIVERSAL OVERFLOW SAFETY NET (v3.2)
   Ensures content NEVER touches left/right edges
   ====================================================== */
* { box-sizing: border-box; }
body { overflow-x: hidden; }

/* Safety net: ANY section, .section, or div directly inside prayer-page
   that might have fallen outside container gets padding */
.prayer-page { padding: 0 !important; }
.prayer-page > .container,
.prayer-page > div.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem !important;
  box-sizing: border-box !important;
}

/* Make More Aarti section always padded */
.prayer-page .more-section { padding: 0; }

/* Enforce horizontal padding on all sections */
section.section { padding-left: 0; padding-right: 0; }
section.section > .container { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }

/* Listing pages: all prayer-card grids properly contained */
.cards-grid { 
  width: 100%;
  padding: 0;
}

/* Prayer tools toolbar wrap */
.prayer-tools { flex-wrap: wrap; gap: 0.75rem; }
.tool-actions { flex-wrap: wrap; gap: 0.5rem; }

/* Page hero content centering */
.page-hero > * { position: relative; z-index: 2; }

/* Mobile: extra safety */
@media (max-width: 600px) {
  .prayer-page > .container { padding: 1rem !important; }
  .prayer-section { padding: 1.25rem !important; }
  .prayer-tools { padding: 0.75rem 1rem !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .cards-grid { grid-template-columns: 1fr !important; }
}

/* ======================================================
   HAMBURGER ICON FIX — spans need explicit width
   Without it, flex centering (from .icon-btn) collapses
   empty spans to 0 width, making them invisible
   ====================================================== */
#hamburger,
.hamburger {
  display: none;
  flex-direction: column;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 9px 8px;
  background: none;
  border: none;
  cursor: pointer;
}

#hamburger span,
.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--saffron);
  border-radius: 3px;
  transition: var(--transition);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  #hamburger,
  .hamburger {
    display: flex !important;
  }
}
