/* Premium Landing ↔ Demo Toggle Switch */

.view-toggle-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    font-family: 'Space Grotesk', sans-serif;
    pointer-events: auto;
}

.view-toggle {
    display: flex;
    align-items: center;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid #292524;
    border-radius: 100px;
    padding: 6px;
    gap: 6px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.toggle-option {
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: #A8A29E;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Hide the "Ops-Deck" button on desktop to avoid duplicate logo appearance */
.toggle-option:first-child {
    display: none;
}

.toggle-option:hover {
    color: #F5F5F4;
}

.toggle-option.active {
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    color: #0A0A0A;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.toggle-option.active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Auto-animation state */
.view-toggle.animating .toggle-option {
    pointer-events: none;
}

.view-toggle.animating .toggle-option.active {
    animation: toggle-flip 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes toggle-flip {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/* Mobile responsive */
@media (max-width: 640px) {
    .view-toggle-container {
        top: 12px;
    }

    .view-toggle {
        padding: 4px;
        gap: 4px;
    }

    .toggle-option {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* Show "Ops-Deck" button on mobile for clarity */
    .toggle-option:first-child {
        display: block;
    }
}

/* View transition container */
.view-container {
    opacity: 1;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-container.transitioning {
    opacity: 0;
}

/* CTA button near toggle */
.toggle-cta {
    position: fixed;
    top: 20px;
    right: 32px;
    z-index: 100;
}

.toggle-cta a {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    color: #0A0A0A;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.toggle-cta a:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

@media (max-width: 768px) {
    .toggle-cta {
        top: 12px;
        right: 16px;
    }

    .toggle-cta a {
        padding: 8px 16px;
        font-size: 13px;
    }
}
