/**
 * Sidebar Layout Styles
 * Dynamic sidebar positioning and width
 */

/* Header Right Section - Menu + Search */
.header-right-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* Header Search Styling */
.header-search {
    width: 100%;
    max-width: 250px;
}

.header-search .search-form {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.header-search .search-field {
    padding: 8px 12px;
    border: none;
    font-size: 14px;
    flex: 1;
    outline: none;
}

.header-search .search-field:focus {
    outline: none;
}

.header-search .search-submit {
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.header-search .search-submit:hover {
    background: #005177;
}

/* Content + Sidebar Layout */
.site-content-wrapper {
    display: flex;
    gap: 30px;
    width: 100%;
}

/* Sidebar alleen tonen als er widgets in zitten */
.widget-area:empty {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-right-section {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    /* Zoekbalk blijft zichtbaar, styling in layout.css */
    
    .site-content-wrapper {
        flex-direction: column;
    }
    
    .widget-area {
        width: 100% !important;
        order: 2;
    }
    
    #primary {
        width: 100% !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet: kleinere zoekbalk maar wel zichtbaar */
    .header-search {
        max-width: 180px;
    }
    
    .header-search .search-field {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .header-search .search-submit {
        padding: 6px 12px;
        font-size: 13px;
    }
}
