/* ========================================
   JAIN JINVANI - CONTENT PAGE STYLES
   Styles for stotra, puja, chalisa content pages
   ======================================== */

/* ===== Page Hero (Content Pages) ===== */
.page-hero {
    background: var(--gradient-sacred);
    padding: 40px 0 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Hero with background image */
.page-hero.hero-image {
    padding: 60px 0 30px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 35, 35, 0.85) 0%, rgba(178, 34, 34, 0.75) 100%);
    z-index: 1;
}

.page-hero.hero-image .container {
    position: relative;
    z-index: 2;
}

/* Category-specific hero backgrounds */
.page-hero.hero-stotra {
    background: url('../assets/stotra_devotion.png') center/cover no-repeat;
}

.page-hero.hero-puja {
    background: url('../assets/puja_ritual.png') center/cover no-repeat;
}

.page-hero.hero-chalisa {
    background: url('../assets/chalisa_reading.png') center/cover no-repeat;
}

.page-hero.hero-arti {
    background: url('../assets/arti_ceremony.png') center/cover no-repeat;
}

.page-hero.hero-bhajan {
    background: url('../assets/bhajan_kirtan.png') center/cover no-repeat;
}

.page-hero.hero-path {
    background: url('../assets/path_recitation.png') center/cover no-repeat;
}

.page-hero.hero-vidhan {
    background: url('../assets/vidhan_ritual.png') center/cover no-repeat;
}

.page-hero.hero-parv-puja {
    background: url('../assets/paryushan_parva.png') center/cover no-repeat;
}

.page-hero.hero-namokar {
    background: url('../assets/namokar_mantra.png') center/cover no-repeat;
}

.page-hero h1 {
    color: white;
    margin-bottom: 10px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.page-hero .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

/* ===== Page Content Area ===== */
.page-content {
    padding: 30px 0;
    /* Ensure content doesn't get hidden by the dock */
    padding-bottom: 120px;
}

/* ===== Back Link ===== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-saffron);
    font-weight: 600;
    margin-bottom: 20px;
    padding: 8px 0;
    transition: var(--transition-smooth);
}

.back-link:hover {
    color: var(--kumkum-red);
    transform: translateX(-4px);
}

/* ===== Content Card ===== */
.content-card {
    background: white;
    border-radius: 25px;
    padding: 24px 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.content-card h2 {
    color: var(--deep-maroon);
    margin-bottom: 10px;
}

.content-card h3 {
    color: var(--deep-maroon);
    margin-bottom: 20px;
}

/* ===== Verse Block ===== */
.verse-block {
    padding: 16px 18px;
    margin-bottom: 16px;
    background: var(--cream-bg);
    border-radius: 15px;
    border-left: 4px solid var(--primary-saffron);
}

.verse-block.highlight {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
    border-left-color: var(--gold);
}

.verse-block .sanskrit,
.sanskrit {
    font-family: var(--font-devanagari);
    font-size: 1.3rem;
    color: var(--deep-maroon);
    line-height: 1.8;
    font-weight: 500;
    margin-bottom: 5px;
}

.verse-num {
    color: var(--primary-saffron);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.translation {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

/* ===== Content Text Formatting (All Types) ===== */
/* Apply to all sadhana content: stotra, chalisa, puja, vidhan, path, arti, bhajan */
.stotra-text,
.chalisa-text,
.puja-text,
.vidhan-text,
.path-text,
.arti-text,
.bhajan-text {
    font-family: var(--font-devanagari);
    font-size: 1.25rem;
    line-height: 2.6;
    color: var(--text-dark);
    /* Preserve line breaks and spacing from HTML */
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Section title formatting (॥ दोहा ॥, ॥ चौपाई ॥, ॥ स्थापना ॥, etc.) */
.stotra-text .section-title,
.chalisa-text .section-title,
.puja-text .section-title,
.vidhan-text .section-title,
.path-text .section-title,
.arti-text .section-title,
.bhajan-text .section-title {
    display: block;
    text-align: center;
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 700;
    margin: 50px 0 30px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(255, 215, 0, 0.08));
    border-radius: 12px;
    border-left: 4px solid var(--gold);
    border-right: 4px solid var(--gold);
}

/* First section title has less top margin */
.stotra-text .section-title:first-of-type,
.chalisa-text .section-title:first-of-type,
.puja-text .section-title:first-of-type,
.vidhan-text .section-title:first-of-type,
.path-text .section-title:first-of-type,
.arti-text .section-title:first-of-type,
.bhajan-text .section-title:first-of-type {
    margin-top: 0;
}

/* Bold text for subsection headers like (जल), (चन्दन), (पुष्प), (गीता छंद), etc. */
.stotra-text b,
.chalisa-text b,
.puja-text b,
.vidhan-text b,
.path-text b,
.arti-text b,
.bhajan-text b {
    display: block;
    margin-top: 28px;
    margin-bottom: 10px;
    color: var(--kumkum-red);
    font-size: 1.2rem;
    font-weight: 600;
}

/* First bold after section-title should have less top margin */
.stotra-text .section-title+b,
.chalisa-text .section-title+b,
.puja-text .section-title+b,
.vidhan-text .section-title+b,
.path-text .section-title+b,
.arti-text .section-title+b,
.bhajan-text .section-title+b {
    margin-top: 20px;
}

/* Mantra lines (lines starting with ॐ) - Bold, larger, centered */
.mantra-line {
    display: block;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--kumkum-red);
    text-align: center;
    margin: 25px 0;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(255, 215, 0, 0.05));
    border-radius: 8px;
}

/* Verse numbers (॥ 1 ॥, ॥ 2 ॥, etc.) */
.verse-number {
    display: inline-block;
    font-weight: 600;
    color: var(--gold);
    font-size: 1.1rem;
    margin: 0 8px;
}

/* ===== Content List (Category Pages) ===== */
.content-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 18px;
    background: var(--cream-bg);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-left: 4px solid transparent;
}

.content-list li:hover {
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left-color: var(--primary-saffron);
    transform: translateX(5px);
}

.content-list li .number {
    background: var(--gradient-sacred);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.content-list li .title {
    font-family: var(--font-devanagari);
    font-size: 1.1rem;
    color: #ffffff !important;
    font-weight: 500;
}

/* ===== Category Header ===== */
.category-header {
    color: var(--deep-maroon);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--cream-bg);
}

/* ===== Mantra/Prayer Box ===== */
.mantra-box {
    background: linear-gradient(135deg, var(--cream-bg) 0%, white 100%);
    border: 2px solid var(--gold);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

.mantra-box .mantra-text {
    font-family: var(--font-devanagari);
    font-size: 1.5rem;
    color: var(--deep-maroon);
    line-height: 2;
    font-weight: 600;
}

/* ===== Info Card ===== */
.info-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.info-card h4 {
    color: var(--deep-maroon);
    margin-bottom: 10px;
}

.info-card p {
    line-height: 1.8;
    color: var(--text-dark);
}

/* ===== Dark Mode Overrides ===== */
[data-theme="dark"] .content-card {
    background: var(--bg-dark);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .verse-block {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .verse-block .sanskrit,
[data-theme="dark"] .sanskrit {
    color: var(--gold);
}

[data-theme="dark"] .content-list li {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .content-list li:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .content-list li .title {
    color: var(--warm-white);
}

[data-theme="dark"] .translation {
    color: rgba(255, 255, 255, 0.7);
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .page-hero {
        padding: 30px 0 15px;
    }

    .page-hero .icon {
        font-size: 2.5rem;
    }

    .content-card {
        padding: 18px 15px;
        border-radius: 20px;
    }

    .verse-block {
        padding: 14px 15px;
    }

    .verse-block .sanskrit,
    .sanskrit {
        font-size: 1.15rem;
    }

    .content-list li {
        padding: 14px 15px;
    }

    .content-list li .title {
        font-size: 1rem;
    }
}