/* assets/css/style.css - Sathyadhara (Islamonlive-Inspired Modern Editorial Design System) */
@import url('https://fonts.googleapis.com/css2?family=Anek+Malayalam:wght@300;400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800&family=Manjari:wght@400;700&display=swap');

:root {
    --brand-primary: #31094C;
    --brand-secondary: #693FE2;
    --brand-secondary-hover: #5a34c7;
    --brand-accent: #7c3aed;
    --brand-gold: #d97706;
    --text-main: #18181b;
    --text-muted: #71717a;
    --border-soft: #e4e4e7;
    --bg-page: #fafafa;
    --bg-card: #ffffff;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --shadow-soft: 0 4px 20px -2px rgba(49, 9, 76, 0.06);
    --shadow-float: 0 10px 30px -5px rgba(0, 0, 0, 0.18);
    --shadow-elevated: 0 20px 40px -10px rgba(49, 9, 76, 0.15);
}

.dark {
    --brand-primary: #a855f7;
    --brand-secondary: #7c3aed;
    --brand-secondary-hover: #6d28d9;
    --brand-accent: #c084fc;
    --brand-gold: #f59e0b;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --border-soft: #27272a;
    --bg-page: #09090b;
    --bg-card: #18181b;
    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
    --shadow-float: 0 10px 30px -5px rgba(0, 0, 0, 0.7);
    --shadow-elevated: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Anek Malayalam', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* Islamic Portal Navigation (Signature IslamOnLive Purple Bar) */
.iol-nav-bar {
    background-color: #31094C;
}

.nav-cat-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    transition: all 0.18s ease;
    text-decoration: none;
    white-space: nowrap;
}

.nav-cat-link:hover, .nav-cat-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.16);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Category Pill Badges */
.pill-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: #693FE2;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.65rem;
}

/* IslamOnLive Hero Overlap Card */
.iol-hero-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .iol-hero-grid {
        grid-template-columns: 1.75fr 1fr;
        gap: 2rem;
    }
}

.iol-lead-slider {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, #1c062c 0%, #31094C 50%, #4a1570 100%);
    aspect-ratio: 16 / 11;
    min-height: 230px;
}

@media (min-width: 640px) {
    .iol-lead-slider {
        aspect-ratio: 887 / 480;
        min-height: 380px;
    }
}

.iol-overlap-card {
    position: relative;
    z-index: 20;
    margin: -2.75rem 0.75rem 0;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.15rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

@media (min-width: 640px) {
    .iol-overlap-card {
        margin: -5.5rem auto 0;
        width: 88%;
        padding: 2rem;
    }
}

/* Side Stacked Cards */
.iol-side-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background-color: #18181b;
    aspect-ratio: 16 / 10;
    display: block;
}

@media (min-width: 1024px) {
    .iol-side-card {
        aspect-ratio: 16 / 9;
    }
}

.iol-side-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.iol-side-card:hover img {
    transform: scale(1.04);
}

.iol-side-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.88) 100%);
}

.circular-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background: #693FE2;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.circular-nav-btn:hover {
    background: #5a34c7;
    transform: scale(1.05);
}

/* Section Header with Left Vertical Accent */
.iol-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 4px solid #31094C;
    padding-left: 0.85rem;
    margin-bottom: 1.25rem;
}

.dark .iol-section-header {
    border-left-color: #a855f7;
}

/* Reels Vertical Video Strip */
.reel-portrait-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 9 / 16;
    background: #18181b;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 145px;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .reel-portrait-card {
        min-width: 0;
        flex-shrink: 1;
    }
}

.reel-portrait-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(49, 9, 76, 0.2);
}

.reel-play-bubble {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reel-play-bubble span {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.reel-portrait-card:hover .reel-play-bubble span {
    background: #693FE2;
    transform: scale(1.1);
}

/* Sathyadhara PDF Magazine 3D Card */
.pdf-magazine-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.pdf-magazine-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-elevated);
    border-color: #693FE2;
}

.magazine-cover-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    background: #18181b;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.magazine-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pdf-magazine-card:hover .magazine-cover-img {
    transform: scale(1.04);
}

/* 3-Tier Paywall Overlay */
.paywall-blur-box {
    position: relative;
    margin-top: 1.5rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-soft);
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(250, 250, 250, 0.4), rgba(250, 250, 250, 0.98));
}

.dark .paywall-blur-box {
    background: linear-gradient(to bottom, rgba(24, 24, 27, 0.5), rgba(24, 24, 27, 0.99));
}

.paywall-teaser-blur {
    filter: blur(5px);
    opacity: 0.35;
    user-select: none;
    pointer-events: none;
    padding: 2rem;
}

.paywall-modal-card {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 10;
}

.paywall-inner {
    width: min(100%, 540px);
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    padding: 2.2rem;
    text-align: center;
    box-shadow: 0 25px 60px rgba(49, 9, 76, 0.25);
    backdrop-filter: blur(12px);
}

/* Sticky Floating Audio Player */
.sticky-audio-bar {
    position: fixed;
    bottom: 1.25rem;
    left: 1rem;
    right: 1rem;
    max-width: 600px;
    margin-left: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 0.75rem 1.2rem;
    box-shadow: 0 20px 45px rgba(49, 9, 76, 0.22);
    backdrop-filter: blur(20px);
    z-index: 100;
}

@media (max-width: 767px) {
    .sticky-audio-bar {
        bottom: 4.5rem;
        left: 0.75rem;
        right: 0.75rem;
    }
}

.audio-scrubber {
    accent-color: #693FE2;
    width: 100%;
    cursor: pointer;
}

/* Portal Modals */
.portal-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(49, 9, 76, 0.65);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.portal-modal-backdrop.open {
    display: flex;
    animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.portal-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 26px;
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
