/**
 * AI Page Builder - Canvas Template Styles
 * No header/footer layout
 */

/* Canvas template specific styles */
body.aipb-canvas-template-active {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
}

/* Full width wrapper */
.aipb-canvas-wrapper {
    width: 100% !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

/* Canvas page main content */
.aipb-canvas-page {
    flex: 1;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Override any theme constraints */
body.aipb-canvas-template-active .site-main,
body.aipb-canvas-template-active #content,
body.aipb-canvas-template-active .content-area,
body.aipb-canvas-template-active .site-content {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide all headers and footers on canvas template */
body.aipb-canvas-template-active header,
body.aipb-canvas-template-active footer,
body.aipb-canvas-template-active .site-header,
body.aipb-canvas-template-active .site-footer,
body.aipb-canvas-template-active #masthead,
body.aipb-canvas-template-active #colophon,
body.aipb-canvas-template-active #site-header,
body.aipb-canvas-template-active #site-footer,
body.aipb-canvas-template-active .aipb-header-template,
body.aipb-canvas-template-active .aipb-footer-template {
    display: none !important;
}

/* Ensure no padding from admin bar */
body.aipb-canvas-template-active.admin-bar {
    padding-top: 0 !important;
}

/* Admin bar should still be visible if logged in */
body.aipb-canvas-template-active #wpadminbar {
    display: block !important;
}

/* Adjust content for admin bar */
body.aipb-canvas-template-active.admin-bar .aipb-canvas-wrapper {
    margin-top: 32px;
}

@media screen and (max-width: 782px) {
    body.aipb-canvas-template-active.admin-bar .aipb-canvas-wrapper {
        margin-top: 46px;
    }
}