/* Ghost Portal Customizations */

/* Hide "Powered by Ghost" in Portal - Optimized */
.gh-portal-powered,
.gh-portal-poweredby,
.gh-portal-account-footer,
.gh-portal-popup-container footer,
.gh-portal-root footer {
    display: none !important;
    visibility: hidden !important;
}

/* Additional Portal styling */
.gh-portal-container {
    font-family:
        "Arial",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
}

/* Ensure Portal works correctly */
[data-portal-button],
a[href*="#/portal/"] {
    cursor: pointer;
}

/* Optimized Portal z-index - reduced for better performance */
.gh-portal-root {
    z-index: 9999 !important;
}

iframe[data-frame="portal"] {
    z-index: 9999 !important;
}

/* Mobile-specific portal fixes */
@media (max-width: 768px) {
    /* Ensure mobile menu doesn't block portal */
    .site-nav {
        z-index: 1001 !important;
    }
    
    /* Portal above mobile menu */
    .gh-portal-root,
    iframe[data-frame="portal"] {
        z-index: 1002 !important;
    }
}

/* Performance optimizations */
.gh-portal-root {
    will-change: auto !important; /* Prevent unnecessary GPU layers */
}

/* Reduce animation complexity on mobile */
@media (max-width: 768px) {
    .gh-portal-root * {
        animation-duration: 0.2s !important;
        transition-duration: 0.2s !important;
    }
}

/* Prevent backdrop filter performance issues */
@media (max-width: 768px) {
    .gh-portal-backdrop {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(0, 0, 0, 0.7) !important;
    }
}