/* ==========================================
   3-KOLOMS LAYOUT SYSTEEM - MINIMAL DESIGN
   ========================================== */

/* CSS Variabelen */
:root {
    --primary-color: #5D4037;
    --accent-color: #9a6b3d;
    --text-dark: #3E2723;
    --text-light: #7f8c8d;
    --border-gray: #e1e8ed;
    --light-gray: #f8f9fa;
    --bg-warm: #faf7f1;
}

/* Mobile header - standaard verborgen op desktop */
.mobile-header {
    display: none;
}

/* Sidebar overlay - standaard verborgen */
.sidebar-overlay {
    display: none;
}

.app-wrapper {
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    grid-template-areas: "sidebar main aside";
    min-height: 100vh;
    gap: 0;
    background-color: var(--light-gray);
}

/* ==========================================
   LINKER NAVIGATIE KOLOM - SIMPEL
   ========================================== */

.sidebar {
    grid-area: sidebar;
    background: white;
    border-right: 1px solid var(--border-gray);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Simpele sidebar header - met logo en tekst */
.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-gray);
}

.sidebar-header a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--primary-color);
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

.sidebar-title {
    font-family: var(--heading-font, 'Playfair Display'), Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
    line-height: 1.2;
}

.sidebar-subtitle {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-color);
    padding: 0.5rem 0;
    margin: 0 0 0.5rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: block;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-decoration: none;
}

.nav-link:hover {
    background: var(--bg-warm);
    color: var(--primary-color);
}

.nav-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.nav-label {
    display: block;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-gray);
    font-size: 0.7rem;
    color: var(--text-light);
    text-align: center;
}

.sidebar-footer a {
    color: var(--text-light);
}

/* ==========================================
   MIDDEN CONTENT AREA
   ========================================== */

.main-content {
    grid-area: main;
    min-width: 0;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    color: var(--text-dark);
    background-color: #ffffff;
}

/* Pagina titel styling - vervangt banner */
.page-title {
    margin: 0 0 0.5rem 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

.page-subtitle {
    margin: 0 0 2rem 0;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Taal switch - nu bij pagina titel */
.lang-switch {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.lang-switch a {
    padding: 0.35rem 0.65rem;
    background: var(--light-gray);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--border-gray);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.lang-switch a:hover {
    background: var(--bg-warm);
    border-color: var(--accent-color);
}

.lang-switch a.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ==========================================
   RECHTER SIDEBAR - SIMPEL
   ========================================== */

.aside {
    grid-area: aside;
    background: white;
    border-left: 1px solid var(--border-gray);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Simpele aside header */
.aside-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-gray);
    text-align: center;
}

.aside-header-icon {
    display: none; /* Verberg icoon */
}

.aside-header-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
    line-height: 1.2;
}

.aside-header-subtitle {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.aside-content {
    flex: 1;
    padding: 1rem;
}

.aside-section {
    margin-bottom: 1.5rem;
}

.aside-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-color);
    margin: 0 0 0.5rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.aside-placeholder {
    padding: 1rem;
    background: var(--bg-warm);
    border-radius: 5px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.8rem;
    border: 1px solid var(--border-gray);
}

.aside-placeholder-icon {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    opacity: 0.5;
}

/* Verticale filter buttons voor rechter kolom */
.filter-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-buttons-vertical .filter-btn {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-gray);
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    text-align: left;
    font-size: 0.85rem;
}

.filter-buttons-vertical .filter-btn:hover {
    border-color: var(--accent-color);
    background: var(--bg-warm);
    color: var(--primary-color);
}

.filter-buttons-vertical .filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ==========================================
   RESPONSIVE: Mobiel & Tablet
   ========================================== */

/* Tablet (max 1200px) */
@media (max-width: 1200px) {
    .app-wrapper {
        grid-template-columns: 200px 1fr 200px;
    }
    
    .main-content {
        padding: 1.5rem;
    }
}

/* Tablet klein & mobiel (max 1024px) - verberg rechter kolom */
@media (max-width: 1024px) {
    .app-wrapper {
        grid-template-columns: 180px 1fr;
        grid-template-areas: "sidebar main";
    }
    
    .aside {
        display: none;
    }
}

/* Mobiel (max 768px) - hamburger menu */
@media (max-width: 768px) {
    .app-wrapper {
        grid-template-columns: 1fr;
        grid-template-areas: "main";
    }
    
    .page-title {
        font-size: 1.6rem;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        background: white;
        border-bottom: 1px solid var(--border-gray);
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .mobile-logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-family: var(--heading-font, 'Playfair Display'), Georgia, serif;
        font-weight: 700;
        font-size: 1.3rem;
        color: var(--primary-color);
        text-decoration: none;
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .mobile-logo img {
        width: 28px;
        height: 28px;
        max-width: 28px;
        max-height: 28px;
        object-fit: contain;
        flex-shrink: 0;
        background: transparent;
    }
    
    .mobile-menu-btn {
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 0.6rem 1rem;
        border-radius: 6px;
        cursor: pointer;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: 600;
    }
    
    .mobile-menu-btn:active {
        transform: scale(0.95);
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .main-content {
        padding: 1rem;
    }
}

/* Desktop groot (min 1400px) - bredere kolommen */
@media (min-width: 1400px) {
    .app-wrapper {
        grid-template-columns: 250px 1fr 250px;
    }
}
