/* TappLaza Multilingual — Frontend Switcher Styles */

/* ── Floating switcher ── */
.tmlg-float-wrap {
    position: fixed;
    z-index: 99999;
    bottom: 24px;
    right: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
}
[dir="rtl"] .tmlg-float-wrap { right: auto; left: 24px; }

.tmlg-float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #2271b1;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: all 0.2s ease;
    margin-left: auto;
}
.tmlg-float-btn:hover { background: #135e96; transform: scale(1.08); }
.tmlg-float-btn.open  { background: #135e96; }

.tmlg-float-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    margin-bottom: 10px;
    overflow: hidden;
    min-width: 210px;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    pointer-events: none;
}
.tmlg-float-panel.open { max-height: 420px; opacity: 1; pointer-events: all; }

.tmlg-float-header {
    background: #2271b1;
    color: #fff;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tmlg-float-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    max-height: 320px;
    overflow-y: auto;
}
.tmlg-float-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    color: #1d2327;
    transition: background 0.15s;
    font-size: 14px;
}
.tmlg-float-list li a:hover { background: #f0f6fc; color: #2271b1; }
.tmlg-float-list li.tmlg-current a {
    background: #f0f6fc;
    color: #2271b1;
    font-weight: 700;
    border-left: 3px solid #2271b1;
    padding-left: 13px;
}
.tmlg-float-lang-native { font-size: 12px; color: #8c8f94; margin-left: auto; }
.tmlg-float-tick { color: #00a32a; }

/* ── Inline shortcode switcher ── */
.tmlg-switcher ul { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:6px; }
.tmlg-switcher li a {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; border: 1px solid #ddd; border-radius: 4px;
    text-decoration: none; color: inherit; font-size: 13px; transition: all .15s;
}
.tmlg-switcher li a:hover { background: #f5f5f5; border-color: #aaa; }
.tmlg-switcher li.tmlg-active a { background: #2271b1; border-color: #2271b1; color: #fff; font-weight: 600; }
.tmlg-switcher--dropdown select { padding:6px 10px; border:1px solid #ddd; border-radius:4px; font-size:13px; cursor:pointer; }

/* ── Reading time ── */
.tmlg-reading-time { display:inline-flex; align-items:center; gap:4px; font-size:13px; color:#666; }

@media (max-width:480px) {
    .tmlg-float-wrap { bottom:16px; right:16px; }
    .tmlg-float-panel { min-width:180px; }
}
