/* -- coach.css -- Verdict Alpha -- */

/* ── Coach Whisper ─────────────────────────────────────────── */
.coach-whisper-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(233, 69, 96, 0.4);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    z-index: 10;
}

.coach-whisper-badge:hover {
    transform: scale(1.05);
}

.coach-whisper-badge.pulse {
    animation: whisper-pulse 1.5s infinite;
}

@keyframes whisper-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(233, 69, 96, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(233, 69, 96, 0);
    }
}

.whisper-icon {
    font-size: 0.9rem;
}

.whisper-label {
    display: none;
}

@media (min-width: 600px) {
    .whisper-label {
        display: inline;
    }
}

.whisper-card {
    max-width: 360px;
    width: 90%;
}

.whisper-body {
    padding: 16px 20px;
}

.whisper-hint {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 12px;
}

.whisper-meta {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.whisper-actions {
    display: flex;
    justify-content: flex-end;
}

/* Coach Whisper red pulse */
.coach-whisper-badge.pulse-red {
    background: linear-gradient(135deg, #f44336, #b71c1c);
    animation: pulse-red 0.8s infinite alternate;
}
@keyframes pulse-red {
    from {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.5);
    }
    to {
        transform: scale(1.05);
        box-shadow: 0 0 12px 4px rgba(244, 67, 54, 0.3);
    }
}

/* ── Coaching KB Visuals ────────────────────────────────────── */
.kb-card {
    margin-top: 12px;
    padding: 12px;
    background: rgba(33, 150, 243, 0.08);
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}
.kb-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #2196f3;
}
.elo-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: white;
}
.elo-beginner {
    background: #4d908e;
}
.elo-intermediate {
    background: #f4a261;
}
.elo-advanced {
    background: #e76f51;
}
.elo-master {
    background: #2a9d8f;
}

.kb-mistake-line {
    margin-bottom: 6px;
    font-size: 0.9rem;
}
.kb-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.kb-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.kb-icon {
    opacity: 0.8;
    width: 16px;
}
