/* ----------------------------------------
   Language Switcher UI Styles
---------------------------------------- */
.lang-switch {
    position: relative;
    margin-left: 20px;
}
.current-lang {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}
.current-lang:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.current-lang img, .lang-option img {
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    object-fit: cover;
    border-radius: 50%;
}
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 5px 0;
}
.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    margin: 2px 6px;
    border-radius: 6px;
}
.lang-option:hover {
    background: #f1f5f9;
    color: var(--primary);
}
.lang-option.active {
    background: rgba(211, 47, 47, 0.08); /* Light version of primary red */
    color: var(--primary);
    font-weight: 600;
}
.lang-flag {
    font-size: 1.2em;
}
.lang-code {
    font-weight: bold;
    font-size: 0.9em;
}

/* ----------------------------------------
   Dynamic Content Translation Styles
---------------------------------------- */

/* Default hide all dynamic language content */
.lang-content.th,
.lang-content.en,
.lang-content.zh,
.lang-content.ja,
.lang-content.ko {
    display: none !important;
}

/* Block level display */
body.lang-th div.lang-content.th,
body.lang-en div.lang-content.en,
body.lang-zh div.lang-content.zh,
body.lang-ja div.lang-content.ja,
body.lang-ko div.lang-content.ko {
    display: block !important;
}

/* Inline level display */
body.lang-th span.lang-content.th,
body.lang-en span.lang-content.en,
body.lang-zh span.lang-content.zh,
body.lang-ja span.lang-content.ja,
body.lang-ko span.lang-content.ko {
    display: inline !important;
}
