/* ==========================================================================
   OnlyMantra Sacred Scriptures & Epics Hub Styles
   Rich Vedic Aesthetics, Chapter Explorers, Kanda Tabs & Manuscript Cards
   ========================================================================== */

:root {
    --om-scripture-gold: #d97706;
    --om-scripture-gold-light: #fef3c7;
    --om-scripture-bg: #fdfbf7;
    --om-scripture-card-bg: #ffffff;
    --om-scripture-border: #f0e6d6;
    --om-scripture-text: #1e293b;
    --om-scripture-maroon: #450a0a;
}

.om-scripture-hub {
    background-color: var(--om-scripture-bg);
    min-height: 100vh;
    padding-bottom: 90px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --------------------------------------------------------------------------
   Animations (Yantra Rotation, Scripture Aura Pulse)
   -------------------------------------------------------------------------- */
@keyframes scriptureAura {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.65;
        transform: scale(1.15);
    }
}

@keyframes goldShimmerSweep {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes floatGentle {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

/* --------------------------------------------------------------------------
   Grand Scripture Hero Header
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Grand Scripture Hero Header
   -------------------------------------------------------------------------- */
.om-scr-hero {
    position: relative;
    padding: 56px 0 60px;
    color: #ffffff;
    overflow: hidden;
    border-bottom: 3px solid #ea580c;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(20, 10, 5, 0.75) 100%),
                url('../images/om-hero-clean.webp') center center / cover no-repeat;
    box-shadow: inset 0 -20px 40px rgba(0, 0, 0, 0.3);
}

/* Scripture Themes */
.om-scr-theme-index {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(20, 10, 5, 0.8) 100%),
                url('../images/om-hero-clean.webp') center center / cover no-repeat !important;
}

.om-scr-theme-gita {
    background: linear-gradient(180deg, rgba(9, 13, 22, 0.55) 0%, rgba(67, 20, 7, 0.8) 100%),
                url('../images/om-hero-clean.webp') center center / cover no-repeat !important;
    border-bottom-color: #f59e0b !important;
}

.om-scr-theme-ramayana {
    background: linear-gradient(180deg, rgba(28, 25, 23, 0.55) 0%, rgba(124, 45, 18, 0.8) 100%),
                url('../images/om-hero-clean.webp') center center / cover no-repeat !important;
    border-bottom-color: #f97316 !important;
}

.om-scr-theme-durga {
    background: linear-gradient(180deg, rgba(56, 4, 21, 0.55) 0%, rgba(157, 23, 77, 0.8) 100%),
                url('../images/om-hero-clean.webp') center center / cover no-repeat !important;
    border-bottom-color: #fb7185 !important;
}

.om-scr-theme-narayaneeyam {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(30, 58, 138, 0.8) 100%),
                url('../images/om-hero-clean.webp') center center / cover no-repeat !important;
    border-bottom-color: #38bdf8 !important;
}

.om-scr-theme-mahanyasam {
    background: linear-gradient(180deg, rgba(2, 32, 24, 0.55) 0%, rgba(4, 120, 87, 0.8) 100%),
                url('../images/om-hero-clean.webp') center center / cover no-repeat !important;
    border-bottom-color: #10b981 !important;
}

/* Hero Ambient Backgrounds */
.om-scr-ambient-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.om-scr-bg-mandala {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 650px;
    height: 650px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    animation: mandalaSpin 160s linear infinite;
}

.om-scr-bg-symbol {
    position: absolute;
    right: 140px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 150px;
    color: rgba(255, 255, 255, 0.12);
    text-shadow: 0 0 40px rgba(254, 215, 170, 0.3);
    animation: floatGentle 8s ease-in-out infinite;
    user-select: none;
    font-family: 'Noto Serif Devanagari', serif;
    pointer-events: none;
}

.om-scr-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.om-scr-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #fed7aa;
    margin-bottom: 22px;
}

.om-scr-breadcrumbs a {
    color: #fef08a;
    text-decoration: none;
    transition: 0.2s ease;
}

.om-scr-breadcrumbs a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.om-scr-badge-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.om-scr-pill-badge {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.om-scr-author-badge {
    background: rgba(245, 158, 11, 0.25);
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: #fef08a;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
}

.om-scr-title-main {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
    line-height: 1.18;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}

.om-scr-title-subtitle {
    font-family: 'Ramabhadra', 'Mandali', 'Suranna', 'Noto Serif Telugu', sans-serif;
    font-size: 18px;
    color: #fef08a;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.om-scr-description {
    font-size: 15.5px;
    line-height: 1.7;
    color: #f8fafc;
    max-width: 820px;
    margin: 0 0 32px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Scripture Quick Stats Strip */
.om-scr-stats-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.om-scr-stat-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.om-scr-stat-icon {
    font-size: 24px;
}

.om-scr-stat-value {
    font-size: 18px;
    font-weight: 800;
    color: #fef08a;
    line-height: 1;
}

.om-scr-stat-label {
    font-size: 12px;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   Interactive Controls / Search Bar
   -------------------------------------------------------------------------- */
.om-scr-controls-bar {
    max-width: 1280px;
    margin: -28px auto 40px;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.om-scr-controls-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.om-filter-search-input {
    width: 100%;
    padding: 14px 20px 14px 44px;
    font-size: 15px;
    font-weight: 500;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #1e293b;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.om-filter-search-input:focus {
    outline: none;
    border-color: #ea580c;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.om-scr-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

/* Kanda / Canto Filter Tabs (for Ramayanam, Durga Saptasati, etc.) */
.om-kanda-tabs-row {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.om-kanda-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s ease;
}

.om-kanda-tab:hover {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.om-kanda-tab.active {
    background: linear-gradient(135deg, #ff6b00 0%, #d95300 100%);
    border-color: #d95300;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35);
}

.om-kanda-tab .kanda-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
}

.om-kanda-tab.active .kanda-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   Layout: Main Content Grid (68%) + Sidebar (32%)
   -------------------------------------------------------------------------- */
.om-scr-main-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
}

/* --------------------------------------------------------------------------
   Scripture Index Cards (When viewing /sacred-texts/ Main Hub)
   -------------------------------------------------------------------------- */
.om-major-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.om-epic-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.om-epic-card:hover {
    background: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.08);
    border-color: #fed7aa;
}

.om-epic-card-banner {
    padding: 24px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.om-epic-card-banner::after {
    content: '📜';
    position: absolute;
    right: 15px;
    bottom: -10px;
    font-size: 70px;
    opacity: 0.15;
}

.om-epic-tag {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.25);
    display: inline-block;
    margin-bottom: 8px;
}

.om-epic-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 4px;
    line-height: 1.25;
    letter-spacing: -0.025em;
    text-transform: none;
}

.om-epic-sub {
    font-family: 'Ramabhadra', 'Mandali', 'Suranna', 'Noto Serif Telugu', sans-serif;
    font-size: 14px;
    color: #fef08a;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.om-epic-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.om-epic-desc {
    font-size: 14px;
    line-height: 1.65;
    color: #475569;
    margin: 0 0 18px;
}

.om-epic-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 18px;
}

.om-epic-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ea580c;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.2s ease;
}

.om-epic-card:hover .om-epic-cta-btn {
    background: #c2410c;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

/* --------------------------------------------------------------------------
   Chapter Cards Grid (Inside Specific Scripture e.g. Gita 18 Chapters)
   -------------------------------------------------------------------------- */
.om-chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 20px;
}

.om-chapter-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.om-chapter-card:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.08);
    border-color: #fed7aa;
}

.om-ch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.om-ch-num-badge {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #c2410c;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.om-ch-verses-count {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
}

.om-ch-title-en {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
    font-size: 17.5px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}

.om-chapter-card:hover .om-ch-title-en {
    color: #ea580c;
}

.om-ch-title-sanskrit {
    font-family: 'Ramabhadra', 'Mandali', 'Suranna', 'Noto Serif Telugu', sans-serif;
    font-size: 13.5px;
    color: #92400e;
    margin: 0 0 10px;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.om-ch-summary {
    font-size: 13.5px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 16px;
    background: #fafaf9;
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 3px solid #f59e0b;
}

.om-ch-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #ea580c;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.om-ch-action-btn:hover {
    background: #c2410c;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

/* --------------------------------------------------------------------------
   Sidebar Components
   -------------------------------------------------------------------------- */
.om-scr-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.om-scr-sidebar-box {
    background: var(--om-scripture-card-bg);
    border: 1px solid var(--om-scripture-border);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.om-scr-sidebar-title {
    font-family: 'Philosopher', 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--om-scripture-text);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #fef3c7;
    display: flex;
    align-items: center;
    gap: 8px;
}

.om-scr-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.om-scr-nav-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid #f1f5f9;
}

.om-scr-nav-label {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}

.om-scr-ch-count-badge {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    color: #c2410c;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    padding: 3px 9px;
    border-radius: 12px;
    letter-spacing: 0.2px;
}

.om-scr-nav-item a:hover {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fcd34d;
    transform: translateX(4px);
}

.om-scr-nav-item.active a {
    background: #fff7ed;
    color: #c2410c;
    border: 1.5px solid #f59e0b;
    font-weight: 700;
}

/* Parayana Schedule Box */
.om-parayana-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 20px;
}

.om-parayana-card h4 {
    font-family: 'Philosopher', 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: 16px;
    color: #92400e;
    margin: 0 0 10px;
}

.om-parayana-card p {
    font-size: 13.5px;
    line-height: 1.6;
    color: #78350f;
/* ==========================================================================
   Compact Sarga & Chapter Grid Cards
   ========================================================================== */
.om-sarga-compact-card {
    background: #ffffff;
    border: 1px solid #ede4d3;
    border-radius: 10px;
    padding: 10px 14px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.om-sarga-compact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.12);
    border-color: #f59e0b;
    background: #fffdfa;
}

.om-sarga-badge {
    font-size: 11px;
    font-weight: 800;
    color: #ea580c;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.om-sarga-title {
    font-family: 'Philosopher', 'Cormorant Garamond', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.om-sarga-read-link {
    font-size: 12.5px;
    font-weight: 700;
    color: #cbd5e1;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.om-sarga-compact-card:hover .om-sarga-read-link {
    color: #ea580c;
    transform: translateX(2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .om-scr-main-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .om-scr-ambient-wrap,
    .om-scr-bg-symbol,
    .om-scr-bg-mandala {
        display: none !important;
    }
    .om-scr-title-main {
        font-size: 26px !important;
    }
    .om-scr-hero {
        padding: 32px 0 36px !important;
    }
    .om-scr-hero-inner {
        padding: 0 16px !important;
    }
    .om-scr-controls-card {
        padding: 16px !important;
    }
    .om-epic-grid,
    .om-chapters-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .om-sarga-grid {
        grid-template-columns: 1fr !important;
    }
    .om-scr-stats-strip {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
}
