/* ─────────────────────────────────────────────────────────────────────
   ROBEL PREMIUM HEADER PILLS (Calmer & Minimalist)
   ───────────────────────────────────────────────────────────────────── */

:root {
    --pill-bg: #f8f9fa;
    --pill-border: rgba(0, 0, 0, 0.04);
    --pill-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.header-pills-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 10px;
}

/* Base Pill Style - High Specificity with !important to force consistency */
header .header-pill {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: #f1f1f1 !important;
    border: none !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    height: 44px !important;
    position: relative !important;
    box-shadow: none !important;
    outline: none !important;
}

header .header-pill:hover {
    background: #e5e5e5 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Language Pill Specifics */
header .lang-pill {
    padding: 5px 12px !important;
}

header .pill-flag-wrap {
    width: 24px !important;
    height: 18px !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    display: flex !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

header .pill-flag {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

header .pill-text {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 0 4px !important;
}

/* Auth/User Pill Specifics - Exact Match for Screenshot */
header .auth-pill {
    padding: 4px 6px 4px 18px !important;
    gap: 14px !important;
}

header .auth-pill .pill-arrow {
    font-size: 0.85rem !important;
    color: #555 !important;
}

header .pill-user-icon {
    width: 34px !important;
    height: 34px !important;
    background: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #333 !important;
    font-size: 1.1rem !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
}

header .header-pill:hover .pill-user-icon {
    background: #fff !important;
    color: var(--gold-main, #c9a23f) !important;
}

/* Dropdown Menu */
.pill-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    text-align: right;
}

[dir="ltr"] .pill-dropdown {
    right: auto;
    left: 0;
    text-align: left;
}

.header-pill.active .pill-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-title {
    padding: 0 20px 10px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: #f1f5f9;
}

.dropdown-item.active {
    color: #c9a23f;
}

.item-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #fff;
    transition: all 0.2s ease;
}

.dropdown-item.active .item-check {
    background: #c9a23f;
    border-color: #c9a23f;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .header-pills-container {
        gap: 6px;
        margin: 0;
    }

    header .header-pill {
        height: 32px !important;
        padding: 2px 6px !important;
    }

    header .auth-pill {
        padding: 2px 2px 2px 8px !important;
        gap: 4px !important;
    }

    header .pill-user-icon {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.9rem !important;
    }

    header .pill-flag-wrap {
        width: 20px !important;
        height: 14px !important;
    }

    header .pill-text {
        font-size: 0.75rem !important;
        margin: 0 2px !important;
    }

    header .pill-arrow {
        font-size: 0.5rem !important;
    }

    .pill-dropdown {
        position: fixed;
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        width: auto;
        transform: translateY(100%);
    }

    .header-pill.active .pill-dropdown {
        transform: translateY(0);
    }
}

/* Menu Toggle Styling (Enlarged for User) */
.menu-toggle {
    background: none !important;
    border: none !important;
    color: #475569 !important;
    font-size: 1.6rem !important; /* Increased from 1.3rem */
    cursor: pointer !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
}

.menu-toggle:hover {
    background: #f1f1f1 !important;
}

/* Dark Mode Overrides */
[data-theme="dark"] header .header-pill {
    background: rgba(30, 41, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] header .pill-text {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .pill-dropdown {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .dropdown-item {
    color: #f1f5f9 !important;
}
