/*
Theme Name: NIUMIC Editorial Theme Final - Perfect Vibe Edition
Description: Brutalistyczny portal informacyjny z winietą, pulsującym REC, customowym suwakiem, podświetleniem tekstu i ikonami PLAY na hoverze.
Version: 9.4
Author: si:hope
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

* {
    box-sizing: border-box;
}

body {
    background-color: #fff;
    color: #111;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    color: #111;
    text-decoration: none;
    transition: 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ULICZNY DETAL: PODŚWIETLENIE TEKSTU MYSZKĄ --- */
::selection {
    background-color: #ff0000 !important;
    color: #fff !important;
}

::-moz-selection {
    background-color: #ff0000 !important;
    color: #fff !important;
}

/* --- ULICZNY DETAL: SUROWY CZARNY SCROLLBAR --- */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #fff;
    border-left: 2px solid #111;
}

::-webkit-scrollbar-thumb {
    background: #111;
    border: 2px solid #fff;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff0000;
}

html {
    scrollbar-width: auto;
    scrollbar-color: #111 #fff;
}

/* ========================================== */
/* NAGŁÓWEK (MASTHEAD)                        */
/* ========================================== */
.header-main {
    display: block;
    padding: 0;
}

.masthead-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 40px 0 30px 0;
}

/* STYL KROPKI REC I ANIMACJA */
.masthead-date {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
}

.rec-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ff0000;
    border-radius: 50%;
    margin-right: 10px;
    animation: recPulse 1.6s infinite ease-in-out;
}

@keyframes recPulse {
    0% {
        opacity: 0.2;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
        box-shadow: 0 0 10px #ff0000;
    }

    100% {
        opacity: 0.2;
        transform: scale(0.9);
    }
}

.site-logo {
    text-align: center;
}

.site-logo img {
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.site-logo-text {
    font-size: 38px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.top-socials {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.top-socials a {
    font-size: 18px;
    color: #111;
}

.top-socials a:hover {
    color: #ff0000;
}

.masthead-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-top: 3px solid #111;
    border-bottom: 3px solid #111;
    padding: 10px 0;
    margin-bottom: 40px;
}

#site-navigation {
    grid-column: 2;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav ul li a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 15px;
}

nav ul li a:hover {
    color: #ff0000;
}

.search-form {
    grid-column: 3;
    justify-self: end;
    display: flex;
    border: 2px solid #111;
}

.search-field {
    border: none;
    padding: 10px 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    outline: none;
    width: 160px;
}

.search-submit {
    background: #111;
    color: #fff;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: #ff0000;
}

.ad-container {
    text-align: center;
    margin: 20px 0;
    min-height: 90px;
}

/* ========================================== */
/* GŁÓWNY FEED WPISÓW (4 KOLUMNY)             */
/* ========================================== */
.post-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border: none !important;
}

.grid-item {
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.thumb-wrapper {
    width: 100% !important;
    height: 420px !important;
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
    background: transparent !important;
}

.thumb-wrapper::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 45%, transparent 80%) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.thumb-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    filter: grayscale(100%) !important;
    transition: transform 0.6s ease, filter 0.6s ease !important;
    background: transparent !important;
}

.grid-item:hover .thumb-wrapper img {
    transform: scale(1.04) !important;
    filter: grayscale(0%) !important;
}

/* STYL WYSKAKUJĄCEJ IKONY PLAY */
.media-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    z-index: 3;
    color: #fff;
    font-size: 36px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
}

.grid-item:hover .media-indicator {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1);
}

.post-content-box {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 20px !important;
    z-index: 2 !important;
    pointer-events: none !important;
    background: transparent !important;
    border: none !important;
}

.post-content-box a {
    pointer-events: auto !important;
    color: #fff !important;
}

.post-meta-grid {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    margin-bottom: 8px !important;
    flex-wrap: wrap !important;
    background: transparent !important;
}

.post-category {
    font-size: 10px !important;
    font-weight: 900 !important;
    color: #ff0000 !important;
    text-transform: uppercase !important;
}

.post-category a {
    color: #ff0000 !important;
}

.post-date {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #ccc !important;
}

.post-grid-4col .grid-item h2 {
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    color: #fff !important;
    text-transform: uppercase !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9) !important;
    background: transparent !important;
}

/* ========================================== */
/* NOWY UKŁAD HERO (3 DUŻE OBOK SIEBIE)       */
/* ========================================== */
.hero-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.hero-grid-3 .grid-item {
    height: 960px;
}

.hero-grid-3 .thumb-wrapper {
    height: 100% !important;
}

.hero-grid-3 .grid-item h2 {
    margin: 0 !important;
    font-size: 32px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    color: #fff !important;
    text-transform: uppercase !important;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9) !important;
    background: transparent !important;
}

.post-content-box,
.post-content-box h2,
.post-content-box .post-meta-grid,
.post-content-box span,
.post-content-box a {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

/* ========================================== */
/* ARTYKUŁ (SINGLE POST)                      */
/* ========================================== */
.single-post-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.single-title {
    font-size: 50px;
    font-weight: 900;
    text-align: center;
    line-height: 1.1;
    margin-bottom: 15px;
}

.single-thumb {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.single-thumb img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.single-meta {
    text-align: center;
    margin-bottom: 40px;
    font-size: 14px;
}

.single-meta .post-date {
    color: #888;
    margin-left: 10px;
    font-size: 13px;
}

.entry-content {
    font-size: 19px;
    line-height: 1.8;
}

.entry-content a {
    color: #ff0000;
    text-decoration: underline;
    font-weight: 700;
}

.entry-content a:hover {
    color: #111;
}

.entry-content iframe,
.entry-content .wp-block-embed-youtube {
    display: block;
    margin: 40px auto;
    width: 100% !important;
    max-width: 850px;
    aspect-ratio: 16/9;
    height: auto;
    border: none;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.social-share span {
    font-weight: 900;
    text-transform: uppercase;
}

.social-share a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: #111;
    color: #fff;
    border-radius: 5px;
    font-size: 20px;
}

.social-share a:hover {
    background: #ff0000;
    transform: translateY(-3px);
}

.simple-author-box {
    margin: 40px 0;
    padding: 15px 0;
    border-top: 2px solid #eee;
    border-bottom: 2px solid #eee;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 14px;
    text-align: right;
}

.simple-author-box span {
    color: #ff0000;
    font-size: 16px;
}

.pagination {
    text-align: center;
    padding: 50px 0;
    font-weight: 900;
    font-size: 24px;
}

/* ========================================== */
/* MOBILE RESPONSIVE                          */
/* ========================================== */
@media (max-width: 1000px) {
    .post-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .masthead-top {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 30px 0 15px 0;
    }

    .masthead-date {
        justify-content: center;
    }

    .top-socials {
        justify-content: center;
    }

    .masthead-bottom {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
        margin-bottom: 25px;
    }

    .masthead-empty-left {
        display: none;
    }

    .search-form {
        width: 100%;
        justify-content: center;
    }

    .hero-grid-3 {
        grid-template-columns: 1fr;
    }

    .hero-grid-3 .grid-item {
        height: 450px !important;
    }

    .post-grid-4col {
        grid-template-columns: 1fr;
    }

    .post-grid-4col .thumb-wrapper {
        height: 400px !important;
    }

    .admin-bar #reading-progress {
        top: 46px;
    }

    #menu-toggle {
        display: block !important;
        width: 100%;
        background: #111;
        color: #fff;
        padding: 15px;
        border: none;
        font-size: 20px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 900;
        cursor: pointer;
        border-radius: 4px;
    }

    #site-navigation {
        display: none;
        width: 100%;
        margin-top: 15px;
        background: #fff;
        position: relative;
        z-index: 999;
    }

    #site-navigation.toggled {
        display: block;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        border-bottom: 1px solid #eee;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
}