@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;1,700&display=swap");

:root {
    --pma-primary: #4b7ed1;
    --pma-primary-soft: rgba(75, 126, 209, 0.1);
    --pma-dark: #0f172a;
    --pma-text-main: #334155;
    --pma-text-light: #64748b;
    --pma-bg-slate: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.editorial-hero {
    margin-top: 140px;
}

.modern-editorial-wrapper {
    font-family: "Plus Jakarta Sans", sans-serif;
    background-color: var(--white);
    color: var(--pma-text-main);
    overflow-x: hidden;
}

/* --- Progress Bar --- */
.reading-progress-container {
    position: fixed;
    top: 0;
    z-index: 9999;
    width: 100%;
    height: 4px;
    background: transparent;
}

.progress-bar {
    height: 4px;
    background: var(--pma-primary);
    width: 0%;
}

/* --- Hero Section --- */
.editorial-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: var(--pma-dark);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    animation: heroPan 30s infinite alternate;
}

@keyframes heroPan {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.9));
    z-index: 1;
}

/* --- Content Layout --- */
.content-overlap-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -150px;
    padding-bottom: 80px;
}

.main-editorial-card {
    background: var(--white);
    border-radius: 24px;
    padding: 4rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* --- Typography --- */
.category-pill {
    display: inline-flex;
    padding: 6px 16px;
    background: var(--pma-primary-soft);
    color: var(--pma-primary);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.editorial-title {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--pma-dark);
    line-height: 1.2;
    margin-bottom: 2rem;
}

.editorial-richtext {
    font-size: 1.15rem;
    line-height: 1.8;
}

.editorial-richtext img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* --- Avatar & Meta --- */
.initial-avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--pma-primary) 0%, #1e40af 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.premium-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Sidebar Widgets --- */
.sidebar-sticky {
    position: sticky;
    top: 100px;
}

.premium-widget {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #f1f5f9;
}

.mini-post {
    display: flex;
    gap: 15px;
    margin-bottom: 1.2rem;
    align-items: center;
}

.mini-post-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1200px) {
    .main-editorial-card {
        padding: 3rem;
    }
}

@media (max-width: 991px) {
    .editorial-hero {
        margin-top: 80px;
    }

    .content-overlap-wrapper {
        margin-top: -100px;
    }

    .sidebar-sticky {
        position: static;
    }

    .editorial-hero {
        height: 40vh;
    }
}

@media (max-width: 768px) {
    .editorial-hero {
        margin-top: 83px;
    }

    .main-editorial-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .editorial-title {
        margin-bottom: 1.5rem;
    }

    .premium-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .content-overlap-wrapper {
        margin-top: -60px;
        padding-bottom: 40px;
    }

    .drop-cap::first-letter {
        font-size: 3.5rem;
    }
}

@media (max-width: 576px) {
    .editorial-hero {
        height: 300px;
    }

    .editorial-richtext {
        font-size: 1.05rem;
    }
}
