/*
Theme Name: Budujemy.pl v21
Theme URI: https://budujemy.pl
Author: Budujemy.pl Team
Version: 21.0
License: GPL v2
Text Domain: budujemy
*/

:root {
    --color-primary: #e74c3c;
    --color-secondary: #2c3e50;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    --color-bg: #f5f5f5;
    --color-white: #ffffff;
    --color-border: #e0e0e0;
    --color-light: #f8f9fa;
}

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

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1600px; margin: 0 auto; padding: 0 15px; }

/* HEADER */
.site-header {
    background: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 100%;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border: none;
}

/* Sticky Menu */
body.sticky-menu-enabled .site-header {
    position: sticky !important;
    top: 0 !important;
}

body:not(.sticky-menu-enabled) .site-header {
    position: relative !important;
}

/* Sticky Sidebar - Desktop only */
@media (min-width: 1025px) {
    body.sticky-sidebar-enabled .sidebar {
        position: sticky !important;
        top: 80px !important;
        align-self: start !important;
    }
}

.header-fullwidth {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    max-width: 1600px;
    margin: 0 auto;
}

.site-branding { display: flex; align-items: center; gap: 10px; }

/* CUSTOM LOGO IN HEADER */
.site-logo img {
    max-height: 45px;
    width: auto;
    display: block;
}

.logo-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--color-primary), #c0392b);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; font-size: 18px;
}

.logo-title { font-size: 20px; font-weight: 700; color: var(--color-secondary); line-height: 1.2; }
.logo-subtitle { font-size: 11px; color: var(--color-text-muted); }

/* SVG ICONS FOR META (like 6.png) */
.meta-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.meta-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card-meta, .slide-meta, .post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* MOBILE MENU */
.menu-toggle {
    display: none; flex-direction: column; justify-content: space-between;
    width: 28px; height: 22px; background: transparent; border: none;
    cursor: pointer; padding: 0; z-index: 1001;
}
.menu-toggle span { display: block; width: 100%; height: 3px; background: var(--color-secondary); border-radius: 2px; transition: all 0.3s ease; }

.menu-close { display: none; }

.main-navigation ul { display: flex; list-style: none; gap: 20px; }
.main-navigation a { font-size: 14px; font-weight: 500; color: var(--color-text); padding: 5px 0; position: relative; }
.main-navigation a:hover { color: var(--color-primary); }
.main-navigation a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--color-primary); transition: width 0.3s ease; }
.main-navigation a:hover::after { width: 100%; }

/* HEADER LAYOUTS - Desktop/Mobile switching */
/* Standard layout - show standard menu on desktop */
.menu-layout-standard .header-mobile { display: flex; }
.menu-layout-standard .header-desktop { display: none; }

/* Centered layout - show centered menu on desktop */
.menu-layout-centered .header-mobile { display: none; }
.menu-layout-centered .header-desktop { display: flex; }

/* Mobile - always show standard menu */
@media (max-width: 768px) {
    .menu-layout-standard .header-mobile,
    .menu-layout-centered .header-mobile { display: flex; }
    .menu-layout-standard .header-desktop,
    .menu-layout-centered .header-desktop { display: none !important; }
}

/* CENTERED MENU LAYOUT (Desktop only) */
.header-centered { flex-direction: column; align-items: center; padding: 20px 0; }
.site-branding-centered { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.site-branding-centered .site-logo img { max-height: 60px; width: auto; }
.main-navigation-centered { width: 100%; }
.nav-menu-centered { display: flex; justify-content: center; list-style: none; gap: 8px; flex-wrap: wrap; }
.nav-menu-centered li { position: relative; }
.nav-menu-centered a { 
    font-size: 14px; 
    font-weight: 500; 
    color: var(--color-text); 
    padding: 10px 18px; 
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.nav-menu-centered a:hover { 
    color: var(--color-white); 
    background: var(--color-primary); 
}
.nav-menu-centered a::after { display: none; }
.nav-menu-centered .current-menu-item a,
.nav-menu-centered .current-category-ancestor a { 
    color: var(--color-white); 
    background: var(--color-primary); 
}

/* Centered menu submenu styles */
.nav-menu-centered li.has-dropdown > a { padding-right: 32px; position: relative; }
.nav-menu-centered .dropdown-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 10px; transition: transform 0.3s ease; pointer-events: none; }
.nav-menu-centered li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu-centered li:hover > a .dropdown-arrow { transform: translateY(-50%) rotate(180deg); }
.nav-menu-centered .sub-menu { 
    position: absolute; 
    top: 100%; 
    left: 50%; 
    transform: translateX(-50%) translateY(10px); 
    min-width: 220px; 
    background: var(--color-white); 
    border-radius: 8px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.15); 
    padding: 8px 0; 
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.3s ease; 
    z-index: 100; 
    list-style: none; 
    display: flex; 
    flex-direction: column; 
}
.nav-menu-centered li:hover > .sub-menu { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }
.nav-menu-centered .sub-menu li { padding: 0; border: none; width: 100%; }
.nav-menu-centered .sub-menu a { 
    display: block; 
    padding: 10px 20px; 
    font-size: 13px; 
    white-space: nowrap; 
    background: transparent;
    color: var(--color-text);
    border-radius: 0;
}
.nav-menu-centered .sub-menu a:hover { background: var(--color-light); color: var(--color-primary); }

/* Hide menu toggle on desktop for centered layout */
.menu-layout-centered .menu-toggle { display: none; }

@media (max-width: 768px) {
    .menu-toggle,
    .menu-layout-centered .menu-toggle { display: flex; }
    .main-navigation { position: fixed; top: 0; right: -100%; width: 80%; max-width: 300px; height: 100vh; background: var(--color-white); box-shadow: -5px 0 20px rgba(0,0,0,0.2); transition: right 0.3s ease; z-index: 999; padding: 80px 20px 20px; }
    .main-navigation.active { right: 0; }
    .main-navigation ul { flex-direction: column; gap: 0; }
    .main-navigation li { border-bottom: 1px solid var(--color-border); }
    .main-navigation a { display: block; padding: 15px 0; font-size: 16px; }
    .main-navigation a::after { display: none; }
    .menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; }
    .menu-overlay.active { display: block; }
}

/* HERO SLIDER */
.hero-section { margin: 20px 0; }
.hero-slider { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.slider-container { position: relative; height: 400px; }

/* Slider Tall Version */
.hero-section.slider-tall .slider-container { height: 550px; }
.hero-section.slider-tall .slide-title { font-size: 32px; max-width: 800px; }
.hero-section.slider-tall .slide-excerpt { font-size: 16px; max-width: 700px; }
.hero-section.slider-tall .slide-overlay { padding: 70px 40px 40px; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s ease; overflow: hidden; }
.slide.active { opacity: 1; visibility: visible; }
.slide-image { width: 100%; height: 100%; object-fit: cover; }
.slide-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 50px 30px 30px; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%); color: white; }
.slide-category {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 10;
}
.slide-title { font-size: 26px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; max-width: 700px; }
.slide-excerpt { font-size: 14px; opacity: 0.9; max-width: 600px; margin-bottom: 12px; }
.slide-meta { display: flex; align-items: center; gap: 15px; font-size: 12px; opacity: 0.8; }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; background: rgba(255,255,255,0.9); border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all 0.3s ease; z-index: 10; }
.slider-nav:hover { background: white; transform: translateY(-50%) scale(1.1); }
.slider-nav.prev { left: 15px; }
.slider-nav.next { right: 15px; }
.slider-dots { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; transition: all 0.3s ease; }
.slider-dot.active { background: white; width: 20px; border-radius: 4px; }

/* MAIN LAYOUT */
.main-wrapper { display: grid; grid-template-columns: 1fr 350px; gap: 25px; margin: 20px 0; align-items: start; }
.main-content { min-width: 0; order: 1; }
.sidebar { order: 2; }

@media (max-width: 1024px) {
    .main-wrapper { grid-template-columns: 1fr; }
    .sidebar { position: relative; top: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .widget { margin-bottom: 0; }
}

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

/* WIDGET */
.widget { background: var(--color-white); padding: 18px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-bottom: 20px; }
.widget-title { font-size: 15px; font-weight: 700; color: var(--color-secondary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid var(--color-border); display: flex; align-items: center; gap: 8px; }

.widget-icon { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }
.widget-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.widget-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.widget-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* SECTION HEADER */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--color-border); }
.section-title { font-size: 18px; font-weight: 700; color: var(--color-secondary); display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; width: 4px; height: 22px; background: var(--color-primary); border-radius: 2px; }

/* VIEW ALL BUTTON - TEXT STYLE WITH ARROW (like 3.png) */
.view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: transparent;
    color: #e67e22;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.3s ease;
    box-shadow: none;
}

.view-all:hover {
    color: #d35400;
    transform: translateX(3px);
}

.view-all::after {
    content: '→';
    font-size: 16px;
    transition: transform 0.3s ease;
}

.view-all:hover::after {
    transform: translateX(4px);
}

/* SECTION TITLE LINK WITH UNDERLINE HOVER (like 4.png) */
.section-title-link {
    color: var(--color-secondary);
    position: relative;
    transition: color 0.3s ease;
}

.section-title-link:hover {
    color: var(--color-primary);
}

.section-title-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.section-title-link:hover::after {
    width: 100%;
}

/* CATEGORY SECTION */
.category-section { margin-bottom: 25px; background: var(--color-white); padding: 20px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

/* CARD */
.card { background: var(--color-white); border-radius: 10px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; }
.card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.15); }

.card-image { position: relative; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-image img { transform: scale(1.08); }

/* CATEGORY BADGE - RECTANGULAR, TOP-LEFT (like 2.png) */
.card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    letter-spacing: 0.3px;
}

.card-content { padding: 15px; }
.card-title { font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 10px; color: var(--color-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card-title { color: var(--color-primary); }
.card-excerpt { font-size: 13px; color: var(--color-text-light); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.card-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--color-text-muted); }

/* IMAGE HOVER EFFECT */
.card-image::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card:hover .card-image::before {
    opacity: 1;
}

/* LAYOUT: BUDOWNICTWO - Featured + 4 side */
.layout-budownictwo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.layout-budownictwo .featured-card { position: relative; border-radius: 10px; overflow: hidden; height: 100%; min-height: 420px; }
.layout-budownictwo .featured-card .card-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.layout-budownictwo .featured-card .card-image::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}
.layout-budownictwo .featured-card .card-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; color: white; z-index: 2; }
.layout-budownictwo .featured-card .card-title { color: white; font-size: 22px; margin-bottom: 12px; }
.layout-budownictwo .featured-card .card-excerpt { color: rgba(255,255,255,0.85); font-size: 14px; margin-bottom: 15px; }
.layout-budownictwo .featured-card .card-meta { color: rgba(255,255,255,0.7); }
.layout-budownictwo .side-cards { display: flex; flex-direction: column; gap: 12px; }
.layout-budownictwo .side-card { display: flex; gap: 12px; padding: 12px; background: var(--color-white); border-radius: 8px; border: 1px solid var(--color-border); transition: all 0.3s ease; }
.layout-budownictwo .side-card:hover { border-color: var(--color-primary); box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateX(5px); }
.layout-budownictwo .side-card .card-image { width: 100px; height: 75px; border-radius: 6px; flex-shrink: 0; overflow: hidden; }
.layout-budownictwo .side-card .card-image img { border-radius: 6px; }
.layout-budownictwo .side-card .card-content { padding: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.layout-budownictwo .side-card .card-title { font-size: 13px; margin-bottom: 6px; color: var(--color-secondary); }
.layout-budownictwo .side-card:hover .card-title { color: var(--color-primary); }
.layout-budownictwo .side-card .card-date { font-size: 11px; color: var(--color-text-muted); }

/* LAYOUT: NARZEDZIA - Grid 2x2 */
.layout-narzedzia { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.layout-narzedzia .card { border: 1px solid var(--color-border); }
.layout-narzedzia .card-image { height: 220px; }
.layout-narzedzia .card-content { padding: 18px; }
.layout-narzedzia .card-title { font-size: 16px; margin-bottom: 10px; }
.layout-narzedzia .card-excerpt { font-size: 13px; margin-bottom: 12px; }

/* LAYOUT: DACHY - Vertical list */
.layout-dachy { display: flex; flex-direction: column; gap: 15px; }
.layout-dachy .list-card { display: flex; gap: 18px; padding: 18px; background: var(--color-white); border-radius: 10px; border: 1px solid var(--color-border); transition: all 0.3s ease; }
.layout-dachy .list-card:hover { border-color: var(--color-primary); box-shadow: 0 8px 25px rgba(0,0,0,0.1); transform: translateX(10px); }
.layout-dachy .list-card .card-image { width: 280px; height: 180px; border-radius: 8px; flex-shrink: 0; overflow: hidden; }
.layout-dachy .list-card .card-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.layout-dachy .list-card .card-content { padding: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.layout-dachy .list-card .card-category { position: static; display: inline-block; width: fit-content; margin-bottom: 10px; }
.layout-dachy .list-card .card-title { font-size: 17px; margin-bottom: 10px; }
.layout-dachy .list-card .card-excerpt { font-size: 14px; margin-bottom: 12px; -webkit-line-clamp: 2; }
.layout-dachy .list-card .card-meta { font-size: 12px; }

/* LAYOUT: PODLOGA - Grid 3 columns */
.layout-podloga { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.layout-podloga .card { border: 1px solid var(--color-border); }
.layout-podloga .card-image { height: 200px; }
.layout-podloga .card-content { padding: 15px; }
.layout-podloga .card-title { font-size: 14px; }

/* LAYOUT: DRZWI - Asymmetric 1+2 */
.layout-drzwi { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.layout-drzwi .featured-card { grid-row: span 2; position: relative; border-radius: 10px; overflow: hidden; }
.layout-drzwi .featured-card .card-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.layout-drzwi .featured-card .card-image::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60%; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%); }
.layout-drzwi .featured-card .card-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 25px; color: white; z-index: 2; }
.layout-drzwi .featured-card .card-title { color: white; font-size: 20px; }
.layout-drzwi .featured-card .card-meta { color: rgba(255,255,255,0.7); }
.layout-drzwi .side-card { display: flex; gap: 15px; padding: 15px; background: var(--color-white); border-radius: 10px; border: 1px solid var(--color-border); transition: all 0.3s ease; }
.layout-drzwi .side-card:hover { border-color: var(--color-primary); box-shadow: 0 8px 25px rgba(0,0,0,0.1); transform: translateY(-3px); }
.layout-drzwi .side-card .card-image { width: 140px; height: 100px; border-radius: 8px; flex-shrink: 0; overflow: hidden; }
.layout-drzwi .side-card .card-content { padding: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.layout-drzwi .side-card .card-title { font-size: 14px; margin-bottom: 8px; }
.layout-drzwi .side-card .card-meta { font-size: 11px; }

/* LAYOUT: OKNA - Asymmetric 1+3 */
.layout-okna { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto auto; gap: 12px; }
.layout-okna .featured-card { grid-row: span 3; position: relative; border-radius: 10px; overflow: hidden; }
.layout-okna .featured-card .card-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.layout-okna .featured-card .card-image::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60%; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%); }
.layout-okna .featured-card .card-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 25px; color: white; z-index: 2; }
.layout-okna .featured-card .card-title { color: white; font-size: 20px; }
.layout-okna .featured-card .card-meta { color: rgba(255,255,255,0.7); }
.layout-okna .side-card { display: flex; gap: 12px; padding: 12px; background: var(--color-white); border-radius: 8px; border: 1px solid var(--color-border); transition: all 0.3s ease; }
.layout-okna .side-card:hover { border-color: var(--color-primary); box-shadow: 0 6px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.layout-okna .side-card .card-image { width: 110px; height: 80px; border-radius: 6px; flex-shrink: 0; overflow: hidden; }
.layout-okna .side-card .card-content { padding: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.layout-okna .side-card .card-title { font-size: 12px; margin-bottom: 4px; }
.layout-okna .side-card .card-meta { font-size: 11px; }

/* LAYOUT: SIMPLE - 2 columns */
.layout-simple { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.layout-simple .card { border: 1px solid var(--color-border); }
.layout-simple .card-image { height: 200px; }

/* LAYOUT: MASONRY - 4 columns */
.layout-masonry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.layout-masonry .card { border: 1px solid var(--color-border); }
.layout-masonry .card:nth-child(1) { grid-row: span 2; }
.layout-masonry .card:nth-child(1) .card-image { height: 300px; }
.layout-masonry .card-image { height: 140px; }

/* LAYOUT: CAROUSEL - Auto-scroll (no manual scroll) */
.layout-carousel {
    display: flex;
    gap: 18px;
    overflow: hidden;
    padding-bottom: 10px;
}

.layout-carousel .carousel-track {
    display: flex;
    gap: 18px;
    animation: carousel-scroll 30s linear infinite;
}

.layout-carousel:hover .carousel-track {
    animation-play-state: paused;
}

@keyframes carousel-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.layout-carousel .card {
    flex: 0 0 300px;
    border: 1px solid var(--color-border);
}

.layout-carousel .card-image { height: 180px; }

/* LAYOUT: TIMELINE - Vertical timeline */
.layout-timeline { display: flex; flex-direction: column; gap: 20px; position: relative; padding-left: 30px; }
.layout-timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--color-border); }
.layout-timeline .timeline-item { position: relative; padding: 15px; background: var(--color-white); border-radius: 10px; border: 1px solid var(--color-border); }
.layout-timeline .timeline-item::before { content: ''; position: absolute; left: -24px; top: 20px; width: 12px; height: 12px; background: var(--color-primary); border-radius: 50%; border: 3px solid var(--color-white); box-shadow: 0 0 0 2px var(--color-border); }
.layout-timeline .timeline-item:hover::before { background: var(--color-secondary); }
.layout-timeline .card-image { height: 150px; margin-bottom: 12px; border-radius: 8px; overflow: hidden; }

/* LAYOUT: GRID-4 - 4 equal columns */
.layout-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.layout-grid-4 .card { border: 1px solid var(--color-border); }
.layout-grid-4 .card-image { height: 160px; }

/* SIDEBAR: NAJNOWSZE POSTY */
.widget-recent-posts .post-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--color-border); align-items: flex-start; transition: all 0.3s ease; }
.widget-recent-posts .post-item:hover { padding-left: 5px; }
.widget-recent-posts .post-item:last-child { border-bottom: none; }
.widget-recent-posts .post-thumbnail { width: 100px; height: 70px; border-radius: 6px; overflow: hidden; flex-shrink: 0; transition: transform 0.3s ease; }
.widget-recent-posts .post-item:hover .post-thumbnail { transform: scale(1.05); }
.widget-recent-posts .post-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.widget-recent-posts .post-number { width: 28px; height: 28px; color: white; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.widget-recent-posts .post-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.widget-recent-posts .category-name { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.widget-recent-posts .post-title { font-size: 14px; font-weight: 600; color: var(--color-secondary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.widget-recent-posts .post-item:hover .post-title { color: var(--color-primary); }
.widget-recent-posts .post-date { font-size: 12px; color: var(--color-text-muted); }

/* SIDEBAR: NAJNOWSZE POSTY - wersja bez miniaturek */
.widget-recent-posts.no-thumbnails .post-item { align-items: center; }
.widget-recent-posts.no-thumbnails .post-number { width: 32px; height: 32px; border-radius: 8px; font-size: 14px; }

/* SIDEBAR: SEARCH */
.widget-search { background: var(--color-white); padding: 18px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-bottom: 20px; }

/* SIDEBAR: KATEGORIE */
.widget-categories .category-list { list-style: none; }
.widget-categories .category-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--color-border); transition: all 0.3s ease; }
.widget-categories .category-item:hover { padding-left: 5px; }
.widget-categories .category-item:last-child { border-bottom: none; }
.widget-categories .category-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; transition: transform 0.3s ease; }
.widget-categories .category-item:hover .category-dot { transform: scale(1.2); }
.widget-categories .category-name { flex: 1; font-size: 14px; color: var(--color-text); font-weight: 500; }
.widget-categories .category-item:hover .category-name { color: var(--color-primary); }
.widget-categories .category-count { font-size: 12px; color: var(--color-text-muted); background: var(--color-bg); padding: 3px 10px; border-radius: 12px; }

/* FOOTER */
.site-footer { background: var(--color-secondary); color: white; padding: 50px 0 20px; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 30px; }
.footer-brand .logo-title { color: white; font-size: 24px; margin-bottom: 15px; }
.footer-brand .logo-subtitle { color: rgba(255,255,255,0.8); font-size: 14px; line-height: 1.6; }
.footer-brand .footer-logo { margin-bottom: 15px; }
.footer-brand .footer-logo img { max-width: 200px; height: auto; }
.footer-title { font-size: 16px; font-weight: 600; margin-bottom: 18px; color: white; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 14px; transition: color 0.3s ease; }
.footer-links a:hover { color: white; }
.footer-contact p { color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; color: rgba(255,255,255,0.5); font-size: 13px; }

/* DEMO NOTICE */
.demo-notice { background: linear-gradient(135deg, var(--color-primary), #c0392b); color: white; padding: 30px; border-radius: 12px; text-align: center; margin: 25px 0; }
.demo-notice h3 { font-size: 22px; margin-bottom: 10px; }
.demo-notice p { margin-bottom: 20px; opacity: 0.9; font-size: 14px; }
.demo-button { display: inline-block; background: white; color: var(--color-primary); padding: 12px 30px; border-radius: 25px; font-weight: 600; font-size: 14px; border: none; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.demo-button:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }

/* RESPONSIVE */
@media (max-width: 1200px) {
    .container { padding: 0 10px; }
    .main-wrapper { grid-template-columns: 1fr 300px; gap: 20px; }
    .layout-masonry { grid-template-columns: repeat(3, 1fr); }
    .layout-grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .main-wrapper { grid-template-columns: 1fr; }
    .sidebar { position: relative; top: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .widget { margin-bottom: 0; }
    .layout-budownictwo { grid-template-columns: 1fr; }
    .layout-budownictwo .featured-card { min-height: 300px; }
    .layout-drzwi, .layout-okna { grid-template-columns: 1fr; grid-template-rows: auto; }
    .layout-drzwi .featured-card, .layout-okna .featured-card { grid-row: span 1; min-height: 300px; }
    .layout-masonry { grid-template-columns: repeat(2, 1fr); }
    .layout-masonry .card:nth-child(1) { grid-row: span 1; }
    .layout-masonry .card:nth-child(1) .card-image { height: 180px; }
    .layout-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    .slider-container { height: 300px; }
    .hero-section.slider-tall .slider-container { height: 350px; }
    .hero-section.slider-tall .slide-title { font-size: 22px; }
    .slide-title { font-size: 18px; }
    .slide-excerpt { display: none; }
    .layout-narzedzia, .layout-podloga, .layout-simple, .layout-grid-4 { grid-template-columns: 1fr; }
    .layout-dachy .list-card { flex-direction: column; }
    .layout-dachy .list-card .card-image { width: 100%; height: 180px; }
    .layout-masonry { grid-template-columns: 1fr; }
    .layout-carousel .card { flex: 0 0 260px; }
    .footer-grid { grid-template-columns: 1fr; }
    .sidebar { grid-template-columns: 1fr; }
    
    /* Asymmetric layouts mobile fix */
    .layout-drzwi .side-card, .layout-okna .side-card { flex-direction: row; align-items: center; padding: 10px; gap: 12px; }
    .layout-drzwi .side-card .card-image, .layout-okna .side-card .card-image { width: 90px; height: 65px; flex-shrink: 0; }
    .layout-drzwi .side-card .card-content, .layout-okna .side-card .card-content { justify-content: center; padding: 0; }
    .layout-drzwi .side-card .card-title, .layout-okna .side-card .card-title { margin-bottom: 4px; font-size: 13px; }
    .layout-drzwi .side-card .card-meta, .layout-okna .side-card .card-meta { font-size: 11px; }
    
    /* Single post mobile fixes */
    .single-post {
        padding: 20px;
        overflow-x: hidden;
    }
    .post-title { font-size: 22px; }
    .post-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    .post-content {
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }
    .post-content pre,
    .post-content code {
        white-space: pre-wrap;
        word-wrap: break-word;
        max-width: 100%;
        overflow-x: auto;
    }
    .post-content iframe,
    .post-content embed,
    .post-content object {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 8px; }
    .slider-container { height: 250px; }
    .slide-overlay { padding: 30px 15px 20px; }
    .slide-title { font-size: 16px; }
    .section-header { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; }
    .view-all { width: auto; margin-left: auto; }
    
    /* Asymmetric layouts mobile - smaller images and padding */
    .layout-drzwi .side-card, .layout-okna .side-card { padding: 8px; gap: 10px; }
    .layout-drzwi .side-card .card-image, .layout-okna .side-card .card-image { width: 70px; height: 50px; }
}

/* SINGLE POST */
.single-post { background: var(--color-white); padding: 30px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); overflow-x: hidden; margin-top: 20px; }
.post-header { margin-bottom: 25px; }
.post-category {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}
.post-title { font-size: 28px; font-weight: 700; color: var(--color-secondary); line-height: 1.3; margin-bottom: 15px; }
.post-meta { display: flex; align-items: center; gap: 20px; color: var(--color-text-muted); font-size: 13px; }
.post-featured-image { margin: 25px 0; border-radius: 12px; overflow: hidden; }
.post-featured-image img { width: 100%; height: auto; max-height: 500px; object-fit: cover; }
.post-content { font-size: 15px; line-height: 1.8; color: var(--color-text); overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; }
.post-content p { margin-bottom: 20px; }

/* POST CONTENT TABLES */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.post-content table thead {
    background: var(--color-secondary);
    color: white;
}
.post-content table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}
.post-content table td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}
.post-content table tbody tr:last-child td {
    border-bottom: none;
}
.post-content table tbody tr:nth-child(even) {
    background: var(--color-light);
}
.post-content table tbody tr:hover {
    background: rgba(231, 76, 60, 0.05);
}

/* Responsive tables */
@media (max-width: 768px) {
    .post-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

/* POST CONTENT LISTS */
.post-content ul, .post-content ol {
    margin: 20px 0;
    padding-left: 25px;
}
.post-content li {
    margin-bottom: 8px;
}

/* POST CONTENT LINKS */
.post-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.post-content a:hover {
    color: #c0392b;
}

/* POST CONTENT IMAGES */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* POST CONTENT HEADINGS */
.post-content h2, .post-content h3, .post-content h4 {
    margin: 30px 0 15px;
    color: var(--color-secondary);
}
.post-content h2 { font-size: 24px; }
.post-content h3 { font-size: 20px; }
.post-content h4 { font-size: 18px; }

/* COMMENTS SECTION */
.comments-section {
    margin-top: 40px;
    background: var(--color-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.comments-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-border);
}
.comments-title span {
    color: var(--color-primary);
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.comment-list .comment {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--color-border);
}
.comment-list .comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.comment-body {
    display: flex;
    gap: 15px;
}
.comment-avatar {
    flex-shrink: 0;
}
.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-border);
}
.comment-content {
    flex: 1;
}
.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.comment-author {
    font-weight: 600;
    color: var(--color-secondary);
    font-size: 15px;
}
.comment-author a {
    color: var(--color-primary);
}
.comment-date {
    font-size: 12px;
    color: var(--color-text-muted);
}
.comment-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text);
}
.comment-text p {
    margin-bottom: 10px;
}
.comment-text p:last-child {
    margin-bottom: 0;
}
.comment-reply {
    margin-top: 10px;
}
.comment-reply a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}
.comment-reply a:hover {
    color: #c0392b;
    transform: translateX(3px);
}
.comment-reply a::before {
    content: '↩';
}

/* Nested comments */
.comment-list .children {
    list-style: none;
    margin-top: 20px;
    margin-left: 65px;
    padding-left: 20px;
    border-left: 2px solid var(--color-border);
}
.comment-list .children .comment {
    margin-bottom: 20px;
    padding-bottom: 20px;
}
.comment-list .children .comment-avatar img {
    width: 40px;
    height: 40px;
}

/* Comment Form */
.comment-respond {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--color-border);
}
.comment-reply-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 20px;
}
.comment-reply-title small {
    font-size: 13px;
    font-weight: 400;
    margin-left: 10px;
}
.comment-reply-title small a {
    color: var(--color-text-muted);
}
.comment-reply-title small a:hover {
    color: var(--color-primary);
}
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-secondary);
    margin-bottom: 8px;
}
.comment-form-comment label .required,
.comment-form-author label .required,
.comment-form-email label .required {
    color: var(--color-primary);
}
.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--color-white);
}
.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}
.comment-form-comment textarea {
    min-height: 120px;
    resize: vertical;
}
.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.comment-form-cookies-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-primary);
}
.comment-form-cookies-consent label {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
}
.comment-form .form-submit {
    margin: 0;
}
.comment-form .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.comment-form .submit:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}
.comment-notes {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 15px;
}
.comment-notes .required {
    color: var(--color-primary);
}
.logged-in-as {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 15px;
}
.logged-in-as a {
    color: var(--color-primary);
}
.logged-in-as a:hover {
    text-decoration: underline;
}

/* No comments */
.no-comments {
    text-align: center;
    padding: 30px;
    color: var(--color-text-muted);
    font-style: italic;
}

/* Responsive comments */
@media (max-width: 768px) {
    .comments-section {
        padding: 20px;
    }
    .comment-body {
        gap: 12px;
    }
    .comment-avatar img {
        width: 40px;
        height: 40px;
    }
    .comment-list .children {
        margin-left: 0;
        padding-left: 15px;
    }
    .comment-list .children .comment-avatar img {
        width: 32px;
        height: 32px;
    }
    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* ARCHIVE */
.archive-header { background: var(--color-white); padding: 25px 30px; border-radius: 12px; margin-top: 20px; margin-bottom: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.archive-title { font-size: 24px; font-weight: 700; color: var(--color-secondary); }
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }

/* Category Description Box */
.category-description-box {
    background: var(--color-white);
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--color-primary);
}
.category-description-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
}
.category-description-content p {
    margin-bottom: 15px;
}
.category-description-content p:last-child {
    margin-bottom: 0;
}

/* 4 Column Grid for Archive */
.posts-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.posts-grid-4 .card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
}
.posts-grid-4 .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.posts-grid-4 .card-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}
.posts-grid-4 .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.posts-grid-4 .card:hover .card-image img {
    transform: scale(1.08);
}
.posts-grid-4 .card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    letter-spacing: 0.3px;
}
.posts-grid-4 .card-content {
    padding: 15px;
}
.posts-grid-4 .card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--color-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.posts-grid-4 .card:hover .card-title {
    color: var(--color-primary);
}
.posts-grid-4 .card-excerpt {
    font-size: 12px;
    color: var(--color-text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}
.posts-grid-4 .card-meta {
    font-size: 11px;
    color: var(--color-text-muted);
}

/* Responsive for 4 column grid */
@media (max-width: 1200px) {
    .posts-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .posts-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .posts-grid-4 {
        grid-template-columns: 1fr;
    }
    .posts-grid-4 .card-image {
        height: 200px;
    }
}

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { padding: 10px 16px; background: var(--color-white); border-radius: 8px; font-size: 14px; color: var(--color-text); border: 1px solid var(--color-border); transition: all 0.3s ease; }
.pagination a:hover { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.pagination .current { background: var(--color-primary); color: white; border-color: var(--color-primary); }

/* SEARCH */
.search-form { display: flex; gap: 10px; }
.search-form input { flex: 1; padding: 12px 15px; border: 1px solid var(--color-border); border-radius: 8px; font-size: 14px; }
.search-form button { padding: 12px 20px; background: var(--color-primary); color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px; transition: background 0.3s ease; }
.search-form button:hover { background: #c0392b; }

/* Search No Results */
.search-no-results {
    background: var(--color-white);
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 20px;
}
.search-no-results-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-no-results-icon svg {
    width: 40px;
    height: 40px;
    color: var(--color-text-muted);
}
.search-no-results-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 15px;
}
.search-no-results-text {
    font-size: 15px;
    color: var(--color-text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}
.search-no-results-text strong {
    color: var(--color-primary);
}
.search-no-results-suggestions {
    background: var(--color-light);
    padding: 25px 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.search-no-results-suggestions h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 15px;
}
.search-no-results-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.search-no-results-suggestions li {
    font-size: 14px;
    color: var(--color-text-light);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}
.search-no-results-suggestions li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--color-primary);
    font-weight: bold;
}
.search-no-results-form {
    max-width: 400px;
    margin: 0 auto;
}
.search-no-results-form .search-form input {
    padding: 14px 18px;
    font-size: 15px;
}
.search-no-results-form .search-form button {
    padding: 14px 25px;
    font-size: 15px;
}

/* 404 */
.error-404 { text-align: center; padding: 60px 20px; background: var(--color-white); border-radius: 12px; }
.error-code { font-size: 120px; font-weight: 700; color: var(--color-primary); line-height: 1; margin-bottom: 20px; }
.error-title { font-size: 24px; color: var(--color-secondary); margin-bottom: 15px; }

/* NAVIGATION MENU */
.nav-menu { display: flex; list-style: none; gap: 25px; }
.nav-menu li { position: relative; }
.nav-menu a { font-size: 14px; font-weight: 500; color: var(--color-text); padding: 8px 0; position: relative; display: block; }
.nav-menu a:hover { color: var(--color-primary); }
.nav-menu > li > a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--color-primary); transition: width 0.3s ease; }
.nav-menu > li > a:hover::after { width: 100%; }

/* DROPDOWN MENU */
.nav-menu li.has-dropdown > a { padding-right: 18px; }
.dropdown-arrow { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 10px; transition: transform 0.3s ease; pointer-events: none; }
.sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--color-white); border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; z-index: 100; list-style: none; display: flex; flex-direction: column; }
.nav-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu li:hover > a .dropdown-arrow { transform: translateY(-50%) rotate(180deg); }
.sub-menu li { padding: 0; border: none; width: 100%; }
.sub-menu a { display: block; padding: 10px 20px; font-size: 13px; white-space: nowrap; }
.sub-menu a::after { display: none; }
.sub-menu a:hover { background: var(--color-light); color: var(--color-primary); }

/* MOBILE MENU */
@media (max-width: 768px) {
    .menu-toggle { display: flex; flex-direction: column; justify-content: space-between; width: 28px; height: 22px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1001; }
    .menu-toggle span { display: block; width: 100%; height: 3px; background: var(--color-secondary); border-radius: 2px; transition: all 0.3s ease; }
    
    .menu-close { display: flex; position: absolute; top: 15px; right: 15px; width: 40px; height: 40px; background: var(--color-light); border: none; border-radius: 8px; cursor: pointer; align-items: center; justify-content: center; z-index: 1002; }
    .menu-close span { display: block; position: absolute; width: 20px; height: 2px; background: var(--color-secondary); border-radius: 2px; }
    .menu-close span:nth-child(1) { transform: rotate(45deg); }
    .menu-close span:nth-child(2) { transform: rotate(-45deg); }
    .menu-close:hover { background: var(--color-primary); }
    .menu-close:hover span { background: white; }
    
    .main-navigation { position: fixed; top: 0; right: -100%; width: 85%; max-width: 320px; height: 100vh; background: var(--color-white); box-shadow: -5px 0 20px rgba(0,0,0,0.2); transition: right 0.3s ease; z-index: 1002; padding: 70px 0 20px; overflow-y: auto; }
    .main-navigation.active { right: 0; }
    .nav-menu { flex-direction: column; gap: 0; }
    .nav-menu li { border-bottom: 1px solid var(--color-border); position: relative; width: 100%; }
    .nav-menu > li > a { display: block; padding: 15px 20px; font-size: 15px; }
    .nav-menu > li > a::after { display: none; }
    
    .dropdown-toggle { position: absolute; right: 10px; top: 8px; width: 36px; height: 36px; background: var(--color-light); border: none; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; z-index: 10; transition: all 0.3s ease; }
    .dropdown-toggle:hover { background: var(--color-primary); color: white; }
    .dropdown-toggle.active { background: var(--color-primary); color: white; transform: rotate(180deg); }
    
    .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: var(--color-light); border-radius: 0; padding: 0; display: none; min-width: auto; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
    .sub-menu.active { display: block; max-height: 500px; }
    .sub-menu li { border-bottom: none; border-top: 1px solid var(--color-border); }
    .sub-menu a { padding: 12px 30px; font-size: 14px; }
    
    .menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; }
    .menu-overlay.active { display: block; }
}
