/* Top Utility Bar */
.top-utility-bar {
    background: var(--c-text-primary);
    color: white;
    height: 36px;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.util-date {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
}

.util-divider {
    color: rgba(255, 255, 255, 0.2);
}

.util-link {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.util-link:hover {
    color: white;
}

.social-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

/* Main Header V2 */
.site-header-v2 {
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 998;
    box-shadow: var(--shadow-soft);
}

.header-main-v2 {
    height: 90px;
    display: grid;
    grid-template-columns: 280px 1fr auto;
    gap: 40px;
    align-items: center;
}

/* Brand V2 */
.brand-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon-v2 {
    width: 48px;
    height: 48px;
    background: var(--grad-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.brand-text-v2 {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1;
}

.brand-name span {
    color: var(--acc-primary);
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--c-text-tertiary);
    font-weight: 500;
}

/* Search Bar */
.header-search {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-input {
    width: 100%;
    height: 48px;
    padding: 0 48px 0 100px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--rad-pill);
    font-size: 0.9rem;
    font-family: var(--font-stack);
    background: var(--c-surface-hover);
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--acc-primary);
    background: var(--c-surface);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-text-tertiary);
    pointer-events: none;
}

.search-kbd {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--c-text-tertiary);
    font-family: monospace;
}

/* Header Actions V2 */
.header-actions-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--c-border);
    background: var(--c-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-sec);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.header-btn:hover {
    background: var(--c-surface-hover);
    border-color: var(--acc-primary);
    color: var(--acc-primary);
    transform: translateY(-2px);
}

.header-btn .badge {
    position: absolute;
    top: -4px;
    left: -4px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.btn-premium {
    background: var(--grad-primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--rad-pill);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.2s;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Navigation V2 */
.main-nav-v2 {
    background: var(--c-surface-hover);
    border-top: 1px solid var(--c-border);
    height: 56px;
    align-content: end;
}

.nav-wrapper {
    display: flex;
    gap: 4px;
    height: 100%;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-text-sec);
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.nav-item svg {
    opacity: 0.7;
}

.nav-item:hover {
    color: var(--c-text-primary);
    background: rgba(59, 130, 246, 0.05);
}

.nav-item:hover svg {
    opacity: 1;
}

.nav-item.active {
    color: var(--acc-primary);
    border-bottom-color: var(--acc-primary);
    background: var(--c-surface);
}

/* Responsive Header */
@media (max-width: 1024px) {
    .header-main-v2 {
        grid-template-columns: auto 1fr auto;
        gap: 20px;
    }

    .header-search {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .top-utility-bar {
        display: none;
    }

    .header-main-v2 {
        grid-template-columns: 1fr auto;
        height: 70px;
        gap: 16px;
    }

    .brand-icon-v2 {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .brand-tagline {
        display: none;
    }

    .header-search,
    .main-nav-v2,
    .btn-premium {
        display: none;
    }

    .header-actions-v2 {
        gap: 8px;
    }

    .header-btn {
        width: 40px;
        height: 40px;
    }
}