/* ====================
   Fullscreen Modal Styles
   ==================== */

.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 300ms ease;
}

.fullscreen-modal.active {
    display: flex;
    opacity: 1;
}

.fullscreen-content {
    width: 90%;
    max-width: 1200px;
    height: 90%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 4.5rem 2rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Action buttons container */
.fullscreen-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.75rem;
    z-index: 10001;
}

/* Copy button */
.copy-fullscreen {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 300ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-fullscreen:hover {
    background: #6366f1;
    color: white;
    transform: scale(1.1);
}

[data-theme="dark"] .copy-fullscreen {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.3);
}

[data-theme="dark"] .copy-fullscreen:hover {
    background: #8b5cf6;
    color: white;
}

/* Close button */
.close-fullscreen {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 300ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-fullscreen:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

/* Scrollable output */
.fullscreen-output {
    font-family: 'SF Mono', 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow-y: auto;
    overflow-x: auto;
    flex: 1;
    min-height: 0;
}

/* Custom scrollbar for fullscreen output */
.fullscreen-output::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.fullscreen-output::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.fullscreen-output::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.fullscreen-output::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
    background-clip: padding-box;
}

[data-theme="dark"] .fullscreen-output::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    background-clip: padding-box;
}

[data-theme="dark"] .fullscreen-output::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
    background-clip: padding-box;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .fullscreen-content {
        width: 95%;
        height: 95%;
        padding: 4rem 1rem 1rem;
    }

    .fullscreen-output {
        font-size: 0.85rem;
        padding: 1rem;
    }

    .fullscreen-actions {
        gap: 0.5rem;
    }

    .copy-fullscreen,
    .close-fullscreen {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}