/**
 * Language Switcher Styles
 *
 * @package NONKE_SPA
 * @since 1.0.0
 */

/* ドロップダウン式言語切替 */
.language-switcher-dropdown {
    position: relative;
    display: inline-block;
}

/* トグルボタン */
.language-switcher-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #fff5b8;
    transition: all 0.3s ease;
}

.language-switcher-toggle:hover {
    background: rgba(255, 245, 184, 0.1);
}

.language-switcher-toggle .fa-chevron-down {
    font-size: 8px;
    color: #fff5b8;
    transition: transform 0.3s ease;
}

.language-switcher-dropdown.is-open .fa-chevron-down {
    transform: rotate(180deg);
}

/* ドロップダウンメニュー */
.language-switcher-menu {
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
    margin-top: 5px;
    background: #303c09;
    border: 1px solid #fff5b8;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

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

/* メニューアイテム */
.language-switcher-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #fff5b8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.language-switcher-item:hover {
    background: rgba(255, 245, 184, 0.1);
    color: #fff;
}

.language-switcher-item-flag {
    font-size: 14px;
}

.language-switcher-item-name {
    font-size: 12px;
    font-weight: 500;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .language-switcher-toggle {
        padding: 6px 8px;
    }
    
    .language-switcher-toggle .language-switcher-flag {
        font-size: 18px;
    }
    
    .language-switcher-menu {
        min-width: 120px;
        right: 0;
        left: auto;
    }
    
    .language-switcher-item {
        padding: 8px 12px;
    }
    
    .language-switcher-item-name {
        font-size: 13px;
    }
}