/* ==========================================================================
   MWRO — News Stylesheet (Premium Gaming Theme)
   ==========================================================================
   Styles specific to news.php.
   All design tokens and base component styles are in site-menu.css.
   ========================================================================== */

/* ── Page Background ── */
.news-bg {
    position: fixed;
    inset: 0;
    z-index: -3;
    background: url('../img/maps/Map003_Tiles/File0010.jpg') center center / cover no-repeat;
    filter: brightness(0.3) saturate(0.45);
}

.news-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(212, 175, 55, 0.05), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(142, 108, 74, 0.04), transparent 45%),
        linear-gradient(180deg, rgba(10, 9, 7, 0.8) 0%, rgba(0, 0, 0, 0.92) 100%);
}

.page-content {
    position: relative;
    z-index: 1;
}

.news-shell {
    padding-bottom: 60px;
}

/* ── Section titles ── */
.section-title {
    color: var(--mw-gold);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 4px #000;
}

/* ==========================================================================
   Featured News Card
   ========================================================================== */

.news-featured {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--mw-border);
    border-radius: 8px;
    background: var(--mw-panel);
    box-shadow: var(--mw-shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.news-featured img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--mw-border);
    filter: saturate(0.9) contrast(1.05) brightness(0.85);
    transition: filter 0.35s ease;
}

.news-featured:hover img {
    filter: saturate(1.05) contrast(1.08) brightness(1);
}

.news-featured-body {
    position: relative;
    z-index: 2;
    padding: 28px;
}

.news-meta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--mw-orange);
    font-family: 'Marcellus', serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.news-featured h2 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.7rem;
    margin: 12px 0;
    color: var(--mw-gold);
    text-shadow: 0 2px 4px #000;
}

.news-body {
    white-space: pre-line;
    color: var(--mw-text);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ==========================================================================
   News Card Grid
   ========================================================================== */

.news-grid-card {
    height: 100%;
}

.news-grid-card .news-card {
    height: 100%;
}

.news-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(40, 29, 19, 0.4), rgba(22, 18, 14, 0.95));
    border: 1px solid var(--mw-border);
    border-radius: 8px;
    box-shadow: var(--mw-shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: var(--mw-orange);
    box-shadow: var(--mw-shadow-lg), var(--mw-glow);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--mw-border);
    filter: saturate(0.85) contrast(1.05) brightness(0.8);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.news-card:hover img {
    transform: scale(1.03);
    filter: saturate(1.05) contrast(1.08) brightness(1);
}

.news-card-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: 130px;
    padding: 16px 18px;
}

.news-date {
    color: var(--mw-orange);
    font-family: 'Marcellus', serif;
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.news-title {
    color: var(--mw-gold);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px #000;
    margin-bottom: 8px;
}

.news-excerpt {
    flex: 1;
    color: var(--mw-muted);
    font-size: 0.84rem;
    line-height: 1.55;
    margin-bottom: 14px;
    white-space: pre-line;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Whole card is the link to the full post */
.news-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.news-card-link:hover {
    color: inherit;
}

.news-card-link:focus-visible {
    outline: 2px solid var(--mw-orange);
    outline-offset: 3px;
}

.news-featured h2 a {
    color: inherit;
    text-decoration: none;
}

.news-featured h2 a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Full post view (news.php?id=N)
   ========================================================================== */

.news-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    color: var(--mw-gold);
    font-weight: 600;
    text-decoration: none;
}

.news-back:hover {
    color: var(--mw-orange);
}

/* Show the whole banner instead of the cropped strip used on the list */
.news-full img {
    height: auto;
    max-height: 560px;
    object-fit: contain;
}

/* ==========================================================================
   Empty state
   ========================================================================== */

.empty-news {
    padding: 60px 24px;
    text-align: center;
    border: 1px solid var(--mw-border);
    border-radius: 8px;
    background: var(--mw-panel);
    color: var(--mw-muted);
}
