/* ═══════════════════════════════════════════════
   News Popup — shared across all pages
   Panel (desktop ≥681px) / Sheet (mobile ≤680px)
   ═══════════════════════════════════════════════ */

.news-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s cubic-bezier(.4,0,.2,1), visibility .3s, z-index 0s .3s;
}

.news-overlay.news-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 99998;
    transition: opacity .3s cubic-bezier(.4,0,.2,1), visibility .3s, z-index 0s 0s;
}

/* ── Desktop Panel ── */
.news-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 520px;
    height: 100vh;
    background: #222226;
    border-left: 1px solid rgba(255,255,255,0.08);
    z-index: -1;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1), z-index 0s .35s;
    overflow: hidden;
    pointer-events: none;
}

.news-panel.news-active {
    transform: translateX(0);
    pointer-events: auto;
    z-index: 99999;
    transition: transform .35s cubic-bezier(.4,0,.2,1), z-index 0s 0s;
}

.news-panel-inner {
    height: 100%;
    overflow-y: auto;
    padding: 24px 36px 40px;
    -webkit-overflow-scrolling: touch;
}

.news-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0 14px;
    flex-shrink: 0;
}

.news-panel-close,
.news-sheet-close {
    background: none;
    border: none;
    color: rgba(240,240,240,0.6);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color .25s, background .25s;
}

.news-panel-close:hover,
.news-sheet-close:hover {
    color: #f0f0f0;
    background: rgba(255,255,255,0.05);
}

/* ── Detail content (shared panel + sheet) ── */
.news-popup-image {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    max-height: 300px;
    margin-bottom: 24px;
}

.news-popup-image[src=""],
.news-popup-image:not([src]) {
    display: none;
}

.news-popup-date {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(240,240,240,0.5);
    margin-bottom: 8px;
}

.news-popup-title {
    font-family: 'Cormorant', serif;
    font-size: 26px;
    font-weight: 400;
    color: #f0f0f0;
    margin: 0 0 20px;
    line-height: 1.25;
}

.news-popup-body {
    color: rgba(240,240,240,0.8);
    font-size: 14px;
    line-height: 1.75;
}

.news-popup-body p {
    margin: 0 0 14px;
}

.news-popup-body strong {
    color: #f0f0f0;
    font-weight: 500;
}

.news-popup-cats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.news-popup-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    color: #c8a97e;
    background: rgba(200,169,126,0.10);
    padding: 3px 10px;
    border-radius: 100px;
}

/* ── Mobile Sheet ── */
.news-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 88vh;
    background: #222226;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    z-index: 99999;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
    display: none;
    pointer-events: none;
}

.news-sheet.news-active {
    transform: translateY(0);
    pointer-events: auto;
}

.news-sheet-inner {
    max-height: 88vh;
    overflow-y: auto;
    padding: 16px 20px 40px;
    -webkit-overflow-scrolling: touch;
}

.news-sheet-handle {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    margin: 0 auto 20px;
}

.news-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 10px;
}

/* ── Responsive ── */
@media (max-width: 680px) {
    .news-panel { display: none !important; }
    .news-sheet { display: block; }
}

@media (min-width: 681px) {
    .news-sheet { display: none !important; }
}
