/* ==========================================================================
   User Account Page — Full-Width Layout Override
   Target: MasterStudy LMS account page (page assigned as user_url in LMS settings)
   Problem: MasterStudy renders a 2-column flex layout:
     - .masterstudy-account (flex container, max-width:1210px)
       - .masterstudy-account-sidebar (260px + 40px margin-right)
       - .masterstudy-account-container (max-width:870px)
   Solution: Hide MasterStudy sidebar, expand container to full width.
   Note: body[class] prefix used for specificity to beat plugin's own rules.
         MasterStudy enqueues CSS inside templates (during rendering), so our
         overrides must have higher specificity regardless of load order.
   ========================================================================== */

/* --- Blocksy outer wrappers: full width, no sidebar --- */
body[class] .ct-sidebar,
body[class] .sidebar,
body[class] aside.widget-area {
    display: none !important;
}

body[class] .ct-content,
body[class] .entry-content,
body[class] .ct-container {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* --- MasterStudy Account: expand main flex wrapper --- */
body[class] .masterstudy-account {
    max-width: 1400px !important;
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

/* --- MasterStudy Sidebar: HIDE completely --- */
body[class] .masterstudy-account-sidebar {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    flex: 0 0 0px !important;
    visibility: hidden !important;
}

/* --- MasterStudy Container: expand to fill available space --- */
body[class] .masterstudy-account-container {
    max-width: 100% !important;
    width: 100% !important;
    flex: 1 1 100% !important;
    min-width: 0 !important;
}

/* --- Mobile menu trigger: hidden since we removed sidebar --- */
body[class] .masterstudy-account-mobile-menu {
    display: none !important;
}

/* --- Profile / Edit Account / Settings sections: full width --- */
body[class] .masterstudy-account-profile,
body[class] .masterstudy-account-edit,
body[class] .masterstudy-account-settings {
    width: 100% !important;
    max-width: 100% !important;
}

/* --- Account inner content: full width --- */
body[class] .masterstudy-account-container > * {
    max-width: 100%;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    body[class] .masterstudy-account {
        padding-left: 15px !important;
        padding-right: 15px !important;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
}
