/**
 * ROUGE VINTAGE-INDUSTRIAL URBAN LOUNGE — HEADER STYLES (REDESIGNED)
 * Main Color: #770b24 with Gold Accents
 * Mobile-First Responsive
 */

.rg-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--rg-header-h);
    background: rgba(17, 13, 16, 0.92);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--rg-primary-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(119, 11, 36, 0.35);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.rg-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

@media (min-width: 640px) {
    .rg-header__inner {
        gap: 18px;
    }
}

/* Brand Link with Sculpted Medallion Seal */
.rg-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--rg-parchment);
    transition: transform var(--rg-trans-fast);
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .rg-header__brand {
        gap: 12px;
    }
}

.rg-header__brand:hover {
    transform: translateY(-1px);
}

.rg-header__seal-frame {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--rg-gold) 0%, var(--rg-primary) 50%, var(--rg-gold-dark) 100%);
    box-shadow: 0 0 14px var(--rg-primary-glow), 0 0 8px var(--rg-gold-glow);
    flex-shrink: 0;
    overflow: hidden;
    transition: box-shadow var(--rg-trans-smooth);
}

@media (min-width: 640px) {
    .rg-header__seal-frame {
        width: 44px;
        height: 44px;
    }
}

.rg-header__brand:hover .rg-header__seal-frame {
    box-shadow: 0 0 22px var(--rg-primary-glow), 0 0 14px var(--rg-gold-glow);
}

.rg-header__seal-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.rg-header__titles {
    display: flex;
    flex-direction: column;
}

.rg-header__wordmark {
    font-family: var(--rg-font-display);
    font-size: clamp(1.1rem, 3.8vw, 1.35rem);
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.1;
    color: #FAF7F2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.rg-header__submark {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--rg-gold);
    text-transform: uppercase;
}

@media (max-width: 380px) {
    .rg-header__submark {
        display: none;
    }
}

/* Active Table Indicator */
.rg-header__table-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(119, 11, 36, 0.4);
    border: 1px solid var(--rg-primary-bright);
    border-radius: var(--rg-radius-pill);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--rg-gold-light);
    box-shadow: 0 0 14px var(--rg-primary-glow-soft);
    white-space: nowrap;
}

@media (min-width: 640px) {
    .rg-header__table-pill {
        gap: 8px;
        padding: 6px 14px;
        font-size: 0.82rem;
    }
}

.rg-header__table-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rg-gold);
    box-shadow: 0 0 8px var(--rg-gold);
    animation: rgBlink 1.8s infinite;
}

@keyframes rgBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.85); }
}

/* Desktop Navigation */
.rg-header__nav {
    display: none;
    align-items: center;
    gap: 24px;
}

@media (min-width: 860px) {
    .rg-header__nav {
        display: flex;
    }
}

.rg-header__link {
    font-family: var(--rg-font-sans);
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--rg-parchment-soft);
    text-decoration: none;
    padding: 6px 4px;
    position: relative;
    transition: color var(--rg-trans-fast);
}

.rg-header__link:hover,
.rg-header__link.is-active {
    color: var(--rg-gold-light);
}

.rg-header__link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--rg-primary-bright), var(--rg-gold));
    box-shadow: 0 0 8px var(--rg-primary-glow);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--rg-trans-smooth);
}

.rg-header__link:hover::after,
.rg-header__link.is-active::after {
    transform: scaleX(1);
}

/* Header Actions */
.rg-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 640px) {
    .rg-header__actions {
        gap: 10px;
    }
}

.rg-header__action-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: var(--rg-radius-md);
    background: rgba(32, 24, 29, 0.75);
    border: 1px solid var(--rg-primary-border);
    color: var(--rg-parchment);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    touch-action: manipulation;
    transition: all var(--rg-trans-smooth);
    position: relative;
}

@media (min-width: 640px) {
    .rg-header__action-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 1.05rem;
    }
}

.rg-header__action-btn:hover,
.rg-header__action-btn:active {
    background: rgba(119, 11, 36, 0.35);
    border-color: var(--rg-primary-bright);
    color: #FFFFFF;
    box-shadow: 0 0 18px var(--rg-primary-glow);
}

.rg-header__cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #c41c45 0%, #770b24 100%);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 19px;
    height: 19px;
    border-radius: var(--rg-radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 12px rgba(196, 28, 69, 0.7);
    border: 1px solid var(--rg-gold);
}
