/* ══════════════════════════════════════════
   NEWS.CSS – PlayPoint | Aktualności
══════════════════════════════════════════ */
:root {
    --magenta:       #e040fb;
    --magenta-light: #f3a8ff;
    --violet:        #7c3aed;
    --violet-light:  #a78bfa;
    --glass-bg:      rgba(255,255,255,0.04);
    --glass-border:  rgba(255,255,255,0.08);
    --font-display:  'Oxanium', sans-serif;
    --font-body:     'Inter', sans-serif;
    --font-ui:       'Rajdhani', sans-serif;
}

/* active nav link */
.active-link {
    color: var(--magenta) !important;
}

/* ══════════ HERO ══════════ */
.news-hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0a0a0f;
    padding: 140px 0 60px;
}

.news-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(224,64,251,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(224,64,251,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: newsGridDrift 20s linear infinite;
}
@keyframes newsGridDrift {
    to { background-position: 60px 60px, 60px 60px; }
}

.news-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.25;
    pointer-events: none;
}
.news-orb-1 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, var(--magenta), transparent 70%);
    top: -80px; right: 0;
}
.news-orb-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--violet), transparent 70%);
    bottom: -60px; left: 15%;
}

.news-hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.news-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--magenta);
    margin-bottom: 28px;
}
.news-hero-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--magenta);
    box-shadow: 0 0 8px var(--magenta);
    animation: newsDotPulse 2s ease-in-out infinite;
}
@keyframes newsDotPulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:0.4; transform:scale(0.75); }
}

.news-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 32px;
    line-height: 1.0;
}
.news-accent {
    background: linear-gradient(135deg, var(--magenta), var(--violet-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.news-hero-sub {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    max-width: 600px;
    line-height: 1.8;
    margin: 0 auto 40px;
}

/* ══════════ FILTRY ══════════ */
.news-filters-bar {
    position: sticky;
    top: 68px;
    z-index: 90;
    background: rgba(10,10,15,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 60px 0 200px;
}
.news-filters-inner {
    display: flex;
    gap: 4px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    overflow-x: auto;
    padding: 12px 0;
    scrollbar-width: none;
}
.news-filters-inner::-webkit-scrollbar { display: none; }

.news-filter {
    flex-shrink: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 2px;
    padding: 7px 18px;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.25s ease;
}
html.can-hover .news-filter:hover {
    color: rgba(255,255,255,0.75);
    border-color: rgba(255,255,255,0.12);
}
.news-filter.active {
    color: var(--magenta);
    border-color: rgba(224,64,251,0.4);
    background: rgba(224,64,251,0.08);
}

/* ══════════ MAIN ══════════ */
.news-main {
    background: #0d0d14;
    min-height: 60vh;
    padding: 60px 60px 100px 200px;
}
.news-inner { max-width: 1100px; margin: 0 auto; }

/* ── Featured ── */
.news-featured-wrap { margin-bottom: 56px; }

.news-card-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 360px;
    border: 1px solid rgba(224,64,251,0.2);
    border-radius: 4px;
    overflow: hidden;
    background: var(--glass-bg);
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
html.can-hover .news-card-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(224,64,251,0.14);
}

.ncf-img {
    position: relative;
    overflow: hidden;
}
.ncf-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(0.3) brightness(0.75);
    transition: filter 0.4s ease, transform 0.4s ease;
}
html.can-hover .news-card-featured:hover .ncf-img img {
    filter: grayscale(0) brightness(0.85);
    transform: scale(1.04);
}
.ncf-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 60%, rgba(13,13,20,0.9));
}

.ncf-body {
    padding: 40px 40px 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}
.ncf-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.news-badge {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    border: 1px solid;
}
.news-badge-featured {
    color: var(--magenta);
    border-color: rgba(224,64,251,0.4);
    background: rgba(224,64,251,0.08);
}
.news-badge-cat {
    color: var(--violet-light);
    border-color: rgba(124,58,237,0.35);
    background: rgba(124,58,237,0.08);
}

.ncf-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
}
.ncf-excerpt {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin: 0;
}
.ncf-meta {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ncf-meta i { color: var(--magenta); }

.ncf-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--magenta);
    margin-top: 4px;
    transition: gap 0.25s;
}
html.can-hover .news-card-featured:hover .ncf-cta { gap: 14px; }

/* ── Grid ── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
html.can-hover .news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(224,64,251,0.3);
    box-shadow: 0 16px 48px rgba(224,64,251,0.1);
}

.nc-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #111;
}
.nc-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(0.4) brightness(0.7);
    transition: filter 0.4s, transform 0.4s;
}
html.can-hover .news-card:hover .nc-img img {
    filter: grayscale(0) brightness(0.85);
    transform: scale(1.05);
}
.nc-img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(224,64,251,0.08), rgba(124,58,237,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(224,64,251,0.3);
}
.nc-cat-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
}

.nc-body {
    padding: 20px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.nc-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.nc-excerpt {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nc-meta {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.28);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}
.nc-meta i { color: var(--magenta); font-size: 0.6rem; }

/* ── Loader / Empty ── */
.news-loader, .news-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 0;
    color: rgba(255,255,255,0.3);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.news-empty i { font-size: 2.5rem; color: rgba(224,64,251,0.25); }

.news-spinner {
    width: 36px; height: 36px;
    border: 3px solid rgba(224,64,251,0.15);
    border-top-color: var(--magenta);
    border-radius: 50%;
    animation: newsSpin 0.8s linear infinite;
}
@keyframes newsSpin { to { transform: rotate(360deg); } }

/* ── Paginacja ── */
.news-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 56px;
}
.news-page-btn {
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 2px;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.25s;
}
html.can-hover .news-page-btn:hover, .news-page-btn.active {
    border-color: var(--magenta);
    color: var(--magenta);
    background: rgba(224,64,251,0.08);
}

/* ══════════════════════════════
   SINGLE POST OVERLAY
══════════════════════════════ */
.post-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.post-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.post-overlay-bg {
    position: absolute;
    inset: 0;
    background: rgba(5,5,10,0.75);
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.post-panel {
    position: relative;
    z-index: 1;
    width: min(760px, 90vw);
    height: 100vh;
    background: #0d0d14;
    border-left: 1px solid rgba(224,64,251,0.2);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.post-overlay.open .post-panel {
    transform: translateX(0);
}

.post-close {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    padding: 18px 24px;
    background: rgba(13,13,20,0.95);
    border-bottom: 1px solid var(--glass-border);
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    border: none;
    transition: color 0.2s;
}
html.can-hover .post-close:hover { color: var(--magenta); }

.post-panel-inner { padding: 0 0 80px; }

.post-cover {
    width: 100%;
    height: 300px;
    object-fit: cover;
    filter: brightness(0.75);
    display: block;
}
.post-cover-placeholder {
    width: 100%; height: 220px;
    background: linear-gradient(135deg, rgba(224,64,251,0.1), rgba(124,58,237,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(224,64,251,0.2);
}

.post-body { padding: 36px 40px; }

.post-badges { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

.post-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.15;
    margin: 0 0 12px;
}

.post-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--glass-border);
}
.post-meta-row i { color: var(--magenta); }

.post-content {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.85;
}
.post-content h2, .post-content h3 {
    font-family: var(--font-display);
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    margin: 32px 0 12px;
}
.post-content h2 { font-size: 1.3rem; }
.post-content h3 { font-size: 1.05rem; color: var(--magenta-light); }
.post-content p { margin: 0 0 16px; }
.post-content a { color: var(--magenta); }
.post-content img {
    max-width: 100%;
    border-radius: 4px;
    margin: 16px 0;
}
.post-content ul, .post-content ol {
    padding-left: 24px;
    margin: 0 0 16px;
}
.post-content li { margin-bottom: 6px; }
.post-content blockquote {
    border-left: 3px solid var(--magenta);
    padding-left: 20px;
    margin: 20px 0;
    color: rgba(255,255,255,0.5);
    font-style: italic;
}

/* ══════════════════════════════
   RESPONSIVE
   ══════════════════════════════ */

@media (max-width: 1200px) {
    .news-filters-bar { padding-left: 60px; }
    .news-main { padding-left: 60px; }
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-card-featured {
        grid-template-columns: 1fr;
    }
    .ncf-img { height: 260px; }
    .ncf-img-overlay {
        background: linear-gradient(to bottom, transparent 40%, rgba(13,13,20,0.95));
    }
}

@media (max-width: 768px) {
    .news-hero { padding-top: 120px; }
    
    .news-filters-bar {
        padding: 0 20px;
        top: 60px;
    }
    
    .news-main {
        padding: 40px 20px 80px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .news-featured-wrap { margin-bottom: 32px; }
    
    .ncf-body { padding: 30px 24px; }
    .ncf-title { font-size: 1.4rem; }
    
    .post-panel {
        width: 100%;
    }
    .post-body { padding: 28px 20px; }
}

@media (max-width: 480px) {
    .news-hero-title { font-size: 2.2rem; }
    .news-hero-sub { font-size: 0.95rem; }
    
    .ncf-img { height: 200px; }
    .ncf-body { padding: 24px 20px; }
    .ncf-title { font-size: 1.25rem; }
    
    .nc-img { height: 180px; }
}

