/* ══════════════════════════════════════════════════════════
   NEWS — /news and /news?id=…
   Dressed like the server info and ranking pages: warm gold
   panels, rounded corners and Manrope. The list opens with the
   newest article in a large card and the rest in a grid; the
   article reads in a panel next to the latest news.
══════════════════════════════════════════════════════════ */
.nw-main {
    --nw-font: 'Manrope', var(--font-body);
    --nw-gold: #f2c14e;
    --nw-line: rgba(214,160,60,0.30);
    --nw-line-soft: rgba(214,160,60,0.14);
    --nw-panel: linear-gradient(180deg, rgba(44,26,12,0.90) 0%, rgba(24,14,8,0.94) 100%);
    --nw-well: rgba(8,4,2,0.55);
    --nw-text: #e9dcc6;
    --nw-muted: #a8957a;
    padding: 1.5rem 1.5rem 3rem;
    align-items: flex-start;
    font-family: var(--nw-font);
    color: var(--nw-text);
}

.nw-main [hidden] { display: none !important; }

.nw-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    animation: fadeUp 0.6s cubic-bezier(0.22,1,0.36,1) both;
}

/* The site-wide button look (red sweep, spaced capitals) is for call-to-action buttons. */
.nw-main button {
    width: auto;
    margin: 0;
    padding: 0;
    font-family: var(--nw-font);
    letter-spacing: normal;
    text-transform: none;
    box-shadow: none;
}

.nw-main button::before { display: none; }
.nw-main button:hover { box-shadow: none; }

.nw-state {
    padding: 2.5rem 0;
    text-align: center;
    color: var(--nw-muted);
    font-size: 0.9rem;
}

.nw-state.is-error { color: #ff7a6b; }

.nw-main .nw-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.15rem;
    border-radius: 12px;
    border: 1px solid var(--nw-line);
    background: rgba(12,7,3,0.55);
    color: var(--nw-text);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.nw-main .nw-btn:hover { border-color: var(--nw-gold); transform: translateY(-1px); }
.nw-btn i { color: var(--nw-gold); }

/* ═══════════════════════════════
   HEADER
═══════════════════════════════ */
.nw-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 2.25rem;
    margin-bottom: 1.1rem;
    border-radius: 22px;
    border: 1px solid var(--nw-line);
    background:
        linear-gradient(90deg, rgba(20,11,5,0.96) 0%, rgba(20,11,5,0.85) 45%, rgba(20,11,5,0.45) 100%),
        url('/images/hero-bg.png') center 22% / cover no-repeat,
        #1a0f07;
    box-shadow: 0 24px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,220,150,0.08);
}

.nw-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.28rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--nw-line);
    background: rgba(242,193,78,0.10);
    color: var(--nw-gold);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nw-hero-title {
    margin: 0.75rem 0 0.4rem;
    font-family: var(--nw-font);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-bright);
}

.nw-hero-lead { margin: 0; max-width: 520px; font-size: 0.98rem; line-height: 1.6; color: #d8c8ae; }

.nw-hero .nw-btn { flex: none; }

/* ── Categories ── */
.nw-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}

.nw-main .nw-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--nw-line-soft);
    background: var(--nw-well);
    color: var(--nw-text);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.nw-main .nw-chip:hover { border-color: var(--nw-line); }

.nw-main .nw-chip.is-active {
    border-color: var(--nw-gold);
    background: rgba(242,193,78,0.14);
    color: var(--nw-gold);
}

.nw-chip-count {
    min-width: 1.5rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: rgba(242,193,78,0.12);
    color: var(--nw-muted);
    font-size: 0.7rem;
    text-align: center;
}

.nw-chip.is-active .nw-chip-count { background: var(--nw-gold); color: #2a1703; }

/* ── Tag and date (cards and article) ── */
.nw-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.85rem;
    font-size: 0.78rem;
    color: var(--nw-muted);
}

.nw-tag {
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(242,193,78,0.45);
    background: rgba(242,193,78,0.10);
    color: var(--nw-gold);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.nw-date { display: inline-flex; align-items: center; gap: 0.35rem; }
.nw-date i { font-size: 0.75rem; opacity: 0.8; }

/* ── Cover without a picture: the server artwork, dimmed, with the scroll on top ── */
.is-blank {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 50%, rgba(242,193,78,0.12) 0%, transparent 60%),
        linear-gradient(180deg, rgba(20,11,5,0.75), rgba(20,11,5,0.92)),
        url('/images/hero-bg.png') center 30% / cover no-repeat;
    color: rgba(242,193,78,0.55);
    font-size: 2.2rem;
}

/* ═══════════════════════════════
   FEATURED (newest)
═══════════════════════════════ */
.nw-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    margin-bottom: 1.1rem;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--nw-line-soft);
    background: var(--nw-panel);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(0,0,0,0.35);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nw-featured:hover {
    border-color: var(--nw-line);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(242,193,78,0.08);
}

.nw-featured-cover {
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: 360px;
    object-fit: cover;
    border-right: 1px solid var(--nw-line-soft);
    transition: transform 0.5s;
}

.nw-featured-cover.is-blank { font-size: 3.2rem; }

.nw-featured-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1.9rem 2rem;
}

.nw-latest {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffd25e, #e09a17);
    color: #2a1703;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nw-featured-title {
    margin: 0;
    font-family: var(--nw-font);
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.2px;
    text-align: left;
    text-transform: none;
    color: var(--text-bright);
}

.nw-featured-summary {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #d8c8ae;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nw-featured-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--nw-line-soft);
}

/* ═══════════════════════════════
   GRID
═══════════════════════════════ */
.nw-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.nw-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--nw-line-soft);
    background: var(--nw-panel);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(0,0,0,0.35);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nw-card:hover {
    border-color: var(--nw-line);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(242,193,78,0.08);
}

.nw-card-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid var(--nw-line-soft);
}

.nw-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.1rem 1.25rem 1.2rem;
}

.nw-card-title {
    margin: 0;
    font-family: var(--nw-font);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-bright);
}

.nw-card-summary {
    flex: 1;
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.6;
    color: #cbbba0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nw-card-more {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--nw-gold);
    font-size: 0.8rem;
    font-weight: 800;
}

.nw-card-more i { font-size: 0.75rem; transition: transform 0.2s; }
.nw-card:hover .nw-card-more i,
.nw-featured:hover .nw-card-more i { transform: translateX(4px); }

.nw-more-wrap { display: flex; justify-content: center; margin-top: 1.5rem; }

/* ═══════════════════════════════
   ARTICLE
═══════════════════════════════ */
.nw-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0.7rem;
    margin-bottom: 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--nw-line-soft);
    background: var(--nw-panel);
}

.nw-bar-back {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--nw-line-soft);
    background: var(--nw-well);
    color: var(--nw-text);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.2s;
}

.nw-bar-back:hover { border-color: var(--nw-gold); }
.nw-bar-back i { color: var(--nw-gold); }

.nw-bar-where { display: flex; align-items: baseline; gap: 0.45rem; flex: 1; min-width: 0; font-size: 0.88rem; }
.nw-bar-section { color: var(--nw-muted); white-space: nowrap; }
.nw-bar-sep { color: var(--nw-muted); }
.nw-bar-page { color: var(--text-bright); font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nw-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.25rem;
    align-items: start;
}

.nw-article {
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--nw-line-soft);
    background: var(--nw-panel);
    box-shadow: 0 14px 34px rgba(0,0,0,0.35);
}

.nw-article-cover {
    display: block;
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-bottom: 1px solid var(--nw-line-soft);
}

.nw-article-head { padding: 1.75rem 2.25rem 0; }

.nw-article-title {
    margin: 0.85rem 0 0;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--nw-line-soft);
    font-family: var(--nw-font);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-bright);
}

.nw-article .news-content { padding: 1.5rem 2.25rem 0.5rem; }

.nw-article-foot {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.25rem 2.25rem 0;
    padding: 1.25rem 0 1.75rem;
    border-top: 1px solid var(--nw-line-soft);
}

/* ── Latest news next to the article ── */
.nw-side {
    position: sticky;
    top: 1rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid var(--nw-line-soft);
    background: var(--nw-panel);
}

.nw-side-title {
    margin: 0.2rem 0.3rem 0.8rem;
    font-family: var(--nw-font);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-align: left;
    text-transform: uppercase;
    color: var(--nw-gold);
}

.nw-side-list { display: flex; flex-direction: column; gap: 0.35rem; }

.nw-side-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s;
}

.nw-side-item:hover { background: rgba(242,193,78,0.07); }

.nw-side-cover {
    flex: none;
    width: 76px;
    height: 54px;
    border-radius: 9px;
    object-fit: cover;
    border: 1px solid var(--nw-line-soft);
}

.nw-side-cover.is-blank { font-size: 1.1rem; }

.nw-side-text { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }

.nw-side-name {
    color: var(--text-bright);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nw-side-item:hover .nw-side-name { color: var(--nw-gold); }
.nw-side-date { color: var(--nw-muted); font-size: 0.72rem; }

/* ═══════════════════════════════
   NARROW SCREENS
═══════════════════════════════ */
@media (max-width: 1000px) {
    .nw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nw-columns { grid-template-columns: 1fr; }
    .nw-side { position: static; }
}

@media (max-width: 760px) {
    .nw-main { padding: 1rem 1rem 2.5rem; }
    .nw-hero { flex-direction: column; align-items: flex-start; gap: 1.1rem; padding: 1.5rem 1.3rem; }
    .nw-featured { grid-template-columns: 1fr; }
    .nw-featured-cover { min-height: 0; aspect-ratio: 16 / 9; border-right: none; border-bottom: 1px solid var(--nw-line-soft); }
    .nw-featured-body { padding: 1.25rem 1.3rem 1.4rem; }
    .nw-article-head { padding: 1.25rem 1.2rem 0; }
    .nw-article .news-content { padding: 1.25rem 1.2rem 0.25rem; }
    .nw-article-foot { margin: 1rem 1.2rem 0; padding-bottom: 1.25rem; }
}

@media (max-width: 560px) {
    .nw-grid { grid-template-columns: 1fr; }
    .nw-bar-where { display: none; }
}
