/* Base Styles */
[v-cloak] { display: none; }
html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e2e8f0;
    background: linear-gradient(180deg, #0a0514 0%, #0d0a1f 50%, #0a0514 100%);
    line-height: 1.6;
    overflow-x: hidden;
}
html {
    overflow-x: hidden;
}

/* Defer below-the-fold rendering so first paint stays focused on the hero */
.below-fold {
    content-visibility: auto;
    contain-intrinsic-size: 1000px;
}

/* Vue Transitions */
.fade-enter-active, .fade-leave-active { 
    transition: opacity 0.3s ease; 
}
.fade-enter-from, .fade-leave-to { 
    opacity: 0; 
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #0f0a1f;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a78bfa 0%, #f472b6 100%);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.8);
}

/* Selection */
::selection {
    background: rgba(139, 92, 246, 0.4);
    color: white;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Prose Styles */
.content-box p {
    margin-bottom: 1rem;
}
.content-box h3 {
    color: #ffffff;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.content-box ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
.content-box li {
    margin-bottom: 0.5rem;
}
.content-box strong {
    color: #ffffff;
}
.content-box a {
    color: #a855f7;
    text-decoration: underline;
}

.content-box h1,
.content-box h2,
.content-box h3 {
    color: #ffffff;
    line-height: 1.25;
}

.content-box h1 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
}

.content-box ul {
    list-style: disc;
}

.content-box ol {
    list-style: decimal;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-box li {
    margin-bottom: 0.5rem;
}

/* Language Switcher Styles */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.lang-switcher button {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.lang-switcher button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.lang-switcher button:hover::before {
    left: 100%;
}

.lang-switcher button.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f97316 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5), 0 0 30px rgba(236, 72, 153, 0.3);
    transform: translateY(-1px);
}

.lang-switcher button.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.lang-switcher button:not(.active) {
    background: transparent;
    color: #9ca3af;
}

.lang-switcher button:not(.active):hover {
    background: rgba(168, 85, 247, 0.15);
    color: #e2e8f0;
    transform: translateY(-1px);
}

.lang-switcher button:active {
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Compact footer layout on phones */
    footer .max-w-7xl > .grid {
        gap: 1.25rem;
        margin-bottom: 1.5rem;
    }

    footer .max-w-7xl > .grid > div:first-child {
        grid-column: 1 / -1;
    }

    footer .max-w-7xl > .grid > div:nth-child(2),
    footer .max-w-7xl > .grid > div:nth-child(3) {
        padding: 0;
    }

    footer .max-w-7xl > .grid > div:nth-child(2) ul,
    footer .max-w-7xl > .grid > div:nth-child(3) ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem 0.75rem;
    }

    footer .max-w-7xl > .grid > div:nth-child(2) li,
    footer .max-w-7xl > .grid > div:nth-child(3) li {
        margin: 0;
    }

    footer h4.text-2xl {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    footer h4.text-xl,
    footer h4.text-lg,
    footer h4.text-sm {
        margin-bottom: 0.75rem;
    }

    footer p {
        line-height: 1.55;
    }

    footer .max-w-7xl > .grid > div:first-child p {
        max-width: none;
        font-size: 0.95rem;
    }

    footer .max-w-7xl > .grid > div:nth-child(2),
    footer .max-w-7xl > .grid > div:nth-child(3) {
        background: rgba(15, 10, 31, 0.55);
        border: 1px solid rgba(139, 92, 246, 0.18);
        border-radius: 16px;
        padding: 1rem;
    }

    footer .max-w-7xl > .grid > div:nth-child(2) h4,
    footer .max-w-7xl > .grid > div:nth-child(3) h4 {
        margin-bottom: 0.5rem;
    }

    .lang-switcher {
        gap: 4px;
        padding: 3px;
    }
    
    .lang-switcher button {
        padding: 6px 10px;
        font-size: 11px;
        letter-spacing: 0.3px;
    }

    .below-fold {
        contain-intrinsic-size: 900px;
    }
}
