/*
Theme Name: NIUMIC Editorial 2026 Pro Monochrome
Description: Siatka Bento, personalizacja w panelu Dostosuj (kolory, monochrom/kolor, odstępy), czyste czerwone kategorie.
Version: 14.7
Author: NIUMIC Dev
*/

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

* { box-sizing: border-box; }

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

a { color: #111; text-decoration: none; transition: 0.3s ease; }
.container { max-width: 1300px; margin: 0 auto; padding: 0 15px; }

::selection { background-color: #111 !important; color: #fff !important; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fff; }
::-webkit-scrollbar-thumb { background: #111; }

/* HEADER */
.header-niumic { padding: 25px 0 15px 0; border-bottom: 1px solid #eaeaea; margin-bottom: 25px; }
.top-row-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; position: relative; }

.header-left-col { display: flex; align-items: center; justify-content: flex-start; }
.header-right-col { display: flex; align-items: center; justify-content: flex-end; }

#menu-toggle-btn { background: #111; color: #fff; border: none; padding: 8px 14px; font-weight: 900; font-size: 13px; cursor: pointer; display: none; border-radius: 3px; }

.site-logo { text-align: center; }
.site-logo img { max-width: 170px; height: auto; display: inline-block; }
.site-logo-text { font-size: 32px; font-weight: 900; letter-spacing: -1px; text-transform: uppercase; color: #111; display: inline-block; }

.search-form-clean { display: flex; align-items: center; border-bottom: 1px solid #111; }
.search-form-clean input { border: none; background: none; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 11px; outline: none; width: 100px; color: #111; }
.search-form-clean button { background: none; border: none; cursor: pointer; font-size: 13px; color: #111; }

.nav-center { margin-top: 20px; text-align: center; }
.nav-center ul { list-style: none; padding: 0; margin: 0; display: inline-flex; gap: 30px; }
.nav-center ul li a { font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: #333; position: relative; padding-bottom: 4px; }
.nav-center ul.menu li.current-menu-item a::after,
.nav-center ul li a:hover::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: #111; }

/* BENTO GRID */
.niumic-bento-master {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 30px;
}

.bento-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
    border: 1px solid #eee;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.bento-item:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    z-index: 5;
}

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

.bento-card-1 { grid-column: 1 / 3; grid-row: 1 / 3; height: 500px; }
.bento-card-2 { grid-column: 3 / 4; grid-row: 1 / 2; height: 243px; }
.bento-card-3 { grid-column: 4 / 5; grid-row: 1 / 2; height: 243px; }
.bento-card-4 { grid-column: 3 / 5; grid-row: 2 / 3; height: 243px; }

.bento-social-strip {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    background: #fff;
    border: 1px solid #eee;
    padding: 18px 20px;
    border-radius: 4px;
}
.bento-social-strip .line { flex-grow: 1; height: 1px; background: #e0e0e0; }
.join-title { font-size: 11px; font-weight: 900; letter-spacing: 1.5px; color: #111; }
.social-icons-inline { display: flex; gap: 20px; }
.social-icons-inline a { font-size: 20px; color: #111; transition: color 0.2s; }
.social-icons-inline a:hover { color: #555; }

.bento-card-5 { grid-column: 1 / 2; grid-row: 4 / 5; height: 243px; }
.bento-card-6 { grid-column: 2 / 3; grid-row: 4 / 5; height: 243px; }
.bento-card-7 { grid-column: 3 / 5; grid-row: 4 / 5; height: 243px; }
.bento-card-8 { grid-column: 1 / -1; grid-row: 5 / 6; height: 320px; }

.thumb-wrapper {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    overflow: hidden;
}

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

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

.post-overlay-box {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    pointer-events: none;
}

.post-overlay-box a { pointer-events: auto; }

.post-meta-line {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 900;
}

/* CZYSTE CZERWONE KATEGORIE BEZ CIENI */
html body .niumic-bento-master .bento-item .post-overlay-box .post-meta-line span.post-category,
html body .niumic-bento-master .bento-item .post-overlay-box .post-meta-line span.post-category a,
html body .post-overlay-box .post-meta-line .post-category a,
html body .post-category a,
html body .post-category,
html body .single-meta .post-category,
html body .single-meta .post-category a {
    color: #ff0000 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 1 !important;
    text-shadow: none !important;
}

.post-date { color: #ccc; font-weight: 700; }

.post-title {
    color: #fff;
    margin: 0;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.25;
    font-size: 16px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
}

.bento-card-1 .post-title { font-size: 24px; }
.bento-card-8 .post-title { font-size: 26px; }

.media-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 3;
    color: #fff;
    font-size: 32px;
    opacity: 0;
    transition: 0.3s ease;
    text-shadow: 0 0 12px rgba(0,0,0,0.9);
}
.bento-item:hover .media-indicator {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1);
}

/* SINGLE POST & WYŚRODKOWANY TEKST */
.single-post-content { max-width: 960px; margin: 40px auto; padding: 0 20px; text-align: center; }
.single-meta { justify-content: center; display: flex; gap: 10px; align-items: center; color: #888; font-size: 13px; font-weight: 700; }
.single-title { font-size: 42px; font-weight: 900; line-height: 1.1; margin-bottom: 20px; text-transform: uppercase; }

.single-thumb {
    text-align: center;
    margin: 35px 0;
}
.single-thumb img {
    width: 100%;
    max-height: 580px;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    object-fit: cover;
    margin: 0 auto;
}

.entry-content { 
    font-size: 18px; 
    line-height: 1.8; 
    color: #222; 
    text-align: center !important; 
}
.entry-content p, 
.entry-content div, 
.entry-content h2, 
.entry-content h3, 
.entry-content h4, 
.entry-content li {
    text-align: center !important;
}

.entry-content iframe,
.entry-content embed,
.entry-content object,
.entry-content video,
.entry-content .wp-block-embed iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    margin: 30px auto;
    display: block;
}

.entry-content img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    border-radius: 4px;
    margin: 25px auto;
    display: block;
}

/* SEKCJA 3 OSTATNICH POSTÓW */
.single-recent-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #111;
    text-align: left;
}

.single-recent-title {
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

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

@media (max-width: 768px) {
    .single-recent-grid {
        grid-template-columns: 1fr;
    }
}

/* MINIMALISTYCZNA STOPKA */
.footer-minimal { 
    background-color: #fcfcfc; 
    border-top: 1px solid #eaeaea; 
    color: #111; 
    padding: 40px 0; 
    margin-top: 60px; 
    text-align: center;
}
.footer-container { max-width: 1300px; margin: 0 auto; padding: 0 15px; }
.footer-logo { margin-bottom: 15px; }
.footer-logo img { max-width: 140px; display: block; margin: 0 auto; }
.footer-logo .site-logo-text { font-size: 24px; font-weight: 900; }
.footer-copy { font-size: 11px; color: #666; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* PAGINACJA */
.pagination { text-align: center; padding: 40px 0; font-weight: 900; font-size: 18px; }
.pagination span, .pagination a { display: inline-block; padding: 8px 14px; margin: 0 3px; border: 1px solid #111; border-radius: 3px; }
.pagination span.current { background: #111; color: #fff; }

/* RESPONSYWNOŚĆ */
@media (max-width: 900px) {
    .top-row-grid { grid-template-columns: auto 1fr auto; }
    .site-logo img { max-width: 130px; }
    .site-logo-text { font-size: 24px; }
}

@media (max-width: 768px) {
    .header-niumic { padding: 15px 0; margin-bottom: 15px; }
    
    .top-row-grid {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    #menu-toggle-btn { display: inline-block; }
    .nav-center { display: none; width: 100%; margin-top: 15px; background: #fff; border-top: 1px solid #eee; padding-top: 10px; }
    .nav-center.toggled { display: block; }
    .nav-center ul { flex-direction: column; width: 100%; gap: 10px; }
    .nav-center ul li { width: 100%; text-align: center; padding: 6px 0; border-bottom: 1px solid #f5f5f5; }

    .niumic-bento-master {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .bento-item {
        grid-column: 1 !important;
        grid-row: auto !important;
        height: 280px !important;
    }
    
    .bento-social-strip {
        grid-column: 1 !important;
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }
    
    .bento-social-strip .line { width: 40px; height: 1px; }

    .post-title { font-size: 16px !important; }
    
    .single-post-content { padding: 0 15px; margin: 20px auto; }
    .single-title { font-size: 26px; }
    .entry-content { font-size: 16px; }
}
