/* ===================================
   Meble z Klasą — custom.css
   Bopea4 Home-5 design replica (DARK).
   =================================== */

/* === HEADER (Bopea4 dark) === */
.mzk-header { background: var(--color-header-bg); }
.mzk-header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 2rem; }
.mzk-header-logo { flex-shrink: 0; }
.mzk-header-logo .custom-logo-link img { max-height: 32px; width: auto; filter: brightness(0) invert(1); }
.mzk-site-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: #fff; }
.mzk-site-title:hover { color: var(--color-accent); }
.mzk-header-center { flex: 1; display: flex; align-items: center; justify-content: center; }
.mzk-nav .mzk-menu { gap: 0; }
.mzk-nav .mzk-menu li a { font-family: var(--font-heading); font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.5rem 0.75rem; color: rgba(255,255,255,0.85); position: relative; }
.mzk-nav .mzk-menu li a:hover, .mzk-nav .mzk-menu li.current-menu-item a { color: #fff; background: transparent; }
.mzk-nav .mzk-menu li a::after { content: ''; position: absolute; bottom: 0; left: 0.75rem; right: 0.75rem; height: 2px; background: var(--color-accent); transform: scaleX(0); transition: transform 0.2s; }
.mzk-nav .mzk-menu li a:hover::after, .mzk-nav .mzk-menu li.current-menu-item a::after { transform: scaleX(1); }
.mzk-header-actions { flex-shrink: 0; }
.mzk-search-toggle { background: none; border: none; cursor: pointer; padding: 0.5rem; color: rgba(255,255,255,0.7); }
.mzk-search-toggle:hover { color: #fff; }

/* === SEARCH OVERLAY === */
.mzk-search-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 200; display: flex; align-items: center; justify-content: center; }
.mzk-search-overlay[hidden] { display: none; }
.mzk-search-overlay-inner { position: relative; width: 90%; max-width: 600px; }
.mzk-search-form { display: flex; }
.mzk-search-input { flex: 1; padding: 1rem 1.5rem; font-size: 1.1rem; border: none; border-radius: var(--radius) 0 0 var(--radius); outline: none; font-family: var(--font-body); }
.mzk-search-submit { padding: 1rem 1.5rem; background: var(--color-accent); border: none; border-radius: 0 var(--radius) var(--radius) 0; color: #fff; cursor: pointer; }
.mzk-search-close { position: absolute; top: -3rem; right: 0; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; }

/* === HERO (Bopea4: 3-col grid, 5 posts, dark bg) === */
.mzk-hero { background: var(--color-bg); padding: 1.5rem 0 2rem; }

.mzk-hero-grid {
    display: grid;
    grid-template-columns: 55% 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 6px;
    height: 480px;
}

.mzk-hero-big { grid-row: 1 / 3; }
.mzk-hero-card { position: relative; border-radius: var(--radius); overflow: hidden; }
.mzk-hero-link { display: block; width: 100%; height: 100%; }
.mzk-hero-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.mzk-hero-card:hover .mzk-hero-img { transform: scale(1.03); }
.mzk-hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.25rem; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%); color: #fff; }
.mzk-hero-big .mzk-hero-overlay { padding: 2rem 2.5rem; }
.mzk-hero-title { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; margin: 0.4rem 0; }
.mzk-hero-big .mzk-hero-title { font-size: 1.6rem; }
.mzk-hero-medium .mzk-hero-title { font-size: 1rem; }
.mzk-hero-small .mzk-hero-title { font-size: 0.9rem; }
.mzk-hero-excerpt { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: 0.5rem; line-height: 1.5; }
.mzk-hero-meta { font-size: 0.75rem; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 0.4rem; }
.mzk-hero-author { font-weight: 500; }
.mzk-meta-sep { opacity: 0.5; }

/* === CATEGORY BADGE — Bopea style: dark pill with colored dot === */
.mzk-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.mzk-cat-badge-light {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #333;
    background: transparent;
}

.mzk-cat-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mzk-cat-dot.mzk-cat-doradzamy { background: var(--cat-doradzamy); }
.mzk-cat-dot.mzk-cat-inspirujemy { background: var(--cat-inspirujemy); }
.mzk-cat-dot.mzk-cat-o-meblach { background: var(--cat-o-meblach); }
.mzk-cat-dot.mzk-cat-w-ogrodzie { background: var(--cat-w-ogrodzie); }
.mzk-cat-dot.mzk-cat-o-oswietleniu { background: var(--cat-o-oswietleniu); }
.mzk-cat-dot.mzk-cat-inne { background: var(--cat-inne); }
.mzk-cat-dot.mzk-cat-default { background: var(--color-accent); }

/* === LIGHT SECTIONS (Bopea4 white bg areas) === */
.mzk-section-light {
    background: #fff;
    color: #222;
    padding: 2.5rem 0;
}

.mzk-section-light + .mzk-section-light {
    border-top: 1px solid #eee;
}

/* === 3 SECTIONS SIDE-BY-SIDE (Bopea4: Personal Finance | Investment Ideas | Market News) === */
.mzk-three-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.mzk-col-header h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.mzk-col-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.mzk-col-arrow {
    font-size: 1.3rem;
    color: #222;
    margin-left: 0.25rem;
    font-weight: 300;
}

.mzk-col-arrow:hover { color: var(--color-accent); }

/* Featured card in column */
.mzk-featured-card { margin-bottom: 1rem; }
.mzk-featured-card a { display: block; color: inherit; text-decoration: none; }
.mzk-featured-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 0.75rem; aspect-ratio: 16/10; }
.mzk-featured-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.mzk-featured-card:hover .mzk-featured-thumb img { transform: scale(1.03); }
.mzk-featured-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; line-height: 1.35; color: #222; margin: 0.4rem 0; }
.mzk-featured-card:hover .mzk-featured-title { color: var(--color-accent); }
.mzk-featured-excerpt { font-size: 0.8rem; color: #666; line-height: 1.5; margin-bottom: 0.4rem; }
.mzk-featured-meta { font-size: 0.75rem; color: #999; display: flex; align-items: center; gap: 0.3rem; }

/* Mini post (image left + text right) */
.mzk-mini-post {
    display: flex;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-top: 1px solid #f0f0f0;
    color: inherit;
    text-decoration: none;
    align-items: flex-start;
}

.mzk-mini-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}

.mzk-mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mzk-mini-body { flex: 1; min-width: 0; }
.mzk-mini-title { font-family: var(--font-heading); font-size: 0.82rem; font-weight: 600; line-height: 1.3; color: #222; margin: 0.2rem 0; }
.mzk-mini-post:hover .mzk-mini-title { color: var(--color-accent); }
.mzk-mini-meta { font-size: 0.7rem; color: #999; display: flex; align-items: center; gap: 0.3rem; }

/* === SECTION HEADERS (dark + light variants) === */
.mzk-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-border); }
.mzk-section-header-light { border-bottom-color: #eee; }
.mzk-section-title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: #fff; }
.mzk-section-link { font-size: 0.85rem; font-weight: 500; color: var(--color-accent); white-space: nowrap; }
.mzk-section-link:hover { text-decoration: underline; }

/* === GRID HELPERS === */
.mzk-posts-grid { display: grid; gap: 1.5rem; }
.mzk-cols-4 { grid-template-columns: repeat(4, 1fr); }
.mzk-cols-2 { grid-template-columns: repeat(2, 1fr); }

/* Light cards (white bg with shadow) */
.mzk-card-light {
    background: #fff;
    box-shadow: 6px 6px 0px rgba(0,0,0,0.08);
}

.mzk-card-light:hover {
    box-shadow: 6px 6px 0px rgba(113,24,255,0.15);
}

/* === CB KREACJE === */
.mzk-kreacja-inline { margin: 2rem 0; }
.mzk-kreacja-full { margin: 1.5rem auto; }

/* === SIDEBAR (dark) === */
.mzk-recent-list { display: flex; flex-direction: column; gap: 0.75rem; }
.mzk-recent-item { display: flex; gap: 0.75rem; align-items: center; color: inherit; text-decoration: none; }
.mzk-recent-item:hover .mzk-recent-title { color: var(--color-accent); }
.mzk-recent-thumb { flex-shrink: 0; width: 70px; height: 50px; border-radius: var(--radius); overflow: hidden; }
.mzk-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mzk-recent-title { font-size: 0.85rem; font-weight: 600; line-height: 1.3; color: #fff; transition: color 0.2s; margin: 0; }
.mzk-recent-date { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.mzk-cat-list li a { display: flex; align-items: center; }
.mzk-cat-count { margin-left: auto; font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.mzk-sidebar-ad { margin-bottom: 1.5rem; }

/* === FOOTER (Bopea4: light footer) === */
.mzk-footer { background: var(--color-footer-bg); color: var(--color-footer-text); border-top: 1px solid var(--color-border); }
.mzk-footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 2rem 0 1rem; }
.mzk-footer-logo .custom-logo-link img { max-height: 30px; filter: brightness(0) invert(1); }
.mzk-footer-site-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: #fff; text-decoration: none; }
.mzk-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; }
.mzk-footer-links a { color: var(--color-footer-text); transition: color 0.2s; }
.mzk-footer-links a:hover { color: var(--color-accent); }
.mzk-footer-sep { color: rgba(255,255,255,0.3); }

/* === CONTACT FORM === */
.mzk-contact-form { max-width: 600px; margin: 2rem auto 0; }
.mzk-form-group { margin-bottom: 1.25rem; }
.mzk-form-group label { display: block; margin-bottom: 0.4rem; font-weight: 500; font-size: 0.9rem; }
.mzk-form-group .required { color: var(--color-accent); }
.mzk-form-group input, .mzk-form-group select, .mzk-form-group textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius); font-family: var(--font-body); font-size: 1rem; background: var(--color-card-bg); color: var(--color-text); transition: border-color 0.2s; }
.mzk-form-group input:focus, .mzk-form-group select:focus, .mzk-form-group textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(113,24,255,0.2); }
.mzk-btn-submit { background: var(--color-accent); color: #fff; width: 100%; padding: 1rem; font-size: 1rem; }
.mzk-form-status { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.9rem; }
.mzk-form-success { background: #d4edda; color: #155724; }
.mzk-form-error { background: #f8d7da; color: #721c24; }

/* === ARTICLE PAGE — WHITE BG (Bopea4 style) === */
.stb-layout-sidebar {
    background: #fff;
    color: #222;
}

.stb-layout-sidebar .stb-post-title { color: #222; }
.stb-layout-sidebar .stb-post-meta { color: #888; border-bottom-color: #eee; }
.stb-layout-sidebar .stb-post-content { color: #333; }
.stb-layout-sidebar .stb-post-content h2,
.stb-layout-sidebar .stb-post-content h3 { color: #222; }
.stb-layout-sidebar .stb-post-tags { border-top-color: #eee; }
.stb-layout-sidebar .stb-tag { background: #f5f5f5; border-color: #ddd; color: #666; }
.stb-layout-sidebar .stb-related { border-top-color: #eee; }
.stb-layout-sidebar .stb-related-title { color: #222; }
.stb-layout-sidebar .stb-related-card { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.stb-layout-sidebar .stb-related-card-title { color: #222; }
.stb-layout-sidebar .stb-featured-image { border-radius: var(--radius); }
.stb-layout-sidebar .stb-post-content blockquote { background: rgba(0,0,0,0.03); }
.stb-layout-sidebar .stb-post-content th { background: #f5f5f5; color: #222; }

/* Archive header stays dark */
.stb-archive-header { color: #fff; }
.stb-archive-header h1, .stb-archive-header .stb-post-title { color: #fff; }

/* === SIDEBAR — Bopea4 style (white bg, featured + mini posts) === */
.stb-layout-sidebar .stb-sidebar .stb-widget {
    background: #fff;
    box-shadow: none;
    border: 1px solid #eee;
}

.stb-layout-sidebar .stb-sidebar .stb-widget-title {
    color: #222;
    border-bottom-color: #222;
}

.stb-layout-sidebar .stb-sidebar .mzk-cat-list li {
    border-bottom-color: #eee;
}

.stb-layout-sidebar .stb-sidebar .mzk-cat-list li a {
    color: #333;
}

.stb-layout-sidebar .stb-sidebar .mzk-cat-count {
    color: #999;
}

/* Sidebar featured post (Bopea4: big image with overlay) */
.mzk-sidebar-featured {
    display: block;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1rem;
}

.mzk-sidebar-featured-thumb {
    position: relative;
    aspect-ratio: 16/10;
}

.mzk-sidebar-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mzk-sidebar-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: #fff;
}

.mzk-sidebar-featured-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0.3rem 0;
}

.mzk-sidebar-featured-meta {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Sidebar mini posts */
.mzk-sidebar-mini {
    display: flex;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-top: 1px solid #f0f0f0;
    color: inherit;
    text-decoration: none;
    align-items: flex-start;
}

.mzk-sidebar-mini-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}

.mzk-sidebar-mini-thumb img { width: 100%; height: 100%; object-fit: cover; }

.mzk-sidebar-mini-body { flex: 1; min-width: 0; }

.mzk-sidebar-mini-title {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    color: #222;
    margin: 0.15rem 0;
}

.mzk-sidebar-mini:hover .mzk-sidebar-mini-title { color: var(--color-accent); }

.mzk-sidebar-mini-meta {
    font-size: 0.7rem;
    color: #999;
}

/* === ACCESSIBILITY === */
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .mzk-three-cols { grid-template-columns: 1fr; gap: 2rem; }
    .mzk-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .mzk-hero-grid { height: 400px; }
    .mzk-hero-big .mzk-hero-title { font-size: 1.3rem; }
}

@media (max-width: 768px) {
    .mzk-header-inner { height: 55px; }
    .mzk-header-center { justify-content: flex-end; }
    .mzk-hero { padding: 1rem 0 1.5rem; }
    .mzk-hero-grid { grid-template-columns: 1fr; grid-template-rows: 250px repeat(4, 120px); height: auto; }
    .mzk-hero-big { grid-row: auto; }
    .mzk-hero-big .mzk-hero-title { font-size: 1.2rem; }
    .mzk-hero-medium .mzk-hero-title, .mzk-hero-small .mzk-hero-title { font-size: 0.9rem; }
    .mzk-three-cols { grid-template-columns: 1fr; }
    .mzk-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .mzk-cols-2 { grid-template-columns: 1fr; }
    .mzk-section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

@media (max-width: 480px) {
    .mzk-hero-grid { grid-template-rows: 200px repeat(4, 100px); }
    .mzk-cols-4 { grid-template-columns: 1fr; }
    .mzk-hero-big .mzk-hero-title { font-size: 1rem; }
    .mzk-hero-big .mzk-hero-overlay { padding: 1.25rem; }
    .mzk-hero-excerpt { display: none; }
}
