/* =========================================================
   Testing Methods Widget
   Chapter 15.06 - Software Development
   Folder: software-development
   ========================================================= */

.testing-method-widget {
    margin: 1.5rem 0;
    padding: 1.25rem;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.tmw-scenario-panel,
.tmw-feedback-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.tmw-mini-label,
.tmw-result-label {
    margin: 0 0 0.4rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tmw-scenario-panel h3,
.tmw-feedback-card h3 {
    margin-top: 0;
    color: #0f172a;
}

.tmw-controls {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tmw-controls button,
.tmw-method {
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tmw-controls button {
    background: #0f172a;
    color: white;
}

.tmw-controls button:hover,
.tmw-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.tmw-method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 0.65rem;
    margin: 1rem 0;
}

.tmw-method {
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.tmw-method.correct {
    background: #dcfce7;
    color: #14532d;
    border-color: #86efac;
}

.tmw-method.incorrect {
    background: #fee2e2;
    color: #7f1d1d;
    border-color: #fecaca;
}

.tmw-feedback-card {
    border-left: 6px solid #5b5fa8;
}

.tmw-feedback-card.correct {
    border-left-color: #16a34a;
}

.tmw-feedback-card.incorrect {
    border-left-color: #dc2626;
}

.tmw-keywords {
    margin-top: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 700;
}

@media (max-width: 700px) {
    .testing-method-widget {
        padding: 0.9rem;
    }

    .tmw-method-grid {
        grid-template-columns: 1fr 1fr;
    }
}
