/* Inter Font Face Declarations */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100;
    font-display: swap;
    src: url('/assets/fonts/inter-100.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 200;
    font-display: swap;
    src: url('/assets/fonts/inter-200.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/assets/fonts/inter-300.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/assets/fonts/inter-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/inter-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/inter-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/assets/fonts/inter-800.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('/assets/fonts/inter-900.woff2') format('woff2');
}

/* Header responsive heights */
#main-header {
    transition: height 200ms cubic-bezier(0.2, 0.6, 0.2, 1);
    margin-top: 0 !important;
    top: 0 !important;
}

/* Prevent header from overlapping with browser UI */
body {
    margin: 0;
    padding: 0;
}

/* Ensure header content doesn't overlap */
#main-header > div {
    position: relative;
}

/* Prevent text shadow artifacts on logo */
#main-header .text-2xl {
    text-shadow: none !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    #main-header,
    #main-header *,
    .mobile-menu-transition,
    .mobile-dropdown-transition {
        transition: none !important;
        animation: none !important;
    }
}

/* Mobile menu transitions */
.mobile-menu-transition {
    transition: opacity 200ms cubic-bezier(0.2, 0.6, 0.2, 1), transform 200ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.mobile-dropdown-transition {
    transition: opacity 200ms cubic-bezier(0.2, 0.6, 0.2, 1), transform 200ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* Active/Current page indicator for navigation links */
nav[role="navigation"] a[href].active::after,
nav[role="navigation"] a[href]:focus::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 16px);
    height: 2px;
    background-color: #14B8A6;
    border-radius: 1px;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #22D3EE;
    outline-offset: 2px;
}

/* Dark theme focus */
[data-theme="dark"] a:focus-visible,
[data-theme="dark"] button:focus-visible {
    outline-color: #67E8F9;
}

/* Theme Switcher Buttons */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #E5E7EB;
    cursor: pointer;
    transition: all 120ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.theme-toggle-btn svg {
    display: block;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
}

.theme-toggle-btn:focus-visible {
    outline: 2px solid #67E8F9;
    outline-offset: 2px;
}

.theme-toggle-btn.active {
    background-color: rgba(20, 184, 166, 0.2);
    border-color: #14B8A6;
    color: #14B8A6;
}

.theme-toggle-btn.active:hover {
    background-color: rgba(20, 184, 166, 0.3);
    border-color: #0EA5A3;
    color: #0EA5A3;
}

/* Dark theme styles for theme switcher buttons */
[data-theme="dark"] .theme-toggle-btn {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: #E5E7EB;
}

[data-theme="dark"] .theme-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
}

[data-theme="dark"] .theme-toggle-btn.active {
    background-color: rgba(20, 184, 166, 0.2);
    border-color: #14B8A6;
    color: #14B8A6;
}

[data-theme="dark"] .theme-toggle-btn.active:hover {
    background-color: rgba(20, 184, 166, 0.3);
    border-color: #0EA5A3;
    color: #0EA5A3;
}

