/* SME360 Cinematic AI Fullscreen Mode */
:root {
    --ai-cyan: #00f5ff;
    --ai-deep-bg: rgba(5, 8, 17, 0.98);
}

#ai-fullscreen-wrapper {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: radial-gradient(circle at center, rgba(14, 21, 41, 0.95), #000);
    backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
}

#ai-fullscreen-wrapper.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: all;
}

/* Background Scan Lines */
#ai-fullscreen-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

/* AI Mode Label */
.ai-mode-label {
    position: absolute;
    top: 40px;
    left: 50px;
    color: var(--ai-cyan);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ai-mode-label::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--ai-cyan);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--ai-cyan);
    animation: aiPulse 1.5s infinite;
}

@keyframes aiPulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(1); opacity: 0.5; }
}

/* Sound visualization bars */
.ai-audio-viz {
    position: absolute;
    bottom: 40px;
    left: 50px;
    display: flex;
    gap: 4px;
    height: 30px;
    align-items: flex-end;
}

.viz-bar {
    width: 3px;
    background: var(--ai-cyan);
    height: 10px;
    animation: vizGrowth 1s infinite ease-in-out;
}

@keyframes vizGrowth { 
    0%, 100% { height: 10px; } 
    50% { height: 25px; } 
}

/* Body Blur Effect & Layout Freeze */
body.ai-active-blur {
    overflow: hidden !important;
}

body.ai-active-blur > *:not(#ai-fullscreen-wrapper) {
    filter: blur(15px);
    transform: scale(0.96);
    transition: 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Hologram Assistant Container - TRUE FULLSCREEN OVERRIDE */
#ai-assistant-fullscreen-container {
    width: 100vw !important;
    height: 100vh !important;
    padding: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    z-index: 5;
}

#ai-assistant-fullscreen-container .sme-sidebar {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 1400px !important; /* Cap at ultra-wide, but fills screen */
    max-height: 90vh !important;
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(30px) !important;
    border: 1px solid rgba(0, 245, 255, 0.3) !important;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.8), inset 0 0 50px rgba(0, 245, 255, 0.05) !important;
    border-radius: 40px !important;
    visibility: visible !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
}

/* Force internal content to expand */
#ai-assistant-fullscreen-container .ai-content-wrapper {
    flex: 1 !important;
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    gap: 30px !important;
    padding: 20px !important;
}

#ai-assistant-fullscreen-container .ai-tab-content {
    flex: 1 !important;
    width: 100% !important;
    max-width: none !important;
}

#ai-assistant-fullscreen-container .ai-chat-input-area {
    width: 100% !important;
    max-width: 900px !important;
    margin: 20px auto !important;
}

#ai-assistant-fullscreen-container .ai-chat-messages {
    flex: 1 !important;
    height: auto !important;
    max-height: none !important;
}

/* Hologram Entry Animation */
.active #ai-assistant-fullscreen-container {
    animation: hologramAppear 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes hologramAppear {
    0% { opacity: 0; transform: scale(0.9) translateY(30px); filter: blur(15px); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

/* Close Button Override */
.sme-sidebar .close-btn {
    top: 40px !important;
    right: 40px !important;
    font-size: 2rem !important;
    color: var(--ai-cyan) !important;
    opacity: 0.6 !important;
    z-index: 100;
}
.sme-sidebar .close-btn:hover { opacity: 1 !important; }
