/* ═══════════════════════════════════════════════════════════════════════════════
   SGraph Send — Locale Selector Styles
   v0.2.0 — Grid dropdown matching sgraph.ai design
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Dropdown wrapper */
.locale-dropdown {
    position: relative;
    display: inline-block;
}

/* Trigger button — teal border matches sgraph.ai design */
.locale-dropdown__trigger {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm, 6px);
    color: var(--accent, #4ECDC4);
    background: transparent;
    border: 1px solid var(--accent, #4ECDC4);
    cursor: pointer;
    font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
    line-height: 1.6;
    transition: color 150ms ease, background 150ms ease;
    white-space: nowrap;
}

.locale-dropdown__trigger:hover {
    color: #FFFFFF;
    background: rgba(78, 205, 196, 0.12);
}

.locale-dropdown__trigger svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Grid menu (hidden by default) */
.locale-dropdown__menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 400px;
    background: var(--bg-secondary, #16213E);
    border: 1px solid var(--color-border, rgba(78, 205, 196, 0.15));
    border-radius: var(--radius-sm, 6px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    z-index: 100;
    padding: 8px 4px;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 480px) {
    .locale-dropdown__menu {
        min-width: 260px;
        grid-template-columns: 1fr;
    }
}

/* Show as grid when open */
.locale-dropdown.open .locale-dropdown__menu {
    display: grid;
}

/* Individual language item */
.locale-dropdown__item {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
    line-height: 1.6;
    color: var(--color-text-secondary, #8892A0);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    transition: color 150ms ease, background 150ms ease;
}

.locale-dropdown__item:hover {
    color: #FFFFFF;
    background: rgba(78, 205, 196, 0.12);
}

/* Active/current language highlight */
.locale-dropdown__item--active {
    color: var(--accent, #4ECDC4);
    font-weight: 500;
}

/* Permanent English link on non-English pages */
.locale-dropdown__english-link {
    font-size: 0.75rem;
    color: var(--color-text-secondary, #8892A0);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm, 6px);
    transition: color 150ms ease, background 150ms ease;
    white-space: nowrap;
}

.locale-dropdown__english-link:hover {
    color: #FFFFFF;
    background: rgba(78, 205, 196, 0.12);
    text-decoration: none;
}
