/* =============================================
   TheInforix Language Translator — Styles
   style.css — theinforix.com
   ============================================= */

/* ── Sticky bar at top ── */
#tix-sticky-bar {
    position: sticky;
    top: 0;
    z-index: 99999;
    width: 100%;
}

/* ── Translator wrap ── */
.tix-translator-wrap {
    background: #0D0D0F;
    border-bottom: 2px solid #e85d24;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* ── Inner row ── */
.tix-translator-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Label ── */
.tix-trans-label {
    color: #888;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.tix-trans-label svg {
    color: #e85d24;
    flex-shrink: 0;
}

/* ── Language buttons container ── */
.tix-lang-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

/* ── Each language button ── */
.tix-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    color: #aaa;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 4px 13px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.3px;
}

.tix-lang-btn:hover {
    background: #1e1e22;
    color: #fff;
    border-color: #555;
    transform: translateY(-1px);
}

/* ── Active / Selected ── */
.tix-lang-btn.active {
    background: #e85d24;
    color: #fff;
    border-color: #e85d24;
    box-shadow: 0 2px 12px rgba(232, 93, 36, 0.35);
}

.tix-lang-btn.active:hover {
    background: #d04d18;
    border-color: #d04d18;
}

/* ── Flag emoji ── */
.tix-flag {
    font-size: 14px;
    line-height: 1;
}

/* ── Translating message ── */
.tix-translating-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 20px;
    background: rgba(232, 93, 36, 0.08);
    color: #e85d24;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(232, 93, 36, 0.15);
    justify-content: center;
}

/* ── Spinner animation ── */
.tix-spinner {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 2px solid rgba(232, 93, 36, 0.25);
    border-top-color: #e85d24;
    border-radius: 50%;
    animation: tixSpin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes tixSpin {
    to { transform: rotate(360deg); }
}

/* ── Arabic RTL support ── */
body[dir="rtl"] .tix-translator-inner,
body[style*="direction: rtl"] .tix-translator-inner {
    flex-direction: row-reverse;
}

/* ── Responsive mobile ── */
@media (max-width: 600px) {
    .tix-translator-inner {
        padding: 8px 12px;
        gap: 8px;
    }
    .tix-lang-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
    .tix-trans-label {
        font-size: 10px;
    }
}
