/* Header - Single-bar dark header */

.site-header {
    background: #1a1a1a;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 0;
    padding-top: 0;
    padding-bottom: 0;
    min-height: 55px;
}

/* Logo */
.header-logo {
    flex-shrink: 0;
    padding: 8px 0;
}

.header-logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
}

.header-logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

.site-name {
    color: #fff !important;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Inline navigation */
.site-navigation {
    flex: 1;
    margin-left: 20px;
}

@media (min-width: 768px) {
    .site-navigation {
        display: block !important;
        background: none;
        position: static;
    }
}

/* Account area */
.header-account {
    position: relative;
    flex-shrink: 0;
    margin-left: auto;
}

.account-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.account-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.account-toggle svg {
    flex-shrink: 0;
}

.account-name {
    font-size: 0.85rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff !important;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.account-link:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.account-link span {
    font-size: 0.85rem;
}

.account-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.register-link {
    background: #c73e3a;
    color: #fff !important;
    font-weight: 500;
}

.register-link:hover {
    background: #a03230 !important;
}

/* Account dropdown */
.account-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    color: #333;
    list-style: none;
    margin: 5px 0 0;
    padding: 8px 0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 100;
}

.account-dropdown.active .account-menu {
    display: block;
}

.account-menu li a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.account-menu li a:hover {
    background: #f5f5f5;
    color: #c73e3a;
}

.account-menu .divider {
    height: 1px;
    background: #e5e5e5;
    margin: 5px 0;
}

/* Mobile menu toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s, opacity 0.3s;
}

/* Hide toggle on desktop */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

/* Hamburger animation when open */
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Header responsive */
@media (max-width: 767px) {
    .account-name {
        display: none;
    }

    .site-navigation {
        display: none;
        background: #1a1a1a;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 999;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        margin-left: 0;
    }

    .site-navigation.js-toggled {
        display: block;
    }
}
