@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #080b11;
    --bg-surface: #0f1523;
    --bg-surface-elevated: #161e31;
    --bg-glass: rgba(18, 25, 41, 0.75);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 242, 254, 0.4);
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-cyan: #00f2fe;
    --accent-blue: #4facfe;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-gold: #f59e0b;
    
    --grad-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #a855f7 100%);
    --grad-badge: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --grad-card: linear-gradient(180deg, rgba(22, 30, 49, 0.8) 0%, rgba(15, 21, 35, 0.95) 100%);
    
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.25);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(79, 172, 254, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(168, 85, 247, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .nav-left, [dir="rtl"] .back-link {
    margin-right: 0;
    margin-left: auto;
}

[dir="rtl"] .stat-pill i, [dir="rtl"] .btn i {
    margin-right: 0;
    margin-left: 8px;
}

/* HEADER & NAVIGATION */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(8, 11, 17, 0.85);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(0, 242, 254, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* LANGUAGE SELECTOR */
.lang-selector-wrapper {
    position: relative;
}

.lang-btn {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.lang-btn:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.1);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 8px;
    width: 220px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 1000;
    backdrop-filter: blur(20px);
}

.lang-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}

.lang-option:hover, .lang-option.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent-cyan);
}

/* HERO SECTION */
.hero-section {
    max-width: 1140px;
    margin: 40px auto 30px;
    padding: 0 24px;
    text-align: center;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 28px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.stat-chip {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-chip strong {
    color: var(--accent-cyan);
}

/* ARTICLE GRID */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 24px 80px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

/* ARTICLE CARD */
.article-card {
    background: var(--grad-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.article-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}

/* CARD IMAGE / GALLERY PREVIEW (4 PHOTOS) */
.card-media-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #000;
}

.card-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover .card-main-img {
    transform: scale(1.06);
}

.photo-count-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.popularity-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--grad-badge);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* 4-PHOTO THUMB STRIP ON CARD */
.card-thumbs-strip {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
}

.card-thumb-dot {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    transition: transform 0.2s ease;
}

.card-thumb-dot:hover {
    transform: scale(1.15);
    border-color: var(--accent-cyan);
}

.card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--accent-cyan);
    margin-bottom: 8px;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card-excerpt {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.read-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-cyan);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.read-btn:hover {
    color: #fff;
    transform: translateX(4px);
}

[dir="rtl"] .read-btn:hover {
    transform: translateX(-4px);
}

/* ============================================================ */
/* ARTICLE DETAIL PAGE                                          */
/* ============================================================ */
.article-page-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 24px 80px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 24px;
    padding: 8px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.back-link:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.article-header {
    margin-bottom: 32px;
}

.article-topic-tag {
    display: inline-block;
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.article-headline {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 0.86rem;
    color: var(--text-muted);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.article-meta-bar span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 4-IMAGE HERO & GALLERY SECTION */
.article-gallery-section {
    margin: 36px 0 44px;
}

.gallery-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.gallery-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    aspect-ratio: 4 / 3;
    background: #000;
}

.gallery-item.hero-item {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    font-size: 1.5rem;
    color: #fff;
}

.gallery-item:hover .zoom-overlay {
    opacity: 1;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
    font-size: 0.78rem;
    font-weight: 600;
    color: #e2e8f0;
}

/* ARTICLE CONTENT / STORY */
.article-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    font-size: 1.12rem;
    line-height: 1.85;
    color: #e2e8f0;
    margin-bottom: 40px;
}

.article-content p {
    margin-bottom: 24px;
}

.article-content p:last-child {
    margin-bottom: 0;
}

/* LIGHTBOX MODAL */
.lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 12, 0.95);
    backdrop-filter: blur(16px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.lightbox-modal.active {
    display: flex;
    animation: fadeIn 0.25s ease-out;
}

.lightbox-content-box {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 82vh;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 8px;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent-cyan);
    transform: scale(1.15);
}

/* FOOTER */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    background: rgba(8, 11, 17, 0.95);
    padding: 40px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--accent-cyan);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .article-headline { font-size: 1.8rem; }
    .articles-grid { grid-template-columns: 1fr; }
    .gallery-grid-4 { grid-template-columns: 1fr; }
    .gallery-item.hero-item { aspect-ratio: 4 / 3; }
    .article-content { padding: 24px; font-size: 1.02rem; }
}

/* ============================================================ */
/* FACEMORPH.ONLINE INTEGRATION & RESPONSIVE PROMOTIONS         */
/* ============================================================ */

/* 1. DUŻY BANER GŁÓWNY (STYL FASHIONUNIQUE.ORG) */
.facemorph-banner-wrap {
    max-width: 920px;
    margin: 28px auto 36px;
    padding: 0 16px;
    text-align: center;
}

.facemorph-banner-link {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 30px rgba(168, 85, 247, 0.35);
    border: 2px solid rgba(168, 85, 247, 0.5);
    transition: var(--transition);
    background: #000;
}

.facemorph-banner-link:hover {
    transform: translateY(-4px) scale(1.012);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 242, 254, 0.6);
    border-color: var(--accent-cyan);
}

.facemorph-banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: calc(var(--radius-lg) - 2px);
}

/* 2. MARGINESY BOCZNE NA DUŻE EKRANY / MONITORY (POWIĘKSZANIE NA ŚRODEK EKRANU) */
@media (min-width: 1200px) {
    /* Przyciemnienie tła pod powiększonym obrazem dla kinowego efektu skupienia */
    body:has(.side-promo-card:hover)::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(4, 7, 13, 0.52);
        backdrop-filter: blur(2.5px);
        z-index: 110;
        pointer-events: none;
        transition: opacity 0.35s ease;
    }

    .desktop-side-margin {
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        width: clamp(210px, 14.5vw, 290px);
        display: flex;
        flex-direction: column;
        gap: 16px;
        z-index: 120;
        pointer-events: auto;
    }

    .desktop-side-margin:hover {
        z-index: 999999 !important;
    }

    .side-margin-left {
        left: clamp(12px, 1.4vw, 26px);
    }

    .side-margin-right {
        right: clamp(12px, 1.4vw, 26px);
    }

    .side-promo-card {
        display: block;
        background: rgba(14, 20, 32, 0.94);
        border: 2px solid rgba(0, 242, 254, 0.45);
        border-radius: var(--radius-lg);
        overflow: hidden;
        text-decoration: none;
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 242, 254, 0.15);
        transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.36s ease, border-color 0.25s ease;
        position: relative;
        will-change: transform;
        cursor: pointer;
    }

    /* KIERUNEK POWIĘKSZANIA: ZAWSZE SYMETRYCZNIE W GÓRĘ I W DÓŁ ORAZ NA ŚRODEK EKRANU */
    .side-margin-left .side-promo-card {
        transform-origin: left center !important;
    }

    .side-margin-right .side-promo-card {
        transform-origin: right center !important;
    }

    /* W ARTYKULE: KIERUNKI POWIĘKSZENIA TAK, ABY OBRAZ ROZSZERZAŁ SIĘ W GÓRĘ I W DÓŁ BEZ OBCINANIA */
    .article-page-body .side-margin-left .side-promo-card:first-child {
        transform-origin: left 25% !important;
    }
    .article-page-body .side-margin-left .side-promo-card:nth-child(2) {
        transform-origin: left 75% !important;
    }
    .article-page-body .side-margin-right .side-promo-card:first-child {
        transform-origin: right 25% !important;
    }
    .article-page-body .side-margin-right .side-promo-card:nth-child(2) {
        transform-origin: right 75% !important;
    }

    /* NAJECHANIE MYSZKĄ: POWIĘKSZENIE NA ŚRODEK EKRANU JAKO DUŻY, KRYSTALICZNY OBRAZ */
    .side-promo-card:hover {
        transform: scale(2.2);
        z-index: 999999 !important;
        border-color: #00f2fe;
        box-shadow: 0 35px 120px rgba(0, 0, 0, 0.98), 0 0 65px rgba(0, 242, 254, 0.85), 0 0 120px rgba(168, 85, 247, 0.55);
    }

    /* W artykułach są 2 banery na stronę: skala 1.95 z pełną wysokością w pionie */
    .article-page-body .side-promo-card:hover {
        transform: scale(1.95);
    }

    .side-promo-img {
        width: 100%;
        height: auto;
        max-height: min(260px, 26vh);
        object-fit: contain;
        background: #000;
        display: block;
        transition: filter 0.32s ease, max-height 0.32s ease;
        pointer-events: none; /* Kliknięcie zawsze bezpośrednio w link <a> */
    }

    /* W podstronie artykułu 2 banery na stronę */
    .article-page-body .side-promo-img {
        max-height: min(200px, 21vh);
    }

    .side-promo-card:hover .side-promo-img {
        filter: brightness(1.05) contrast(1.03);
        max-height: min(460px, 52vh); /* Rozwija pełną wysokość w górę i w dół bez obcinania */
    }

    .article-page-body .side-promo-card:hover .side-promo-img {
        max-height: min(400px, 45vh);
    }

    .side-promo-badge {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 7px 8px;
        text-align: center;
        font-size: 0.74rem;
        font-weight: 800;
        background: rgba(8, 11, 17, 0.95);
        color: var(--accent-cyan);
        letter-spacing: 0.04em;
        border-top: 1px solid var(--border-subtle);
        transition: background 0.3s ease, color 0.3s ease;
        pointer-events: none;
    }

    .side-promo-card:hover .side-promo-badge {
        background: var(--grad-primary);
        color: #fff;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    }

    /* Ukryj elementy mobilne na monitorach */
    .mobile-promo-top-container {
        display: none !important;
    }

    .article-end-promo-mobile-only {
        display: none !important;
    }
}

/* 3. MNIEJSZE EKRANY: TELEFONY, TABLETY (< 1200px) */
@media (max-width: 1199px) {
    .desktop-side-margin {
        display: none !important;
    }

    /* Na telefonach: 1.png i 3.png pierwsze na górze strony obok siebie */
    .mobile-promo-top-container {
        max-width: 600px;
        margin: 12px auto 20px;
        padding: 0 16px;
        display: block;
    }

    .mobile-promo-top-grid {
        display: flex;
        gap: 12px;
        justify-content: center;
    }

    .mobile-promo-card {
        flex: 1;
        display: block;
        background: var(--bg-surface-elevated);
        border: 1px solid rgba(0, 242, 254, 0.35);
        border-radius: var(--radius-md);
        overflow: hidden;
        text-decoration: none;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
        transition: var(--transition);
        position: relative;
    }

    .mobile-promo-card:hover {
        transform: translateY(-2px);
        border-color: var(--accent-cyan);
        box-shadow: 0 0 16px rgba(0, 242, 254, 0.45);
    }

    .mobile-promo-img {
        width: 100%;
        height: 135px;
        object-fit: cover;
        display: block;
    }

    .mobile-promo-pill {
        display: block;
        padding: 5px 6px;
        text-align: center;
        font-size: 0.72rem;
        font-weight: 700;
        background: rgba(8, 11, 17, 0.92);
        color: var(--accent-cyan);
        border-top: 1px solid var(--border-subtle);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .article-end-promo-mobile-only {
        display: block;
    }
}

/* 4. GUZIKI 2 I 4 NA KONIEC ARTYKUŁU */
.article-end-promo-section {
    background: var(--grad-card);
    border: 1px solid rgba(0, 242, 254, 0.35);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    margin: 40px 0 20px;
    text-align: center;
    box-shadow: var(--shadow-soft), 0 0 25px rgba(0, 242, 254, 0.15);
}

.promo-end-header {
    margin-bottom: 20px;
}

.promo-badge-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 3px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.promo-end-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.promo-end-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.article-end-promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 520px) {
    .article-end-promo-grid {
        grid-template-columns: 1fr;
    }
}

.promo-end-card {
    display: block;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.promo-end-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 242, 254, 0.35);
}

.promo-end-img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.promo-end-card:hover .promo-end-img {
    transform: scale(1.05);
}

.promo-end-btn {
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    background: var(--grad-primary);
    text-align: center;
    letter-spacing: 0.02em;
}

/* ============================================================ */
/* 5. POLECANE 3 ARTYKUŁY / BLOGI POD TREŚCIĄ ARTYKUŁU          */
/* ============================================================ */
.related-articles-section {
    margin: 48px 0 32px;
    padding: 34px 26px;
    background: linear-gradient(180deg, rgba(22, 30, 49, 0.8) 0%, rgba(15, 21, 35, 0.98) 100%);
    border: 1px solid rgba(0, 242, 254, 0.35);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 242, 254, 0.12);
}

.related-header {
    text-align: center;
    margin-bottom: 26px;
}

.related-badge-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.35);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.related-main-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.related-sub-title {
    font-size: 0.92rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 860px) {
    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.related-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.related-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-cyan);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 242, 254, 0.3);
}

.related-img-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #000;
}

.related-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.related-card:hover .related-img {
    transform: scale(1.06);
}

.related-topic-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(8, 11, 17, 0.88);
    backdrop-filter: blur(8px);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.3);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-full);
}

[dir="rtl"] .related-topic-pill {
    left: auto;
    right: 10px;
}

.related-body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.related-card:hover .related-title {
    color: var(--accent-cyan);
}

.related-snippet {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.82rem;
}

.related-read-more {
    font-weight: 700;
    color: var(--accent-cyan);
    transition: transform 0.2s;
}

.related-card:hover .related-read-more {
    transform: translateX(4px);
}

[dir="rtl"] .related-card:hover .related-read-more {
    transform: translateX(-4px);
}

.related-meta {
    color: var(--text-muted);
}

/* ==============================================================================
   PORTAL FILTER BAR & POPULARNE SORTING
   ============================================================================== */
.portal-filter-bar {
    max-width: 1140px;
    margin: 0 auto 36px auto;
    padding: 16px 22px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
}

.filter-tabs-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-pill-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    font-family: inherit;
}

.filter-pill-btn:hover {
    color: #fff;
    background: rgba(0, 242, 254, 0.12);
    border-color: rgba(0, 242, 254, 0.4);
    transform: translateY(-2px);
}

.filter-pill-btn.active {
    color: #080b11;
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    border-color: #00f2fe;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
    font-weight: 700;
}

.filter-pill-btn.active#tabBtnPopular {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    border-color: #f59e0b;
    color: #fff;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.45);
}

.filter-pill-count {
    font-size: 0.8rem;
    opacity: 0.85;
}

.filter-pill-badge {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 800;
    letter-spacing: 0.05em;
}

.filter-pill-btn.active#tabBtnPopular .filter-pill-badge {
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.filter-status-desc {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    display: inline-block;
}

/* RANK BADGES DLA KART PRZY POPULARNYCH */
.card-rank-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: rankPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rankPop {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.card-rank-badge.rank-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #111;
    border: 1px solid #ffe066;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.65);
}

.card-rank-badge.rank-silver {
    background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 100%);
    color: #0f172a;
    border: 1px solid #fff;
    box-shadow: 0 0 14px rgba(226, 232, 240, 0.55);
}

.card-rank-badge.rank-bronze {
    background: linear-gradient(135deg, #e69a57 0%, #a0522d 100%);
    color: #fff;
    border: 1px solid #fbd38d;
    box-shadow: 0 0 14px rgba(205, 127, 50, 0.55);
}

.card-rank-badge.rank-hot {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #fff;
    border: 1px solid #f87171;
}

[dir="rtl"] .card-rank-badge {
    left: auto;
    right: 14px;
}

/* Banner wewnątrz siatki artykułów */
.facemorph-banner-wrap {
    grid-column: 1 / -1;
    width: 100%;
}



