/* =========================================================
   BERITA DETAIL PROFESSIONAL
   File: public/assets/css/berita-detail-modern.css
   Load after main.css
========================================================= */

:root {
    --bd-primary: #063d2b;
    --bd-secondary: #198754;
    --bd-emerald: #20c997;
    --bd-gold: #c8a96a;
    --bd-navy: #0f172a;
    --bd-muted: #64748b;
    --bd-soft: #f8fafc;
    --bd-shadow: 0 24px 70px rgba(15, 23, 42, .10);
    --bd-shadow-hover: 0 36px 100px rgba(15, 23, 42, .16);
}

.berita-detail-page {
    font-family: "Plus Jakarta Sans", "Poppins", sans-serif;
    color: var(--bd-navy);
    background: #fff;
    overflow-x: hidden;
}

.berita-detail-page img {
    max-width: 100%;
}

.berita-detail-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(25, 135, 84, .10);
    color: var(--bd-secondary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.berita-detail-kicker.dark {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
}

/* HERO */
.berita-detail-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 150px 0 110px;
    color: #fff;
    background:
        radial-gradient(circle at 14% 24%, rgba(32, 201, 151, .13), transparent 34%),
        radial-gradient(circle at 88% 12%, rgba(200, 169, 106, .15), transparent 30%),
        linear-gradient(135deg, #10261e 0%, #163629 48%, #1c2d42 100%);
}

.berita-detail-pattern {
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 88%);
}

.berita-detail-word {
    position: absolute;
    font-weight: 1000;
    line-height: 1;
    letter-spacing: -12px;
    pointer-events: none;
    user-select: none;
    z-index: -1;
    white-space: nowrap;
}

.berita-detail-word.word-top {
    top: 92px;
    right: -5%;
    font-size: clamp(80px, 14vw, 220px);
    color: rgba(255,255,255,.035);
}

.berita-detail-word.word-bottom {
    left: -4%;
    bottom: 5%;
    font-size: clamp(80px, 15vw, 240px);
    color: rgba(32,201,151,.04);
}

.berita-detail-hero-content {
    position: relative;
    z-index: 2;
    max-width: 980px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.76);
    text-decoration: none;
    font-weight: 850;
    margin-bottom: 28px;
    transition: .25s ease;
}

.back-link:hover {
    color: #fff;
    gap: 12px;
}

.berita-detail-hero h1 {
    color: #fff;
    font-size: clamp(42px, 6vw, 82px);
    line-height: .98;
    letter-spacing: -4px;
    font-weight: 950;
    margin: 0 0 26px;
}

.berita-detail-hero p {
    max-width: 850px;
    color: rgba(255,255,255,.76);
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 34px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.article-meta div {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.78);
    backdrop-filter: blur(14px);
    font-weight: 800;
    font-size: 13px;
}

.article-meta i {
    color: var(--bd-gold);
}

/* ARTICLE */
.berita-detail-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(80px, 9vw, 130px) 0;
    background: linear-gradient(180deg, #f8fafc, #fff);
}

.section-bg-word {
    position: absolute;
    right: -5%;
    top: 5%;
    font-size: clamp(80px, 18vw, 260px);
    font-weight: 1000;
    letter-spacing: -12px;
    line-height: 1;
    white-space: nowrap;
    color: rgba(15, 23, 42, .024);
    pointer-events: none;
    user-select: none;
    z-index: -1;
}

.berita-detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: start;
}

.article-main {
    min-width: 0;
}

.article-featured-image {
    position: relative;
    overflow: hidden;

    border-radius: 38px;
    box-shadow: var(--bd-shadow);
    border: 1px solid rgba(15,23,42,.06);

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eef5f2
        );

    margin-bottom: 32px;

    padding: 16px;
}

.article-featured-image img {
    width: 100%;
    height: auto;

    display: block;

    border-radius: 28px;

    object-fit: contain;
}

.article-featured-image::after {
    display: none;
}

.article-featured-image span {
    position: absolute;

    top: 28px;
    left: 28px;

    z-index: 3;

    padding: 10px 16px;

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            var(--bd-gold),
            #f5d76e
        );

    color: #111827;

    font-size: 11px;
    font-weight: 950;

    letter-spacing: 1px;
    text-transform: uppercase;

    box-shadow:
        0 10px 25px rgba(0,0,0,.12);
}

.article-content-card {
    padding: clamp(30px, 5vw, 62px);
    border-radius: 38px;
    background: #fff;
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: var(--bd-shadow);
}

.article-content {
    color: #334155;
    font-size: 17px;
    line-height: 2.05;
}

.article-content p {
    margin-bottom: 22px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--bd-navy);
    font-weight: 950;
    letter-spacing: -.8px;
    margin: 34px 0 16px;
}

.article-video {
    margin-top: 42px;
    padding-top: 34px;
    border-top: 1px solid rgba(15,23,42,.08);
}

.video-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.video-heading i {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(25,135,84,.10);
    color: var(--bd-secondary);
    font-size: 25px;
}

.video-heading strong,
.video-heading span {
    display: block;
}

.video-heading strong {
    color: var(--bd-navy);
    font-weight: 950;
}

.video-heading span {
    color: var(--bd-muted);
    font-size: 13px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    border-radius: 26px;
    box-shadow: 0 18px 44px rgba(15,23,42,.12);
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* SIDEBAR */
.article-sidebar {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 18px;
}

.sidebar-card {
    padding: 26px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 14px 36px rgba(15,23,42,.06);
}

.sidebar-card.highlight {
    background:
        radial-gradient(circle at top right, rgba(200,169,106,.24), transparent 44%),
        linear-gradient(135deg, var(--bd-primary), var(--bd-secondary));
    color: #fff;
}

.sidebar-card.highlight span {
    color: var(--bd-gold);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.sidebar-card h3,
.sidebar-card h4 {
    font-weight: 950;
    color: var(--bd-navy);
    margin-bottom: 12px;
}

.sidebar-card.highlight h3 {
    color: #fff;
    font-size: 28px;
    line-height: 1.12;
    margin-top: 12px;
}

.sidebar-card p {
    color: var(--bd-muted);
    line-height: 1.75;
    margin: 0;
}

.sidebar-card.highlight p {
    color: rgba(255,255,255,.76);
}

.sidebar-info-list {
    display: grid;
    gap: 12px;
}

.sidebar-info-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--bd-muted);
    font-weight: 800;
}

.sidebar-info-list i {
    color: var(--bd-secondary);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-buttons a {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(25,135,84,.09);
    color: var(--bd-secondary);
    text-decoration: none;
    transition: .28s ease;
}

.share-buttons a:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, var(--bd-primary), var(--bd-secondary));
    color: #fff;
}

.sidebar-card.cta {
    background: #f8fafc;
}

.sidebar-card.cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--bd-secondary);
    text-decoration: none;
    font-weight: 950;
}

/* CLOSING CTA */
.article-closing-cta {
    padding: clamp(80px, 9vw, 130px) 0;
    background: linear-gradient(180deg, #fff, #f8fafc);
}

.article-cta-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    overflow: hidden;
    padding: clamp(38px, 6vw, 78px);
    border-radius: 42px;
    background:
        radial-gradient(circle at top right, rgba(200,169,106,.28), transparent 36%),
        linear-gradient(135deg, var(--bd-primary), #0f172a);
    color: #fff;
    box-shadow: 0 34px 100px rgba(15,23,42,.20);
}

.article-cta-box h2 {
    color: #fff;
    font-size: clamp(34px, 5vw, 66px);
    line-height: 1.04;
    letter-spacing: -2.4px;
    font-weight: 950;
    margin-bottom: 16px;
}

.article-cta-box p {
    color: rgba(255,255,255,.74);
    max-width: 650px;
    line-height: 1.85;
    margin: 0;
}

.article-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 15px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 950;
    background: linear-gradient(135deg, var(--bd-gold), #f5d76e);
    color: #111827;
    transition: .3s ease;
    box-shadow: 0 20px 44px rgba(200,169,106,.28);
}

.article-cta-btn:hover {
    color: #111827;
    transform: translateY(-4px);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .berita-detail-layout,
    .article-cta-box {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }

    .article-featured-image {
        height: 420px;
    }
}

@media (max-width: 768px) {
    .berita-detail-hero {
        padding: 125px 0 80px;
    }

    .berita-detail-hero h1,
    .article-cta-box h2 {
        letter-spacing: -1.4px;
    }

    .article-featured-image,
    .article-content-card,
    .sidebar-card,
    .article-cta-box {
        border-radius: 26px;
    }

    .article-content-card {
        padding: 26px;
    }

    .article-featured-image {
        height: 330px;
    }
}

@media (max-width: 576px) {
    .berita-detail-word,
    .section-bg-word {
        display: none;
    }

    .article-meta div {
        width: 100%;
    }
}
