/* ============================================================
   FEASTFLOW — LANGUAGE SWITCHER COMPONENT STYLES
   ============================================================ */

.ff-language-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.ff-lang-btn {
    border: 1px solid var(--theme-border, rgba(255, 255, 255, 0.15)) !important;
    background: var(--theme-bg-card, rgba(255, 255, 255, 0.06)) !important;
    color: var(--theme-text, #ffffff) !important;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: none !important;
}

.ff-lang-btn:hover, 
.ff-lang-btn:focus,
.ff-lang-btn[aria-expanded="true"] {
    background: rgba(var(--theme-primary-rgb, 16, 185, 129), 0.15) !important;
    border-color: var(--theme-primary, rgba(255, 255, 255, 0.4)) !important;
    color: var(--theme-text, #ffffff) !important;
    transform: translateY(-1px);
}

/* Compact flag-only button for clean navbar integration */
.ff-lang-btn-compact {
    width: 38px;
    height: 38px;
    min-width: 38px;
    max-width: 38px;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ff-lang-btn-compact::after {
    display: none !important;
}

.ff-lang-flag {
    font-size: 1.25rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ff-lang-item-flag {
    font-size: 1.15rem;
    line-height: 1;
}

.ff-lang-menu {
    background: var(--theme-bg-card, #0f172a) !important;
    border: 1px solid var(--theme-border, rgba(255, 255, 255, 0.12)) !important;
    border-radius: 12px;
    min-width: 220px;
    max-height: 380px;
    overflow-y: auto;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25) !important;
    z-index: 10000;
}

.ff-lang-menu .dropdown-header {
    color: var(--theme-text-muted, #94a3b8) !important;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem 0.25rem;
}

.ff-lang-menu .dropdown-item {
    color: var(--theme-text, #cbd5e1) !important;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: all 0.15s ease;
}

.ff-lang-menu .dropdown-item:hover {
    background: rgba(var(--theme-primary-rgb, 16, 185, 129), 0.12) !important;
    color: var(--theme-primary, #10b981) !important;
}

.ff-lang-menu .dropdown-item.active {
    background: var(--theme-primary, #10b981) !important;
    color: #ffffff !important;
}

.ff-lang-menu .dropdown-item.active i {
    color: #ffffff !important;
}

.ff-lang-menu .dropdown-item.active .ff-lang-item-english {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Editorial Light Theme Overrides */
[data-theme="editorial-light"] .ff-lang-btn,
body[data-theme="editorial-light"] .ff-lang-btn {
    border-color: #e2e8f0 !important;
    background-color: #f8fafc !important;
    color: #1e293b !important;
}

[data-theme="editorial-light"] .ff-lang-btn:hover,
[data-theme="editorial-light"] .ff-lang-btn:focus,
[data-theme="editorial-light"] .ff-lang-btn[aria-expanded="true"],
body[data-theme="editorial-light"] .ff-lang-btn:hover,
body[data-theme="editorial-light"] .ff-lang-btn:focus,
body[data-theme="editorial-light"] .ff-lang-btn[aria-expanded="true"] {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="editorial-light"] .ff-lang-menu,
body[data-theme="editorial-light"] .ff-lang-menu {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1) !important;
}

[data-theme="editorial-light"] .ff-lang-menu .dropdown-header,
body[data-theme="editorial-light"] .ff-lang-menu .dropdown-header {
    color: #64748b !important;
}

[data-theme="editorial-light"] .ff-lang-menu .dropdown-item,
body[data-theme="editorial-light"] .ff-lang-menu .dropdown-item {
    color: #334155 !important;
}

[data-theme="editorial-light"] .ff-lang-menu .dropdown-item:hover,
body[data-theme="editorial-light"] .ff-lang-menu .dropdown-item:hover {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}
