/* Shared site header — kit pages, marketplace, sitemap */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 16, 28, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px) saturate(140%);
}

.site-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.site-brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: linear-gradient(145deg, #4d8dff, #2f6bff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.site-brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.15;
}

.site-brand-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.35px;
    color: #f3f6f8;
}

.site-brand-page {
    font-size: 11px;
    font-weight: 500;
    color: #6b7886;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

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

.site-nav a {
    padding: 6px 11px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #9aa7b2;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover {
    color: #eef2f6;
    background: rgba(255, 255, 255, 0.06);
}

.site-nav a.active {
    color: #fff;
    background: rgba(77, 141, 255, 0.16);
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.site-header-actions .btn-ghost,
.site-header-actions .btn-primary {
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
}

.site-header-actions .btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #c5ced6;
    box-shadow: none;
}

.site-header-actions .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(77, 141, 255, 0.35);
    color: #fff;
    transform: none;
    box-shadow: none;
}

.site-header-actions .btn-primary {
    background: #4d8dff;
    border: none;
    color: #fff;
    box-shadow: none;
}

.site-header-actions .btn-primary:hover {
    background: #5c98ff;
    transform: none;
    filter: none;
    box-shadow: none;
}

.site-header-actions .discord-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 4px 4px 4px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.site-header-actions .discord-user img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.site-header-actions .discord-user span {
    font-size: 12px;
    font-weight: 600;
    color: #d5dde4;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-header-actions .discord-user .btn-ghost {
    padding: 5px 10px;
    font-size: 11px;
}

@media (max-width: 720px) {
    .site-header-inner {
        flex-wrap: wrap;
        padding: 10px 14px;
        gap: 10px;
    }

    .site-nav {
        order: 3;
        flex: 1 1 100%;
        margin: 0 -4px;
        padding: 0 4px 2px;
    }

    .site-brand-page {
        display: none;
    }
}
