/* 語言切換器樣式 */
.language-switcher {
    display: flex;
    gap: 4px;
    margin-right: 16px;
}

.lang-btn {
    background: transparent;
    color: #e8c68a;
    border: 1px solid #333;
    width: 32px;
    height: 32px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Sans TC', sans-serif;
}

.lang-btn:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.lang-btn.active {
    background: #d4af37;
    color: #000;
    border-color: #d4af37;
}

/* 登入狀態管理樣式 */
        body.session-checking .loginbutt,
        body.session-checking .logoutbutt {
            opacity: 0.3;
            pointer-events: none;
        }
        
        body.user-logged-in .loginbutt {
            display: none !important;
        }
        
        body.user-logged-out .logoutbutt {
            display: none !important;
        }
        
        body.user-logged-in .logoutbutt {
            display: block !important;
        }
        
        body.user-logged-out .loginbutt {
            display: block !important;
        }
        
        /* 初始狀態 - 隱藏所有按鈕直到 session 檢查完成 */
        body:not(.user-logged-in):not(.user-logged-out) .loginbutt,
        body:not(.user-logged-in):not(.user-logged-out) .logoutbutt {
            visibility: hidden;
        }

/* 響應式設計 */
@media (max-width: 768px) {
    .language-switcher {
        margin-right: 8px;
    }
    
    .lang-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
}
