/**
 * TOMI Language Switcher Styles
 * ==============================
 * Consistent styling for the language switcher across all pages.
 */

/* Language Switcher Container */
.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Current Language Button */
.lang-switcher .lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #333;
    color: #888;
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-switcher .lang-current:hover {
    border-color: #D4F246;
    color: #D4F246;
}

.lang-switcher .lang-flag {
    font-size: 14px;
    line-height: 1;
}

.lang-switcher .lang-code {
    font-weight: 500;
}

/* Dropdown Menu */
.lang-switcher .lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: #1A1A1A;
    border: 1px solid #333;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.lang-switcher .lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Language Option */
.lang-switcher .lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: #888;
    font-family: 'Geist Mono', monospace;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}

.lang-switcher .lang-option:hover {
    background: #222;
    color: #fff;
}

.lang-switcher .lang-option.active {
    background: rgba(212, 242, 70, 0.1);
    color: #D4F246;
}

.lang-switcher .lang-option .lang-flag {
    font-size: 16px;
}

.lang-switcher .lang-option .lang-name {
    flex: 1;
}

/* Divider between options */
.lang-switcher .lang-option:not(:last-child) {
    border-bottom: 1px solid #2a2a2a;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .lang-switcher .lang-current {
        padding: 8px 10px;
    }
    
    .lang-switcher .lang-code {
        display: none; /* Show only flag on mobile */
    }
    
    .lang-switcher .lang-dropdown {
        right: 0;
        left: auto;
        min-width: 130px;
    }
}

/* Animation for dropdown arrow (if you want to add one) */
.lang-switcher .lang-current::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 4px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.2s ease;
}

.lang-switcher .lang-dropdown.open + .lang-current::after,
.lang-switcher:has(.lang-dropdown.open) .lang-current::after {
    transform: rotate(180deg);
}
