
.advanced-content-container {
    border: 2px solid #333;
    position: relative;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.advanced-content-header {
    background: #333;
    color: #00ff41;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: bold;
    border-bottom: 1px solid #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

.advanced-content-title {
    flex: 1;
}

.advanced-content-controls {
    display: flex;
    gap: 5px;
}

.advanced-content-btn {
    background: #444;
    border: 1px solid #666;
    color: #00ff41;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-family: 'Courier New', monospace;
}

.advanced-content-btn:hover {
    background: #555;
    color: #00ff00;
    transform: scale(1.1);
}

/* Content area - NO styling applied, completely neutral */
.advanced-content-body {
    /* Only functional styles, no visual styling */
    overflow: auto;
}

/* Auto height for URL containers */
.url-embed-container .advanced-content-body {
    min-height: 300px; /* Fallback minimum */
    max-height: 90vh; /* Prevent excessive height */
}

.advanced-content-container.minimized .advanced-content-body {
    display: none;
}

.advanced-content-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    background: #fff; /* Default background for fullscreen */
}

.advanced-content-fullscreen-header {
    background: #333;
    color: #00ff41;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 2px solid #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    flex-shrink: 0; /* Prevent header from shrinking */
}

/* Fullscreen content area - NO styling applied */
.advanced-content-fullscreen-body {
    flex: 1;
    overflow: auto;
    /* No styling - let content decide everything */
}

.advanced-content-fullscreen-overlay .close-btn {
    background: #644 !important;
    width: 25px !important;
    height: 25px !important;
    font-size: 16px !important;
}

.advanced-content-fullscreen-overlay .close-btn:hover {
    background: #755 !important;
    color: #ff4444 !important;
}

/* Responsive adjustments - only for block controls */
@media (max-width: 768px) {
    .advanced-content-header {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .advanced-content-btn {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
    
    /* Mobile height adjustments for auto height */
    .url-embed-container[data-height='auto'] .advanced-content-body {
        height: 50vh !important;
    }
}

@media (max-width: 480px) {
    .url-embed-container[data-height='auto'] .advanced-content-body {
        height: 40vh !important;
    }
}

/* Hide original content when in fullscreen to prevent conflicts */
.advanced-content-container.fullscreen-active .advanced-content-body {
    display: none;
}

/* URL Block specific styles */
.advanced-content-body iframe {
    display: block;
    width: 100%;
    border: none;
}

/* Auto-resize iframe styles */
.auto-resize-iframe {
    transition: height 0.3s ease;
}

/* Responsive height adjustments */
.url-embed-container[data-height='auto'] .advanced-content-body {
    height: 70vh;
}

@media (min-width: 1200px) {
    .url-embed-container[data-height='auto'] .advanced-content-body {
        height: 75vh;
    }
}

@media (max-width: 1024px) {
    .url-embed-container[data-height='auto'] .advanced-content-body {
        height: 60vh;
    }
}
