/* Language Switcher Styles */
/* css/language-switcher.css */

.language-switcher {
    position: relative;
    display: inline-block;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(212, 175, 116, 0.3);
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.language-toggle:hover {
    background: rgba(212, 175, 116, 0.2);
    border-color: rgba(212, 175, 116, 0.6);
    transform: translateY(-1px);
}

.language-flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
    min-width: 150px;
}

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

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.language-option:hover {
    background: #f8f9fa;
}

.language-option.active {
    background: #d4a574;
    color: white;
}

.language-option .language-flag {
    width: 24px;
    height: 18px;
}

.language-name {
    font-weight: 500;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .language-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .language-flag {
        width: 18px;
        height: 14px;
    }
    
    .language-dropdown {
        right: -10px;
        min-width: 130px;
    }
    
    .language-option {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Language-specific content visibility */
.lang-th { display: none; }
.lang-en { display: none; }

/* Show content based on current language */
html[lang="th"] .lang-th { display: initial; }
html[lang="en"] .lang-en { display: initial; }

/* RTL support for future use */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] .language-switcher {
    left: 0;
    right: auto;
}

html[dir="rtl"] .language-dropdown {
    left: 0;
    right: auto;
}

/* Animation for language transitions */
.language-transition {
    transition: opacity 0.3s ease;
}

.language-transition.changing {
    opacity: 0.7;
}

/* Currency and number formatting indicators */
.currency-thb::before { content: "฿"; }
.currency-usd::before { content: "$"; }

/* Date format indicators */
.date-format-th { }
.date-format-en { }