/* Language-specific styles for FinanceHub theme */

/* RTL support for Arabic, Hebrew, etc. */
body.lang-ar,
body.lang-he,
body.lang-fa {
    direction: rtl;
    text-align: right;
}

body.lang-ar .container,
body.lang-he .container,
body.lang-fa .container {
    direction: rtl;
}

/* Chinese font adjustments */
body.lang-zh {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* Japanese font adjustments */
body.lang-ja {
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", "Yu Gothic", sans-serif;
}

/* Korean font adjustments */
body.lang-ko {
    font-family: -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

/* Language switcher styling */
.language-switcher {
    display: inline-block;
    position: relative;
}

.language-switcher select {
    background: transparent;
    border: 1px solid #333;
    color: #ccc;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 20px;
}

.language-switcher::after {
    content: "▼";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8px;
    color: #666;
    pointer-events: none;
}

.language-switcher:hover select {
    border-color: #D4AF37;
    color: #fff;
}

/* Language flags in dropdown */
.language-switcher option {
    background-color: #0a0e27;
    color: #fff;
}

/* RTL adjustments for language switcher */
body[dir="rtl"] .language-switcher select {
    padding-left: 20px;
    padding-right: 8px;
}

body[dir="rtl"] .language-switcher::after {
    left: 8px;
    right: auto;
}
