/* Sanatan Bliss — stotra.css */
/* Page-specific styles for Stotra archive & single pages */

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--cream); color: var(--stone); overflow-x: hidden; }

/* HERO — deep indigo-gold cosmic theme for stotras */
.page-hero { min-height: 48vh; position: relative; display: grid; place-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(160deg, #0D0A1E 0%, #1A1040 40%, #2D1B4E 70%, #1A0A2E 100%); }
.hero-ring { position: absolute; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%); animation: spin 80s linear infinite; }
.ring-1 { width: 520px; height: 520px; border: 1px solid rgba(255,255,255,0.05); }
.ring-2 { width: 380px; height: 380px; border: 1px dashed rgba(212,160,23,0.12); animation-direction: reverse; animation-duration: 55s; }
.ring-3 { width: 240px; height: 240px; border: 1px solid rgba(255,255,255,0.04); }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.hero-om-bg { position: absolute; font-family: var(--font-hindi); font-size: 22rem; color: rgba(255,255,255,0.03); top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none; }
.page-hero-content { position: relative; z-index: 2; text-align: center; padding: 52px 24px; max-width: 720px; animation: fadeUp 1s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.page-hero-kicker { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light); font-weight: 600; display: block; margin-bottom: 12px; }
.page-hero-title { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 300; color: white; line-height: 1.1; margin-bottom: 6px; }
.page-hero-title em { font-style: italic; color: #E9D5FF; }
.page-hero-title-hi { font-family: var(--font-hindi); font-size: 1.4rem; color: rgba(255,255,255,0.5); display: block; margin-bottom: 16px; }
.page-hero-divider { width: 48px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 0 auto 18px; }
.page-hero-sub { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 28px; }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: #E9D5FF; display: block; }
.hero-stat-label { font-size: 0.68rem; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; }
.hero-stat-sep { width: 1px; height: 36px; background: rgba(255,255,255,0.12); }

/* BREADCRUMB */
.breadcrumb { background: var(--cream-dark); padding: 11px 40px; display: flex; align-items: center; gap: 8px; font-size: 0.74rem; color: var(--stone-mid); }
.breadcrumb a { color: var(--saffron); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* SEARCH + FILTER BAR */
.search-filter-bar { background: white; border-bottom: 1px solid var(--cream-dark); padding: 16px 40px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.search-wrap { position: relative; flex: 1; min-width: 220px; max-width: 400px; }
.search-input { width: 100%; padding: 11px 18px 11px 42px; border: 1.5px solid var(--cream-dark); border-radius: 50px; font-family: var(--font-body); font-size: 0.86rem; color: var(--stone); background: var(--cream); outline: none; transition: all .2s; }
.search-input:focus { border-color: var(--purple); background: white; box-shadow: 0 0 0 3px rgba(76,29,149,0.08); }
.search-input::placeholder { color: var(--stone-light); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 0.95rem; color: var(--stone-light); pointer-events: none; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 14px; border-radius: 20px; border: 1.5px solid var(--cream-dark); background: var(--cream); font-family: var(--font-body); font-size: 0.76rem; color: var(--stone-mid); cursor: pointer; transition: all .2s; white-space: nowrap; }
.chip:hover { border-color: var(--purple); color: var(--purple); }
.chip.active { background: var(--purple); border-color: var(--purple); color: white; }
.sort-select { padding: 9px 14px; border: 1.5px solid var(--cream-dark); border-radius: 20px; font-family: var(--font-body); font-size: 0.78rem; color: var(--stone-mid); background: white; cursor: pointer; outline: none; }

/* MAIN LAYOUT */
.main-layout { max-width: 1200px; margin: 0 auto; padding: 40px 40px 80px; display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }

/* FEATURED STOTRA CARD */
.featured-stotra { background: linear-gradient(145deg, #0D0A1E, #2D1B4E, #1A0A2E); border-radius: 24px; padding: 32px; margin-bottom: 36px; position: relative; overflow: hidden; }
.fs-om { position: absolute; font-family: var(--font-hindi); font-size: 14rem; color: rgba(255,255,255,0.03); right: -20px; top: 50%; transform: translateY(-50%); }
.fs-tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(233,213,255,0.15); border: 1px solid rgba(233,213,255,0.25); border-radius: 20px; padding: 4px 14px; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #E9D5FF; margin-bottom: 14px; }
.fs-name { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: white; margin-bottom: 4px; }
.fs-name-hi { font-family: var(--font-hindi); font-size: 1.1rem; color: rgba(255,255,255,0.5); display: block; margin-bottom: 18px; }
.fs-verse { font-family: var(--font-hindi); font-size: 1.05rem; color: rgba(255,255,255,0.85); line-height: 2.2; text-align: center; background: rgba(255,255,255,0.05); border-radius: 14px; padding: 20px 24px; margin-bottom: 18px; border: 1px solid rgba(255,255,255,0.08); }
.fs-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-gold { background: var(--gold); color: var(--stone); border: none; padding: 10px 20px; border-radius: 20px; font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s; }
.btn-gold:hover { background: var(--saffron-light); transform: translateY(-1px); }
.btn-ghost-sm { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); padding: 10px 18px; border-radius: 20px; font-family: var(--font-body); font-size: 0.8rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s; text-decoration: none; }
.btn-ghost-sm:hover { background: rgba(255,255,255,0.18); }

/* CONTENT GRID */
.content-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 32px; }
.content-card { background: white; border: 1px solid var(--cream-dark); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--stone); transition: all 0.3s; }
.content-card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(107,30,15,0.1); border-color: rgba(76,29,149,0.2); }
.cc-top { height: 90px; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; position: relative; }
.cc-popular-badge { position: absolute; top: 10px; right: 10px; background: var(--purple); color: white; font-size: 0.58rem; font-weight: 700; padding: 2px 7px; border-radius: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.cc-body { padding: 14px 16px 16px; }
.cc-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--maroon); margin-bottom: 2px; line-height: 1.25; }
.cc-name-hi { font-family: var(--font-hindi); font-size: 0.82rem; color: var(--stone-mid); display: block; margin-bottom: 8px; }
.cc-meta { display: flex; align-items: center; justify-content: space-between; }
.cc-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.cc-tag { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; padding: 2px 7px; border-radius: 10px; }
.ct-deity { background: var(--saffron-pale); color: var(--saffron); }
.ct-hindi { background: var(--cream-dark); color: var(--stone-mid); }
.ct-lang { background: var(--green-light); color: var(--green); }
.ct-type { background: var(--purple-light); color: var(--purple); }
.cc-arrow { color: var(--purple); font-size: 1rem; }

/* LIST VIEW */
.list-view { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.list-item { background: white; border: 1px solid var(--cream-dark); border-radius: 14px; display: flex; align-items: center; overflow: hidden; text-decoration: none; color: var(--stone); transition: all 0.3s; }
.list-item:hover { transform: translateX(4px); box-shadow: 0 6px 24px rgba(107,30,15,0.09); border-color: rgba(76,29,149,0.2); }
.li-emoji { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; }
.li-body { flex: 1; padding: 12px 14px; }
.li-name { font-family: var(--font-display); font-size: 0.98rem; font-weight: 600; color: var(--maroon); margin-bottom: 2px; }
.li-name-hi { font-family: var(--font-hindi); font-size: 0.8rem; color: var(--stone-mid); display: block; margin-bottom: 5px; }
.li-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.li-right { padding: 12px 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.li-views { font-size: 0.68rem; color: var(--stone-light); }
.li-arrow { color: var(--purple); font-size: 0.95rem; }

/* LOAD MORE */
.load-more { display: flex; justify-content: center; margin-top: 8px; }
.btn-load { background: white; color: var(--purple); border: 1.5px solid var(--purple); padding: 12px 32px; border-radius: 50px; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.3s; letter-spacing: 0.04em; }
.btn-load:hover { background: var(--purple); color: white; }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { background: white; border-radius: 20px; border: 1px solid var(--cream-dark); padding: 22px; position: sticky; top: 88px; }
.sidebar-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--maroon); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--cream-dark); }

/* Deity filter */
.deity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.deity-btn { padding: 10px 8px; border-radius: 12px; border: 1.5px solid var(--cream-dark); background: white; cursor: pointer; text-align: center; transition: all 0.2s; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.deity-btn:hover { border-color: var(--purple); background: var(--purple-light); }
.deity-btn.active { border-color: var(--purple); background: var(--purple-light); }
.deity-emoji { font-size: 1.5rem; display: block; }
.deity-name { font-size: 0.72rem; font-weight: 600; color: var(--maroon); }
.deity-count { font-size: 0.6rem; color: var(--stone-light); }

/* Trending */
.trending-list { display: flex; flex-direction: column; gap: 12px; }
.trending-item { display: flex; align-items: flex-start; gap: 10px; text-decoration: none; color: var(--stone); transition: all 0.2s; }
.trending-item:hover .t-name { color: var(--purple); }
.t-num { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: rgba(76,29,149,0.15); line-height: 1; min-width: 24px; }
.t-name { font-size: 0.83rem; font-weight: 500; color: var(--stone); line-height: 1.35; transition: color 0.2s; }
.t-type { font-size: 0.67rem; color: var(--stone-light); margin-top: 2px; }

/* Newsletter widget */
.nl-widget { background: var(--purple-light); border: 1px solid rgba(76,29,149,0.2); border-radius: 16px; padding: 22px; text-align: center; }
.nl-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.nl-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--purple); margin-bottom: 6px; }
.nl-desc { font-size: 0.8rem; color: var(--stone-mid); margin-bottom: 14px; line-height: 1.5; }
.nl-btn { display: block; background: var(--purple); color: white; border: none; border-radius: 8px; padding: 10px 20px; font-family: var(--font-body); font-size: 0.84rem; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; transition: background .2s; }
.nl-btn:hover { background: #3b0764; }

/* FADE UP */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 1024px) { .main-layout { grid-template-columns: 1fr; } .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .breadcrumb, .search-filter-bar { padding-left: 20px; padding-right: 20px; }
  .main-layout { padding: 32px 20px 60px; }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .page-hero-content { padding: 40px 20px; }
}
@media (max-width: 500px) {
  .featured-stotra { padding: 22px 18px; }
  .fs-name { font-size: 1.5rem; }
}
