/* Shared styles - extracted from inline CSS to reduce page size */

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #e2e5ff; }
::-webkit-scrollbar-thumb { background: #b8bfff; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ba3ff; }
html { scroll-behavior: smooth; }
@media (max-width: 1023px) { html { font-size: 90%; } }

/* Glass morphism */
.glass-dark {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 32px rgba(134, 145, 250, 0.15);
}
@media (max-width: 1023px) {
    .glass-dark {
        background: rgba(255, 255, 255, 0.82);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
}

/* Gradient utilities */
.gradient-text {
    background: linear-gradient(135deg, #8691fa 0%, #152b70 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-highlight {
    background: linear-gradient(135deg, #8691fa 0%, #152b70 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    display: inline;
}

.gradient-highlight-glow {
    background: linear-gradient(135deg, #8691fa 0%, #152b70 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    display: inline;
    filter: drop-shadow(0 0 10px rgba(134, 145, 250, 0.5));
}

.gradient-border {
    position: relative;
}
.gradient-border::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #8691fa, #152b70);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Navigation */
.glass-nav {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 32px rgba(134, 145, 250, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    will-change: transform;
    transform: translateZ(0);
}
@media (max-width: 1023px) {
    .glass-nav {
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: #64748b;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.nav-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(134, 145, 250, 0.3), rgba(21, 43, 112, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-icon:hover { color: #152b70; transform: scale(1.1); }
.nav-icon:hover::before { opacity: 1; }

.nav-icon.active {
    background: linear-gradient(135deg, rgba(134, 145, 250, 0.35), rgba(21, 43, 112, 0.25));
    color: #152b70;
    box-shadow: 0 4px 15px rgba(134, 145, 250, 0.3);
}

.nav-icon .material-symbols-outlined {
    font-size: 24px;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .nav-icon::after {
        content: attr(title);
        position: absolute;
        left: calc(100% + 12px);
        top: 50%;
        transform: translateY(-50%) translateX(-5px);
        background: rgba(30, 27, 46, 0.9);
        color: white;
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }
    .nav-icon:hover::after {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Skip to content */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sr-only:focus { position: fixed; top: 10px; left: 10px; width: auto; height: auto; padding: 12px 24px; margin: 0; overflow: visible; clip: auto; white-space: normal; background: #152b70; color: white; font-weight: 700; border-radius: 8px; z-index: 9999; font-size: 14px; }

/* Focus visible */
:focus-visible { outline: 2px solid #8691fa; outline-offset: 2px; border-radius: 4px; }
