/* Header Styles - Shared Component */
header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    max-width: 150px;
    height: auto;
    width: auto;
    display: block;
    /* Apply blue tint to match site theme */
    filter: brightness(0) saturate(100%) invert(27%) sepia(96%) saturate(2598%) hue-rotate(210deg) brightness(95%) contrast(92%);
    /* This converts the logo to the primary blue color (#2563eb) */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-primary);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    line-height: 1.5;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-content {
    top: 0;
    right: 100%;
    left: auto;
    min-width: 280px;
    margin-right: 0.25rem;
    z-index: 1001;
}

.dropdown-arrow {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .dropdown-content {
        position: fixed;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 300px;
        white-space: normal;
    }

    .dropdown-item {
        white-space: normal;
        word-wrap: break-word;
    }

    .dropdown-submenu .dropdown-content {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        border: none;
        background: var(--bg-secondary);
        margin-top: 0.5rem;
        margin-left: 0;
        min-width: auto;
    }
}
