/* ==========================================================================
   Sidebar Styles
   ========================================================================== */
.sidebar {
    width: 300px;
    padding: 0 20px;
    background: var(--sidebar-bg);
}

.sidebar {
    border-right: none !important;
    outline: none !important;
}

/* Sidebar Position Classes */
body.sidebar-left .site-content {
    flex-direction: row-reverse;
}

body.sidebar-none .sidebar,
body.no-sidebar .sidebar {
    display: none;
}

body.sidebar-none #primary,
body.no-sidebar #primary {
    width: 100%;
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-family: var(--font-family-widget-title);
    color: var(--sidebar-widget-title);
}

/* Sidebar Layout */
.sidebar {
    width: 300px;
    padding: 0 20px;
}

/* Sidebar Position Classes */
.sidebar-right .site-content {
    flex-direction: row;
}

.sidebar-left .site-content {
    flex-direction: row-reverse;
}

.sidebar-none .sidebar,
.no-sidebar .sidebar {
    display: none;
}

.sidebar-none .content-container,
.no-sidebar .content-container {
    width: 100%;
}

.sidebar {
    width: 320px;
    padding: 20px;
    background: var(--sidebar-bg);
}

/* Base Sidebar Styles */
.widget-area {
    width: 300px;
    padding: 20px;
    background: var(--sidebar-bg);
    transition: all 0.3s ease;
}

/* Position Classes */
body.sidebar-left .site-content {
    flex-direction: row-reverse;
}

body.sidebar-right .site-content {
    flex-direction: row;
}

body.sidebar-none .widget-area {
    display: none;
}

/* Smooth Transitions for Preview */
#secondary {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Visual Feedback for Customizer */
.customize-partial-edit-shortcut-sw87_sidebar_partial {
    left: -50px !important;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        padding: 20px 0 0;
        order: 2;
    }
    
    /* Mobile sidebar */
    .main-content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .widget-area {
        width: 100%;
        order: 2;
        margin-top: 30px;
    }
    
    body.sidebar-left .site-content,
    body.sidebar-right .site-content {
        flex-direction: column;
    }
    
    .sidebar .widget {
        padding: 15px;
    }
    
    .sidebar .widget-title {
        font-size: 1.2rem;
    }
}