/* ==========================================================================
   orange[shift] translate — Frontend Language Switcher
   Minimal styles designed for easy CSS override via variables.
   ========================================================================== */

.orangeshift-switcher {
    /* Override any of these in your theme */
    --ost-bg:      #222222;
    --ost-color:   #ffffff;
    --ost-accent:  #FF6B00;
    --ost-border:  1px solid #444444;
    --ost-padding: 6px 12px;
    --ost-font:    inherit;
    --ost-radius:  0;

    display: inline-flex;
    align-items: center;
    font-family: var(--ost-font);
    position: relative;
}

/* ── Dropdown mode ──────────────────────────────────────────────────────────── */
.orangeshift-switcher--dropdown .orangeshift-lang-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--ost-bg);
    color: var(--ost-color);
    border: var(--ost-border);
    padding: var(--ost-padding);
    padding-right: 28px;
    font-family: var(--ost-font);
    font-size: 14px;
    cursor: pointer;
    outline: none;
    border-radius: var(--ost-radius);

    /* Inline arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23FF6B00'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.orangeshift-switcher--dropdown .orangeshift-lang-select:focus {
    border: 1px solid var(--ost-accent);
}

.orangeshift-switcher--dropdown .orangeshift-lang-select option {
    background: #222;
    color: #fff;
}

/* ── Flags mode ─────────────────────────────────────────────────────────────── */
.orangeshift-switcher--flags {
    gap: 4px;
}

.orangeshift-switcher--flags .orangeshift-lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 20px;
    text-decoration: none;
    background: var(--ost-bg);
    border: var(--ost-border);
    transition: border-color 0.15s, transform 0.1s;
    border-radius: var(--ost-radius);
    line-height: 1;
}

.orangeshift-switcher--flags .orangeshift-lang:hover {
    border-color: var(--ost-accent);
    transform: scale(1.1);
}

.orangeshift-switcher--flags .orangeshift-lang--active {
    border-color: var(--ost-accent);
    box-shadow: 0 0 0 1px var(--ost-accent);
}

/* ── Fixed position mode ─────────────────────────────────────────────────────── */
.orangeshift-switcher--fixed {
    position: fixed !important;
    z-index: 9999;
}

.orangeshift-switcher--bottom-right {
    bottom: 24px;
    right: 24px;
}

.orangeshift-switcher--bottom-left {
    bottom: 24px;
    left: 24px;
}

.orangeshift-switcher--top-right {
    top: 24px;
    right: 24px;
}

.orangeshift-switcher--top-left {
    top: 24px;
    left: 24px;
}

/* When fixed, add a subtle drop shadow */
.orangeshift-switcher--fixed.orangeshift-switcher--dropdown .orangeshift-lang-select,
.orangeshift-switcher--fixed.orangeshift-switcher--flags .orangeshift-lang {
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .orangeshift-switcher--flags .orangeshift-lang {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}
