/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0B1120;
}

::-webkit-scrollbar-thumb {
    background: #283039;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2b8cee;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Language Selector */
.language-selector-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.language-selector .flag-icon {
    font-size: 1.2rem;
    cursor: default;
    filter: grayscale(0.2);
    transition: all 0.3s ease;
}

.language-selector .flag-icon:hover {
    filter: grayscale(0);
    transform: scale(1.1);
}

.language-selector .divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

/* Examples carousel */
.examples-carousel {
    scrollbar-width: none;
}

.examples-carousel::-webkit-scrollbar {
    display: none;
}

.examples-carousel-progress {
    width: 100%;
    max-width: 420px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.examples-carousel-progress-bar {
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #2b8cee, #10b981);
    transform-origin: left;
    transform: scaleX(0);
}

.examples-carousel-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    border: 1px solid #1a6bb5;
    background: #2b8cee;
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.6), 0 0 18px rgba(43, 140, 238, 0.45);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}

.examples-carousel-btn::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 1px solid rgba(43, 140, 238, 0.6);
    opacity: 0;
    transition: opacity 200ms ease;
}

.examples-carousel-btn:hover {
    transform: translateY(-2px);
    border-color: #1a6bb5;
    background: #1a6bb5;
    box-shadow: 0 16px 32px rgba(2, 6, 23, 0.65), 0 0 26px rgba(43, 140, 238, 0.55);
}

.examples-carousel-btn:hover::before {
    opacity: 1;
}

.examples-carousel-btn:active {
    transform: translateY(0);
}

.examples-carousel-btn:focus-visible {
    outline: 2px solid #2b8cee;
    outline-offset: 3px;
}

.examples-carousel-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.examples-carousel-btn .material-symbols-outlined {
    font-size: 1.5rem;
    font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 24;
}

.light .examples-carousel-btn {
    background: #2b8cee;
    color: #ffffff;
    border: 1px solid #1a6bb5;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.2), 0 0 18px rgba(43, 140, 238, 0.35);
}

.light .examples-carousel-btn::before {
    border-color: rgba(43, 140, 238, 0.6);
}

.examples-device {
    opacity: 0;
    translate: 0 16px;
    will-change: opacity, translate;
}

.examples-slide.is-active .examples-device {
    animation: examplesDeviceIn 700ms ease-out both;
}

.examples-slide.is-active .examples-device--mobile {
    animation-delay: 20ms;
}

@keyframes examplesDeviceIn {
    to {
        opacity: 1;
        translate: 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .examples-device {
        opacity: 1;
        translate: 0 0;
        animation: none !important;
    }
}
