@import url("base.css");

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5rem;
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0;
}

.brand-name {
    display: inline;
    line-height: 1;
}

.brand-easy {
    color: var(--gold-primary);
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.brand-guestin {
    color: var(--brand-guestin);
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    font-weight: 800;
}

.brand:hover .brand-guestin {
    color: var(--gold-shiny);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.logo-img {
    height: 30px;
    width: auto;
    margin-right: 2px;
}

.nav-actions {
    display: flex;
    gap: 1.7rem;
    align-items: center;
    min-height: 34px;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active { color: var(--gold-primary); }

.btn-outline {
    border: 1px solid var(--gold-primary);
    padding: 8px 15px;
    border-radius: 4px;
    color: var(--gold-primary);
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: black;
}

.nav-cta {
    background: var(--gold-primary);
    color: var(--default-black) !important;
    padding: 0.45rem 1.3rem;
    border-radius: 2px;
    font-weight: 700 !important;
    transition: background 0.2s !important;
}

.nav-cta:hover {
    background: var(--gold-shiny) !important;
}

.profile-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 2px 12px;
    border-radius: 4px;
    border: 1px solid var(--gold-primary);
    transition: 0.2s;
}

.profile-pill:hover {
    background: var(--gold-primary);
    border-color: var(--gold-shiny);
    color: var(--header-bg);
}

.header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50px;
    border: 2px solid var(--electric-blue);
    object-fit: cover;
}

.header-username {
    font-size: 0.9rem;
    font-weight: 500;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--gold-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 2px solid;
    border-image: linear-gradient(to right, transparent, var(--gold-primary), transparent) 1;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.8rem;
    z-index: 999;
    animation: slideDown 0.25s ease-out;
}

.mobile-menu.open {
    display: flex;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mobile-menu .nav-link,
.mobile-menu .btn-outline,
.mobile-menu .nav-cta {
    font-size: 1.1rem;
    padding: 0.75rem 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    width: 100%;
    display: block;
}

.mobile-menu .nav-link:last-child,
.mobile-menu .btn-outline:last-child,
.mobile-menu .nav-cta:last-child {
    border-bottom: none;
}

.mobile-menu .profile-pill {
    padding: 0.6rem 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    width: 100%;
}

@media (max-width: 600px) {
    .header-main {
        padding: 0.8rem 1rem;
        position: sticky;
        top: 0;
    }

    .brand-easy,
    .brand-guestin {
        font-size: 1.4rem;
    }
    .logo-img { height: 28px; }

    .nav-actions { display: none; }

    .hamburger { display: flex; }
}