/* site-header.css — единые стили хедера AURAO */

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 252, 249, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light, #EBE3DA);
    padding: 16px 0;
    transition: padding 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Logo */
.site-header .sh-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary, #1A1614);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    flex-shrink: 0;
}

/* Nav links */
.site-header .sh-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.site-header .sh-nav a {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted, #6B5E57);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 2px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
    position: relative;
}
.site-header .sh-nav a:hover {
    color: var(--text-primary, #1A1614);
    background: var(--bg-warm, #FDF5EE);
}
.site-header .sh-nav a.active {
    color: var(--text-primary, #1A1614);
    font-weight: 600;
}
.site-header .sh-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 12px; right: 12px;
    height: 2px;
    background: var(--accent-gold, #C9A67A);
}

/* Right side */
.site-header .sh-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Wallet chip */
.sh-wallet {
    display: none;
    align-items: center;
    gap: 5px;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-body, #1A1614);
    border: 1px solid var(--border-light, #EBE3DA);
    padding: 5px 10px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: border-color 0.2s, color 0.2s;
    border-radius: 2px;
}
.sh-wallet:hover {
    border-color: var(--accent-gold, #C9A67A);
    color: var(--accent-gold, #C9A67A);
}
body.logged-in .sh-wallet.loaded { display: inline-flex; }

/* Auth link */
.sh-auth-link {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted, #6B5E57);
    text-decoration: none;
    padding: 6px 12px;
    transition: color 0.2s;
}
.sh-auth-link:hover { color: var(--text-primary, #1A1614); }

/* CTA button */
.sh-cta {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #1A1614);
    text-decoration: none;
    padding: 8px 18px;
    border: 1px solid var(--text-primary, #1A1614);
    border-radius: 2px;
    transition: all 0.2s;
    white-space: nowrap;
}
.sh-cta:hover {
    background: var(--text-primary, #1A1614);
    color: var(--text-light, #F5F0EB);
}
.sh-cta-arrow {
    display: inline-block;
    transition: transform 0.2s;
    margin-left: 4px;
}
.sh-cta:hover .sh-cta-arrow { transform: translateX(3px); }

/* User menu */
.sh-user-menu { position: relative; }
.sh-user-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--border-light, #EBE3DA);
    border-radius: 2px;
    padding: 5px 12px;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-body, #1A1614);
    transition: border-color 0.2s;
}
.sh-user-trigger:hover { border-color: var(--accent-gold, #C9A67A); }
.sh-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid var(--border-light, #EBE3DA);
    min-width: 160px;
    z-index: 1001;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.sh-user-dropdown.open { display: block; }
.sh-user-dropdown a {
    display: block;
    padding: 10px 16px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: var(--text-body, #1A1614);
    text-decoration: none;
    transition: background 0.15s;
}
.sh-user-dropdown a:hover { background: var(--bg-warm, #FDF5EE); }

/* Guest / logged-in visibility */
.sh-guest { display: flex; align-items: center; gap: 12px; }
.sh-logged { display: none; align-items: center; gap: 12px; }
body.logged-in .sh-guest { display: none; }
body.logged-in .sh-logged { display: flex; }

/* Burger (mobile) */
.sh-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 4px;
}
.sh-burger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-primary, #1A1614);
    transition: all 0.3s;
}

/* Mobile overlay */
.sh-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 999;
}
.sh-mobile-overlay.open { display: block; }

.sh-mobile-menu {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 280px;
    background: #fff;
    z-index: 1002;
    padding: 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s;
}
.sh-mobile-menu.open {
    display: block;
    transform: translateX(0);
}
.sh-mobile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: none;
    border: 1px solid var(--border-light, #EBE3DA);
    cursor: pointer;
    font-size: 18px;
    color: var(--text-muted, #6B5E57);
    margin-bottom: 24px;
    margin-left: auto;
}
.sh-mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sh-mobile-menu nav a {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-body, #2D2926);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light, #EBE3DA);
}
.sh-mobile-menu nav a.active {
    color: var(--text-primary, #1A1614);
    font-weight: 600;
}
.sh-mobile-menu .sh-mobile-auth {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light, #EBE3DA);
}
.sh-mobile-menu .sh-mobile-auth a {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-body, #2D2926);
    text-decoration: none;
}
.sh-mobile-wallet {
    display: none;
    padding: 10px 0;
    font-size: 13px;
    color: var(--text-muted, #6B5E57);
}
body.logged-in .sh-mobile-wallet.loaded { display: block; }

/* Responsive */
@media (max-width: 900px) {
    .site-header .sh-nav { display: none; }
    .site-header .sh-right { display: none; }
    .sh-burger { display: flex; }
}
