/* =========================================================
   Language Translators Widget
   Section 8.05
   ========================================================= */

.translator-widget {
    margin: 1.5rem 0;
    padding: 1.2rem;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.ltw-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.ltw-tab,
.ltw-controls button {
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    background: #e2e8f0;
    color: #334155;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ltw-tab:hover,
.ltw-controls button:hover {
    transform: translateY(-2px);
    background: #cbd5e1;
}

.ltw-tab.active {
    background: #0f172a;
    color: white;
}

.ltw-pathway {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0.75rem;
    align-items: stretch;
    margin: 1rem 0;
}

.ltw-node {
    min-height: 150px;
    padding: 1rem;
    border-radius: 22px;
    background: white;
    border: 2px solid #e2e8f0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: all 0.25s ease;
}

.ltw-node.active-step {
    border-color: #5b5fa8;
    background: #eef2ff;
    transform: translateY(-3px);
}

.ltw-node span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 0.55rem;
    border-radius: 999px;
    background: #5b5fa8;
    color: white;
    font-weight: 800;
}

.ltw-node strong {
    display: block;
    color: #0f172a;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.ltw-node p {
    margin: 0;
    color: #475569;
    line-height: 1.45;
}

.ltw-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5b5fa8;
    font-size: 2rem;
    font-weight: 900;
}

.ltw-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin: 1rem 0;
}

.ltw-info-card,
.ltw-step-panel {
    padding: 1rem;
    border-radius: 20px;
    background: white;
    border: 1px solid #e2e8f0;
}

.ltw-info-card strong {
    display: block;
    color: #5b5fa8;
    margin-bottom: 0.35rem;
}

.ltw-info-card p,
.ltw-step-panel p {
    margin: 0;
    color: #475569;
    line-height: 1.5;
}

.ltw-step-panel {
    margin-top: 1rem;
    border: 2px solid rgba(91, 95, 168, 0.22);
    background: #ffffff;
}

.ltw-step-counter {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: #64748b !important;
    margin-bottom: 0.35rem !important;
}

.ltw-step-panel h3 {
    margin: 0 0 0.45rem;
    color: #0f172a;
}

.ltw-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.ltw-controls button:nth-child(2) {
    background: #5b5fa8;
    color: white;
}

.ltw-controls button:disabled {
    opacity: 0.45;
    cursor: default;
    transform: none;
}

@media (max-width: 900px) {
    .ltw-pathway {
        grid-template-columns: 1fr;
    }

    .ltw-arrow {
        transform: rotate(90deg);
    }

    .ltw-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .ltw-info-grid {
        grid-template-columns: 1fr;
    }
}
