/* Generic Header/Menubalk CSS for Chronolexografie */

:root {
    --header-height: auto; /* Will be calculated dynamically */
    --header-offset: calc(var(--header-height, 80px) + 1rem); /* Calculated once, reused everywhere */
    
    /* Import color palette from landing page */
    --color-blue-primary: #00A9E0;
    --color-blue-electric: #0080FF;
    --color-white: #F5F5F5;
}

.chronolexografie-header {
    background: var(--color-blue-primary);
    color: var(--color-white);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Add top margin to body to compensate for fixed header */
body {
    margin-top: var(--header-offset) !important;
}

.chronolexografie-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-brand .brand-link {
    color: var(--color-white) !important;
    text-decoration: none !important;
    display: block;
}

.nav-brand .brand-link:hover {
    color: var(--color-white) !important;
    text-decoration: none !important;
}

.nav-brand .brand-link:visited {
    color: var(--color-white) !important;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    display: block;
    line-height: 1.2;
}

.nav-menu {
    margin-top: 0.5rem;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: var(--color-white) !important;
    text-decoration: none !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-link:hover {
    color: var(--color-white) !important;
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none !important;
}

.nav-link:visited {
    color: var(--color-white) !important;
}

.nav-link:focus {
    color: var(--color-white) !important;
    text-decoration: none !important;
}

.nav-link.external::after {
    content: ' ↗';
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 768px) {
    .chronolexografie-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .nav-list {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.25rem 0.5rem;
    }
}