/* ==========================================================================
   Reviews Sorted - Enterprise Header (v8.0)
   ========================================================================== */

.rs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px; /* Increased for premium breathing room */
    padding: 0 var(--rs-space-6);
    background-color: rgba(254, 251, 246, 0.9); /* Surface color with opacity */
    backdrop-filter: blur(12px); /* Glassmorphism effect */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Softer border */
    position: sticky;
    top: 0;
    z-index: var(--rs-z-sticky);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02); /* Softer, premium shadow */
}

.rs-header__brand {
    display: flex;
    align-items: center;
    gap: var(--rs-space-3);
    font-size: var(--rs-font-size-lg);
    font-weight: 800; /* Bold, confident branding */
    color: var(--rs-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: opacity var(--rs-transition-fast);
}

.rs-header__brand:hover {
    opacity: 0.8;
}

.rs-header__search {
    flex-grow: 1;
    max-width: 480px;
    margin: 0 var(--rs-space-8);
    position: relative;
    display: flex;
    align-items: center;
}

.rs-header__search-icon {
    position: absolute;
    left: var(--rs-space-3);
    color: var(--rs-text-muted);
    pointer-events: none;
    opacity: 0.6;
}

.rs-header__search-input {
    width: 100%;
    height: 40px;
    padding: 0 var(--rs-space-3) 0 40px;
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius-md);
    background-color: var(--rs-bg-app);
    font-size: var(--rs-font-size-sm);
    color: var(--rs-text-main);
    display: flex;
    align-items: center;
    transition: background-color var(--rs-transition-fast), border-color var(--rs-transition-fast), box-shadow var(--rs-transition-fast);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.01);
    cursor: pointer;
}

.rs-header__search-input:hover {
    border-color: rgba(0,0,0,0.2);
}

.rs-header__search-input:focus {
    outline: none;
    border-color: var(--rs-primary);
    box-shadow: 0 0 0 3px rgba(35, 65, 55, 0.1);
    background-color: var(--rs-white);
}

.rs-header__search-shortcut {
    position: absolute;
    right: var(--rs-space-3);
    display: flex;
    align-items: center;
    gap: var(--rs-space-1);
    pointer-events: none;
}

.rs-header__search-key {
    background-color: var(--rs-bg-surface);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius-sm);
    padding: var(--rs-space-1) calc(var(--rs-space-2) - 2px);
    font-size: var(--rs-font-size-xs);
    font-weight: 600;
    color: var(--rs-text-muted);
    font-family: monospace;
}

.rs-header__actions {
    display: flex;
    align-items: center;
    gap: var(--rs-space-4);
}

.rs-header__action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--rs-radius-full);
    color: var(--rs-text-muted);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rs-header__action-btn:hover {
    background-color: var(--rs-bg-app);
    color: var(--rs-text-main);
    border-color: var(--rs-border);
}

.rs-header__action-btn:focus-visible {
    outline: none;
    box-shadow: var(--rs-focus-ring);
}

.rs-header__profile {
    display: flex;
    align-items: center;
    gap: var(--rs-space-3);
    cursor: pointer;
    padding: var(--rs-space-1) var(--rs-space-3) var(--rs-space-1) var(--rs-space-1);
    border-radius: var(--rs-radius-pill);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.rs-header__profile:hover,
.rs-header__profile:focus-visible {
    background-color: var(--rs-bg-app);
    border-color: var(--rs-border);
    outline: none;
}
.rs-header__profile:focus-visible {
    box-shadow: var(--rs-focus-ring);
}

.rs-header__avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--rs-radius-full);
    background: linear-gradient(135deg, var(--rs-primary), var(--rs-primary-dark));
    color: var(--rs-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--rs-font-size-md);
    font-weight: 700;
    box-shadow: var(--rs-shadow-sm);
}

.rs-header__user-info {
    display: flex;
    flex-direction: column;
}

.rs-header__user-name {
    font-size: var(--rs-font-size-sm);
    font-weight: 600;
    color: var(--rs-text-main);
    line-height: 1.2;
}

.rs-header__user-role {
    font-size: var(--rs-font-size-xs);
    color: var(--rs-text-muted);
    font-weight: 500;
}
