/* Header-only CSS for landing page — no global reset, no body overrides */
:root {
    --gold: #C5AE79;
}

.site-header {
    background: #0A0A0A;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 50;
    transition: transform 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

body.has-site-header {
    padding-top: 68px;
}

.site-header__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    height: 68px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

.site-header__nav {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 28px;
    overflow-x: auto;
    scrollbar-width: none;
    min-width: 0;
}

.site-header__nav::-webkit-scrollbar { display: none; }

.site-header__nav a {
    color: rgba(224, 220, 208, 0.80);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s;
    letter-spacing: 0.02em;
}

.site-header__nav a:hover,
.site-header__nav a.active {
    color: var(--gold);
}

.site-header__logo {
    font-family: 'Lora', Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--gold);
    text-decoration: none;
    white-space: nowrap;
}

.site-header__actions {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: flex-end;
}

.site-header__mobile-subnav {
    display: none;
}

.btn-cta {
    padding: 9px 18px;
    background: #891A20;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-cta:hover {
    background: #6E1419;
}

.login-link {
    color: rgba(224, 220, 208, 0.88);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.login-link:hover {
    color: var(--gold);
}

.user-menu-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.notify-btn {
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    color: rgba(224, 220, 208, 0.88);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.notify-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

.user-menu-trigger {
    color: rgba(224, 220, 208, 0.92);
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Pretendard', sans-serif;
}

.menu-caret {
    color: rgba(224, 220, 208, 0.55);
    font-size: 11px;
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    background: #f4f4f4;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    z-index: 120;
}

.user-menu-wrap.open .user-menu-dropdown {
    display: block;
}

.user-menu-top {
    padding: 18px 18px 8px;
    display: flex;
    justify-content: center;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #d8d8d8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-menu-name {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    padding: 0 18px;
    color: #1F1D1A;
}

.user-menu-role {
    text-align: center;
    font-size: 12px;
    color: #888;
    padding: 2px 18px 14px;
}

.user-menu-actions {
    border-top: 1px solid #e0e0e0;
    display: flex;
}

.user-menu-actions > a,
.user-menu-actions > form {
    flex: 1;
    min-width: 0;
}

.user-menu-actions > * + * {
    border-left: 1px solid #e0e0e0;
}

.user-menu-actions a,
.user-menu-actions button {
    display: block;
    width: 100%;
    padding: 12px 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
}

.user-menu-actions form {
    margin: 0;
}

.user-menu-actions a:hover,
.user-menu-actions button:hover {
    background: #e8e8e8;
}

@media (max-width: 767px) {
    body.has-site-header {
        padding-top: 105px;
    }

    .site-header__inner {
        padding: 0 16px;
        height: 56px;
        gap: 8px;
    }

    .site-header__nav {
        display: none;
    }

    .site-header__logo {
        font-size: 18px;
    }

    .site-header__actions {
        gap: 8px;
    }

    .btn-cta {
        padding: 7px 12px;
        font-size: 11px;
    }

    .site-header__mobile-subnav {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
        padding: 8px 12px;
        gap: 4px;
        background: #0A0A0A;
        border-top: 1px solid rgba(255,255,255,0.06);
    }

    .site-header__mobile-subnav::-webkit-scrollbar { display: none; }

    .site-header__mobile-subnav a {
        flex-shrink: 0;
        padding: 7px 14px;
        font-size: 12px;
        font-weight: 500;
        color: rgba(194,191,183,0.9);
        text-decoration: none;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.08);
        white-space: nowrap;
        transition: color 0.2s, background 0.2s;
    }

    .site-header__mobile-subnav a.active {
        background: var(--gold);
        color: #0A0A0A;
        border-color: var(--gold);
    }

    .site-header__mobile-subnav a:hover {
        color: var(--gold);
    }
}
