/* --- Embed Launcher & Fullscreen Styles --- */

/* Launcher Overlay */
.embed-launcher {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.embed-launcher.hidden {
    display: none;
}

.launcher-content {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    width: 400px;
}

.launcher-content h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.launcher-content p {
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.btn-pulse {
    animation: btnPulse 2s infinite;
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
}

@keyframes btnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

/* Exit Fullscreen Button */
.btn-exit-fs {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.btn-exit-fs:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.btn-exit-fs.hidden {
    display: none;
}

/* Fullscreen Mode Overrides */
body.fullscreen-mode {
    background-color: var(--primary) !important;
    /* Force background */
    overflow-y: auto;
    /* Allow scrolling simulator */
}

body.fullscreen-mode .simulator-section {
    min-height: 100vh;
    padding-top: 4rem;
    /* Make space for close button */
}

/* Embed Mode Initial State (Before click) */
body.embed-mode .simulator-section {
    display: none;
    /* Hide simulator initially */
}

body.embed-mode.fullscreen-mode .simulator-section {
    display: block !important;
}

/* Responsive tweaks for smaller active windows */
@media (max-width: 480px) {
    .launcher-content {
        padding: 1.5rem;
    }

    .launcher-content h3 {
        font-size: 1.25rem;
    }
}

/* Secondary Link Style */
.btn-text {
    display: inline-block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-text:hover {
    color: var(--white);
    text-decoration: underline;
    background: rgba(255, 255, 255, 0.05);
}

.btn-text.hidden {
    display: none;
}