/* ============================================
   PERSPECTIVE NEWS — Shared Stylesheet
   Editorial Dark Theme · Modern News Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --ink: #0f0f0f;
    --paper: #faf9f7;
    --accent: #c0392b;
    --accent-dark: #922b21;
    --accent-light: #f5b7b1;
    --mid: #4a4a4a;
    --light: #8a8a8a;
    --rule: #e0ddd8;
    --highlight: #fff9e6;
    --card-bg: #ffffff;
    --nav-bg: #111111;
    --tag-bg: #1a1a1a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Serif 4', Georgia, serif;
    background: var(--paper);
    color: var(--ink);
    font-size: 18px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

/* ─── TOPBAR ─── */
.topbar {
    background: var(--nav-bg);
    color: #fff;
    padding: 0 clamp(16px, 5vw, 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--accent);
}

.topbar-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #fff;
    text-decoration: none;
}

.topbar-logo span {
    color: var(--accent);
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
    padding: 6px 0;
}

.nav-back:hover {
    color: #fff;
}

.nav-back::before {
    content: '←';
    font-size: 1em;
    transition: transform 0.2s;
}

.nav-back:hover::before {
    transform: translateX(-3px);
}

.nav-section-tag {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(192, 57, 43, 0.15);
    padding: 4px 10px;
    border-radius: 2px;
}

/* ─── HERO ─── */
.article-hero {
    background: var(--ink);
    color: #fff;
    padding: clamp(40px, 8vw, 100px) clamp(16px, 8vw, 120px);
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 50%, rgba(192, 57, 43, 0.15) 0%, transparent 60%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.hero-kicker {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeDown 0.6s ease both;
}

.hero-kicker::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent);
}

.article-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    max-width: 820px;
    margin-bottom: 24px;
    color: #fff;
    text-shadow: none;
    animation: fadeDown 0.7s ease 0.1s both;
}

.article-hero .deck {
    font-family: 'Source Serif 4', serif;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 300;
    font-style: italic;
    color: #ccc;
    max-width: 700px;
    line-height: 1.7;
    border-left: 3px solid var(--accent);
    padding-left: 18px;
    animation: fadeDown 0.8s ease 0.2s both;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    color: #888;
    animation: fadeDown 0.9s ease 0.3s both;
}

.hero-meta .dot {
    color: var(--accent);
}

/* ─── MAIN CONTENT LAYOUT ─── */
.article-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 80px) clamp(16px, 5vw, 60px);
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 60px;
    align-items: start;
}

.article-main {
    min-width: 0;
}

.article-sidebar {
    position: sticky;
    top: 80px;
}

/* ─── LEAD IMAGE ─── */
.lead-image-wrap {
    margin: 0 0 40px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.lead-image-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.lead-image-wrap:hover img {
    transform: scale(1.02);
}

.image-caption {
    background: var(--ink);
    color: #aaa;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    line-height: 1.5;
    padding: 10px 14px;
    letter-spacing: 0.02em;
}

/* ─── PROSE ─── */
.prose {
    color: var(--ink);
}

.prose p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 24px;
    text-align: left;
    color: #222;
}

.prose p:first-child::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 4.5em;
    font-weight: 900;
    float: left;
    line-height: 0.75;
    margin: 6px 12px 0 0;
    color: var(--accent);
}

.prose strong,
.prose b {
    color: var(--accent-dark);
    font-weight: 600;
}

/* ─── PULL QUOTE ─── */
.pull-quote {
    border-left: 4px solid var(--accent);
    background: var(--highlight);
    padding: 24px 28px;
    margin: 36px 0;
    border-radius: 0 6px 6px 0;
}

.pull-quote p {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem !important;
    font-style: italic;
    line-height: 1.6 !important;
    color: var(--ink) !important;
    margin: 0 !important;
}

.pull-quote p::first-letter {
    all: unset;
}

/* ─── SECTION DIVIDER ─── */
.section-rule {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 40px 0;
}

.section-rule span {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
}

.section-rule::before,
.section-rule::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--rule);
}

/* ─── INLINE IMAGE ─── */
.inline-image {
    margin: 32px 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.inline-image img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.inline-image.float-left {
    float: left;
    width: 300px;
    margin: 8px 28px 16px 0;
}

.inline-image.float-right {
    float: right;
    width: 280px;
    margin: 8px 0 16px 28px;
}

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* ─── VIDEO EMBED ─── */
.video-embed {
    margin: 36px 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    background: #000;
}

.video-embed iframe {
    display: block;
    width: 100%;
    height: 360px;
    border: none;
}

.video-caption {
    background: #111;
    color: #888;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    padding: 10px 14px;
    font-style: italic;
}

/* ─── SIDEBAR ─── */
.sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-card h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.sidebar-stat {
    text-align: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
}

.sidebar-stat:last-child {
    border-bottom: none;
}

.sidebar-stat .number {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}

.sidebar-stat .label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    color: var(--mid);
    margin-top: 4px;
}

/* ─── GALLERY ─── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 36px 0;
}

.gallery-card {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    background: var(--card-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.gallery-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-card-caption {
    padding: 16px 18px;
}

.gallery-card-caption h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
    font-style: normal;
    background: none;
    border: none;
    padding: 0;
    animation: none;
}

.gallery-card-caption p {
    font-family: 'Source Serif 4', serif;
    font-size: 0.88rem;
    color: var(--mid);
    line-height: 1.6;
    margin: 0;
}

.gallery-card-caption p::first-letter {
    all: unset;
}

/* ─── LIVE NEWS FEED ─── */
.news-feed-section {
    background: var(--ink);
    color: #fff;
    padding: 48px clamp(16px, 5vw, 60px);
    margin: 60px calc(-1 * clamp(16px, 5vw, 60px));
    border-radius: 8px;
}

.news-feed-section h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-feed-section h2::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.news-article-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: start;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.news-article-card:last-child {
    border-bottom: none;
}

.news-article-card:hover .card-title {
    color: var(--accent-light);
}

.card-section-tag {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 6px;
    display: block;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    transition: color 0.2s;
}

.card-date {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    color: #666;
    white-space: nowrap;
    padding-top: 4px;
}

.news-loading {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    padding: 32px;
}

/* ─── DISCLAIMER FOOTER ─── */
.disclaimer {
    background: #1a1a1a;
    color: #999;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    line-height: 1.7;
    padding: 20px 28px;
    border-radius: 4px;
    margin: 48px 0 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.disclaimer strong {
    color: var(--accent-light);
    font-weight: 600;
    white-space: nowrap;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .article-body {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .article-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .lead-image-wrap img {
        height: 260px;
    }

    .video-embed iframe {
        height: 220px;
    }

    .inline-image.float-left,
    .inline-image.float-right {
        float: none;
        width: 100%;
        margin: 16px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .article-hero h1 {
        font-size: 1.6rem;
    }

    .news-article-card {
        grid-template-columns: 1fr;
    }

    .card-date {
        display: none;
    }
}