/* ================================================================
   VPEsports — News Category Archive  (vcn__ BEM)
   Magazine layout: hero → intro → featured → highlights → grid
   Depends on: main.css (tokens + utilities)
   ================================================================ */

/* ─── Page wrapper ───────────────────────────────────────────── */
.vcn__main { background: transparent; position: relative; z-index: 1; min-height: 100vh; }

/* Hide home banner image on news page — glows/streaks still show through */
.category-news .bg-banner { display: none; }

/* Hero — subtle dark veil so bg glows don't overpower text */
/* ─── HERO BANNER ────────────────────────────────────────────── */
.vcn__hero {
    position: relative;
    padding: 4.5rem 0 2.75rem;
    overflow: hidden;
    background: rgba(10, 16, 24, 0.45);
}
.vcn__hero-bg { position: absolute; inset: 0; pointer-events: none; }
.vcn__hero-dots {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,70,85,0.10) 1px, transparent 1px);
    background-size: 30px 30px;
}
.vcn__hero-slash {
    position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 45%, rgba(255,70,85,0.05) 58%, transparent 72%);
}

.vcn__breadcrumb {
    display: flex; align-items: center; gap: 0.4rem;
    font-family: var(--font-tech); font-size: 0.63rem;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--muted); margin-bottom: 1.5rem;
}
.vcn__breadcrumb a { color: var(--muted); transition: color .2s; }
.vcn__breadcrumb a:hover { color: var(--primary); }
.vcn__breadcrumb span[aria-current] { color: var(--foreground); }

.vcn__hero-content { max-width: 640px; }
.vcn__hero-eyebrow {
    display: flex; align-items: center; gap: 0.7rem;
    color: var(--primary); margin-bottom: 0.85rem;
}
.vcn__hero-pulse {
    display: inline-block; width: 7px; height: 7px;
    border-radius: 50%; background: var(--primary);
    box-shadow: 0 0 8px rgba(255,70,85,.55);
    animation: vcnPulse 2s ease-in-out infinite;
}
@keyframes vcnPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(255,70,85,.5); }
    50%      { box-shadow: 0 0 0 6px rgba(255,70,85,0); }
}
.vcn__hero-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: .92; color: var(--foreground); margin-bottom: .75rem;
}
.vcn__hero-title em { color: var(--primary); font-style: normal; }
.vcn__hero-meta { color: var(--muted); display: flex; gap: .4rem; flex-wrap: wrap; }

/* ─── EXTENDED DESCRIPTION ───────────────────────────────────── */
.vcn__intro {
    background: rgba(15, 25, 35, 0.65);
    backdrop-filter: blur(4px);
    padding: 1.5rem 0;
}
.vcn__intro .container {
    display: flex; flex-direction: column; align-items: flex-start; gap: .55rem;
}
.vcn__intro-diamond { color: var(--primary); font-size: .85rem; line-height: 1; }
.vcn__intro-title { font-size: clamp(1.2rem, 2.5vw, 1.7rem); color: var(--foreground); line-height: 1; text-align: left; }
.vcn__intro-title em { color: var(--primary); font-style: normal; }
.vcn__intro-text { color: var(--muted); font-size: .88rem; line-height: 1.7; max-width: 72ch; text-align: left; }

/* ─── BODY ───────────────────────────────────────────────────── */
.vcn__body { padding: 2.5rem 0 5rem; }

/* ─── EMPTY STATE ────────────────────────────────────────────── */
.vcn__empty { text-align: center; padding: 5rem 2rem; }

/* ─── CHIP ───────────────────────────────────────────────────── */
.vcn__chip {
    display: inline-block;
    padding: .28rem .7rem .28rem .6rem;
    background: rgba(255,70,85,.12);
    border: 1px solid rgba(255,70,85,.35);
    color: var(--primary); font-size: .6rem; white-space: nowrap;
}
.vcn__chip--sm { padding: .2rem .55rem .2rem .45rem; font-size: .56rem; }

/* ─── HUD CORNERS ────────────────────────────────────────────── */
.vcn__hud {
    position: absolute; width: 13px; height: 13px;
    border-style: solid; border-color: rgba(255,70,85,.35);
    pointer-events: none; transition: border-color .3s;
}
.vcn__hud--tl { top: 10px; left: 10px;  border-width: 2px 0 0 2px; }
.vcn__hud--tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.vcn__hud--bl { bottom: 10px; left: 10px;  border-width: 0 0 2px 2px; }
.vcn__hud--br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

/* ═══════════════════════════════════════════════════════════════
   FEATURED ARTICLE
   Full-width card, image as dark background, content overlaid
   ════════════════════════════════════════════════════════════════ */
.vcn__featured {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    margin-bottom: 1.5rem;
    min-height: 460px;
    display: flex; align-items: flex-end;

    opacity: 0; transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease;
}
.vcn__featured.is-visible { opacity: 1; transform: translateY(0); }

/* Background image */
.vcn__featured-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center 20%;
    transform: scale(1.04);
    transition: transform .6s ease;
}
.vcn__featured:hover .vcn__featured-bg { transform: scale(1.07); }

/* Dark gradient overlay — solid on left where text is, fades to show image right */
.vcn__featured-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(10,16,24,.96) 0%, rgba(10,16,24,.75) 42%, rgba(10,16,24,.25) 70%, rgba(10,16,24,.1) 100%),
        linear-gradient(0deg, rgba(10,16,24,.65) 0%, transparent 45%);
}

/* Content */
.vcn__featured-content {
    position: relative; z-index: 2;
    max-width: 600px;
    padding: 2rem 2rem 2rem 2.25rem;
    display: flex; flex-direction: column; gap: .9rem;
}
.vcn__featured-meta {
    display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
}
.vcn__featured-date,
.vcn__featured-rt { color: rgba(236,232,225,.5); font-size: .6rem; }

.vcn__featured-title {
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    line-height: .96; color: var(--foreground);
}
.vcn__featured-title a { color: inherit; transition: color .2s; }
.vcn__featured-title a:hover { color: var(--primary); }

.vcn__featured-excerpt {
    color: rgba(236,232,225,.65); font-size: .9rem; line-height: 1.65;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.vcn__featured-cta { align-self: flex-start; }

.vcn__featured:hover .vcn__hud { border-color: rgba(255,70,85,.7); }

/* ═══════════════════════════════════════════════════════════════
   HIGHLIGHTS  (2 side-by-side)
   ════════════════════════════════════════════════════════════════ */
.vcn__highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (min-width: 640px) { .vcn__highlights { grid-template-columns: repeat(2, 1fr); } }

.vcn__hl {
    background: rgba(15, 25, 35, 0.78);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    overflow: hidden; display: flex; flex-direction: column;

    opacity: 0; transform: translateY(14px);
    transition: opacity .45s ease, transform .45s ease,
                border-color .2s, box-shadow .2s;
}
.vcn__hl.is-visible { opacity: 1; transform: translateY(0); }
.vcn__hl--a.is-visible { transition-delay: 0s; }
.vcn__hl--b.is-visible { transition-delay: .07s; }
.vcn__hl--c.is-visible { transition-delay: .14s; }
.vcn__hl:hover {
    border-color: rgba(255,70,85,.45);
    box-shadow: 0 8px 32px rgba(0,0,0,.45);
    transform: translateY(-3px);
}

/* Image */
.vcn__hl-img-wrap { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.vcn__hl-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.vcn__hl:hover .vcn__hl-img { transform: scale(1.05); }
.vcn__hl-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(15,25,35,.6) 0%, transparent 55%);
}

/* Body */
.vcn__hl-body {
    display: flex; flex-direction: column; gap: .6rem;
    padding: 1.1rem 1.2rem 1.25rem;
    border-top: 1px solid var(--border); flex: 1;
}
.vcn__hl-meta { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.vcn__hl-date { color: var(--muted); font-size: .6rem; }

.vcn__hl-title {
    font-size: 1rem; font-weight: 600; line-height: 1.38;
    color: var(--foreground);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.vcn__hl-title a { color: inherit; transition: color .2s; }
.vcn__hl-title a:hover { color: var(--primary); }

.vcn__hl-excerpt {
    color: var(--muted); font-size: .83rem; line-height: 1.58; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.vcn__hl-read {
    align-self: flex-start; color: var(--primary); font-size: .62rem;
    border-bottom: 1px solid rgba(255,70,85,.3); padding-bottom: 1px;
    transition: border-color .2s;
}
.vcn__hl-read:hover { border-color: var(--primary); }

/* ─── "MORE STORIES" SEPARATOR ───────────────────────────────── */
.vcn__grid-sep {
    display: flex; align-items: center; gap: .9rem;
    color: var(--muted); font-size: .62rem; margin-bottom: 1.25rem;
}
.vcn__grid-sep-line { flex: 1; height: 1px; background: var(--border); }

/* ═══════════════════════════════════════════════════════════════
   CARD GRID
   ════════════════════════════════════════════════════════════════ */
.vcn__grid {
    display: grid; grid-template-columns: 1fr;
    gap: 1.1rem; list-style: none; margin: 0; padding: 0;
}
@media (min-width: 540px) { .vcn__grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .vcn__grid { grid-template-columns: repeat(3,1fr); } }

/* Card wrap (handles reveal) */
.vcn__card-wrap {
    opacity: 0; transform: translateY(14px);
    transition: opacity .4s ease, transform .4s ease;
}
.vcn__card-wrap.is-visible { opacity: 1; transform: translateY(0); }
.vcn__card-wrap:nth-child(2)  { transition-delay: .05s; }
.vcn__card-wrap:nth-child(3)  { transition-delay: .10s; }
.vcn__card-wrap:nth-child(4)  { transition-delay: .05s; }
.vcn__card-wrap:nth-child(5)  { transition-delay: .10s; }
.vcn__card-wrap:nth-child(6)  { transition-delay: .15s; }
.vcn__card-wrap:nth-child(7)  { transition-delay: .05s; }
.vcn__card-wrap:nth-child(8)  { transition-delay: .10s; }
.vcn__card-wrap:nth-child(9)  { transition-delay: .15s; }
.vcn__card-wrap:nth-child(10) { transition-delay: .05s; }
.vcn__card-wrap:nth-child(11) { transition-delay: .10s; }
.vcn__card-wrap:nth-child(12) { transition-delay: .15s; }

/* Card */
.vcn__card {
    background: rgba(15, 25, 35, 0.78);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    overflow: hidden; display: flex; flex-direction: column; height: 100%;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.vcn__card:hover {
    border-color: rgba(255,70,85,.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,.4);
}

/* Image */
.vcn__card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.vcn__card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .38s ease; }
.vcn__card:hover .vcn__card-img { transform: scale(1.06); }
.vcn__card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(15,25,35,.5) 0%, transparent 50%);
    pointer-events: none;
}

/* Body */
.vcn__card-body {
    display: flex; flex-direction: column; gap: .55rem;
    padding: .9rem 1rem 1rem; flex: 1;
    border-top: 1px solid var(--border);
}
.vcn__card-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.vcn__card-date { color: var(--muted); font-size: .58rem; }
.vcn__card-title {
    font-size: .94rem; font-weight: 600; line-height: 1.4; color: var(--foreground);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vcn__card-title a { color: inherit; transition: color .2s; }
.vcn__card-title a:hover { color: var(--primary); }
.vcn__card-excerpt {
    color: var(--muted); font-size: .8rem; line-height: 1.55; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vcn__card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: .5rem; border-top: 1px solid var(--border-light); margin-top: auto;
}
.vcn__card-rt { color: var(--muted); font-size: .58rem; }
.vcn__card-read { color: var(--primary); font-size: .6rem; transition: color .2s; }
.vcn__card-read:hover { color: var(--primary-glow); }

/* ═══════════════════════════════════════════════════════════════
   PAGINATION
   ════════════════════════════════════════════════════════════════ */
.vcn__pagination { margin-top: 3rem; display: flex; justify-content: center; }
.vcn__pagination .page-numbers {
    list-style: none; display: flex; align-items: center;
    gap: .4rem; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0;
}
.vcn__pagination .page-numbers li a,
.vcn__pagination .page-numbers li span {
    display: flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 .6rem;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--foreground); font-family: var(--font-tech);
    font-size: .65rem; letter-spacing: .1em;
    transition: border-color .2s, background .2s, color .2s;
    text-decoration: none;
}
.vcn__pagination .page-numbers li a:hover {
    border-color: var(--primary); background: rgba(255,70,85,.08); color: var(--primary);
}
.vcn__pagination .page-numbers li span.current {
    border-color: var(--primary); background: var(--primary); color: #fff; font-weight: 700;
}
.vcn__pagination .page-numbers li span.dots {
    border-color: transparent; background: transparent; color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE  (<640px)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 639px) {

    /* Hero */
    .vcn__hero { padding: 2.25rem 0 1.25rem; }
    .vcn__hero-title { font-size: clamp(2rem, 9vw, 2.8rem); }
    .vcn__hero-meta { font-size: .72rem; }

    /* Intro strip */
    .vcn__intro { padding: 1rem 0; }
    .vcn__intro-title { font-size: 1.1rem; }
    .vcn__intro-text { font-size: .8rem; line-height: 1.6; }

    /* Body */
    .vcn__body { padding: 1.25rem 0 2.5rem; }

    /* ── Featured: shorter, overlay from bottom ── */
    .vcn__featured {
        min-height: 240px;
        align-items: flex-end;
    }
    .vcn__featured-overlay {
        background:
            linear-gradient(0deg, rgba(10,16,24,.97) 0%, rgba(10,16,24,.6) 55%, rgba(10,16,24,.15) 100%);
    }
    .vcn__featured-content {
        max-width: 100%;
        padding: 1.1rem 1rem 1.1rem 1.1rem;
        gap: .6rem;
    }
    .vcn__featured-title { font-size: clamp(1.1rem, 5vw, 1.5rem); }
    .vcn__featured-excerpt { display: none; }

    /* ── Highlights: 2-col ── */
    .vcn__highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.55rem;
        margin-bottom: 0.85rem;
    }
    .vcn__hl-body { padding: .65rem .7rem .75rem; gap: .4rem; }
    .vcn__hl-title { font-size: .82rem; -webkit-line-clamp: 2; }
    .vcn__hl-excerpt { display: none; }
    .vcn__hl-read { display: none; }

    /* ── Card grid: 2-col ── */
    .vcn__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.55rem;
    }
    .vcn__card-body { padding: .6rem .65rem .7rem; gap: .4rem; }
    .vcn__card-title { font-size: .8rem; -webkit-line-clamp: 2; }
    .vcn__card-excerpt { display: none; }
    .vcn__card-footer { display: none; }

    /* Pagination */
    .vcn__pagination { margin-top: 1.75rem; }
}

/* ─── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .vcn__featured, .vcn__hl, .vcn__card-wrap { opacity: 1; transform: none; transition: none; }
    .vcn__featured-bg, .vcn__hl-img, .vcn__card-img { transition: none; }
    .vcn__hero-pulse { animation: none; }
}
