/* ============================================
   UNIFIED HEADER STYLES FOR ALL PAGES
   This file ensures identical header appearance
   across the entire website
   ============================================ */

/* Mobile header spacing - Consistent across all pages */
@media (max-width: 480px) {
    nav .nav-container,
    .navbar .nav-container,
    .nav-container {
        padding: 0 1.5rem !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    .nav-right {
        gap: 1.5rem !important;
        margin-left: 0.5rem !important;
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }
    
    .nav-logo {
        flex-shrink: 0 !important;
    }
    
    nav,
    .navbar {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Clean theme toggle button - Unified across all pages */
#theme-toggle,
.theme-toggle {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    border: 1px solid var(--border-color) !important;
    background: var(--bg-secondary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

#theme-toggle:hover,
.theme-toggle:hover {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    transform: scale(1.05) !important;
}

#theme-toggle:hover .theme-icon,
.theme-toggle:hover .theme-icon {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.theme-icon {
    color: var(--text-primary) !important;
    stroke: var(--text-primary) !important;
    transition: all 0.3s ease !important;
}

/* Show/hide icons based on theme */
[data-theme="dark"] .sun-icon {
    display: block !important;
}

[data-theme="dark"] .moon-icon {
    display: none !important;
}

:not([data-theme="dark"]) .sun-icon,
[data-theme="light"] .sun-icon {
    display: none !important;
}

:not([data-theme="dark"]) .moon-icon,
[data-theme="light"] .moon-icon {
    display: block !important;
}

