/* Navigation - Header, dropdowns, hamburger menu */

/* Purple announcement banner */
.hf-banner {
    background: var(--hf-purple);
    color: var(--hf-white);
    text-align: center;
    padding: 6px 20px;
    font-size: 13px;
    line-height: 1.4;
}

.hf-banner a {
    color: #d6d6d6;
    text-decoration: underline;
}

.hf-banner:empty {
    padding: 4px 0;
}

/* Main header bar */
.hf-header {
    background: var(--hf-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.hf-header-inner {
    max-width: var(--hf-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 70px;
}

/* Logo */
.hf-logo img {
    height: 55px;
    width: auto;
    display: block;
}

/* Navigation menu */
.hf-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.hf-nav-menu {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}

.hf-nav-menu > li {
    position: relative;
}

.hf-nav-menu > li > a {
    display: block;
    padding: 24px 14px;
    color: var(--hf-dark-gray);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    white-space: nowrap;
}

.hf-nav-menu > li > a:hover,
.hf-nav-menu > li.active > a {
    color: var(--hf-purple);
}

/* Dropdown arrow */
.hf-nav-menu > li.has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-top: 4px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

/* Dropdown menu */
.hf-dropdown {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--hf-white);
    min-width: 240px;
    box-shadow: var(--hf-shadow-lg);
    border-top: 3px solid var(--hf-purple);
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.2s ease;
    z-index: 1001;
    padding: 8px 0;
}

.hf-nav-menu > li:hover > .hf-dropdown,
.hf-nav-menu > li.dropdown-open > .hf-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hf-dropdown li a {
    display: block;
    padding: 10px 20px;
    color: var(--hf-dark-gray);
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.hf-dropdown li a:hover,
.hf-dropdown li a.current {
    background: var(--hf-light-gray);
    color: var(--hf-purple);
}

.hf-dropdown li a.current {
    font-weight: 600;
    border-left: 3px solid var(--hf-purple);
    padding-left: 17px;
}

/* Donate button */
.hf-donate-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--hf-dark-gray);
    color: var(--hf-white) !important;
    border-radius: var(--hf-radius-pill);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    white-space: nowrap;
}

.hf-donate-btn:hover {
    background: #1d2124;
}

/* Hamburger button */
.hf-hamburger {
    display: none;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.hf-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--hf-dark-gray);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hamburger animation when open */
.hf-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hf-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hf-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile styles */
@media (max-width: 1024px) {
    .hf-nav-menu > li > a {
        padding: 24px 10px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .hf-hamburger {
        display: flex;
    }

    .hf-header-inner {
        height: 60px;
    }

    .hf-logo img {
        height: 45px;
    }

    .hf-donate-btn {
        display: none;
    }

    .hf-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--hf-white);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--hf-border);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .hf-nav.open {
        display: block;
    }

    .hf-nav-menu {
        flex-direction: column;
    }

    .hf-nav-menu > li > a {
        padding: 14px 20px;
        border-bottom: 1px solid var(--hf-border);
    }

    .hf-nav-menu > li.has-dropdown > a::after {
        float: right;
        margin-top: 6px;
        transition: transform 0.2s;
    }

    .hf-nav-menu > li.dropdown-open > a::after {
        transform: rotate(180deg);
    }

    .hf-dropdown {
        position: static;
        box-shadow: none;
        border-top: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: var(--hf-light-gray);
        padding: 0;
    }

    .hf-nav-menu > li.dropdown-open > .hf-dropdown {
        display: block;
    }

    .hf-dropdown li a {
        padding: 12px 20px 12px 36px;
        border-bottom: 1px solid var(--hf-border);
    }

    /* Mobile donate link at bottom of menu */
    .hf-nav-donate-mobile {
        display: block;
        padding: 16px 20px;
        text-align: center;
    }

    .hf-nav-donate-mobile a {
        display: inline-block;
        padding: 12px 32px;
        background: var(--hf-dark-gray);
        color: var(--hf-white) !important;
        border-radius: var(--hf-radius-pill);
        font-weight: 600;
        text-transform: uppercase;
        text-decoration: none !important;
    }

    .hf-page-banner {
        padding: 28px 20px;
    }

    .hf-page-banner h1 {
        font-size: 22px;
    }
}
