/* ============================================================
   feedback.css — Sistema de feedback in-game
   Growth City Serious Game
   ============================================================ */

/* ── Overlay ─────────────────────────────────────────────── */
#fb-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    pointer-events: none;
    transition: background .25s ease;
    padding: 20px;
}
#fb-overlay.visible {
    background: rgba(0,0,0,.72);
    pointer-events: all;
}

/* ── Card ─────────────────────────────────────────────────── */
#fb-card {
    background: #080f14;
    border: 2px solid #1a2030;
    border-radius: 18px;
    padding: 32px 36px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    font-family: 'Segoe UI', Arial, sans-serif;
    position: relative;
    overflow: hidden;
    transform: scale(.72) translateY(36px);
    opacity: 0;
    transition:
        transform .32s cubic-bezier(.34,1.56,.64,1),
        opacity   .25s ease;
    box-shadow: 0 24px 64px rgba(0,0,0,.75);
}
#fb-card.visible {
    transform: scale(1) translateY(0);
    opacity: 1;
}
#fb-card.success { border-color: rgba(74,222,128,.32); }
#fb-card.fail    { border-color: rgba(248,113,113,.28); }

/* ── Glow decorativo ─────────────────────────────────────── */
#fb-glow {
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
}
#fb-glow.visible { opacity: 1; }

/* ── Ícono de resultado ──────────────────────────────────── */
#fb-result-icon {
    font-size: 52px;
    line-height: 1;
    margin-bottom: 10px;
    animation: fb-pop .4s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes fb-pop {
    from { transform: scale(.35); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* ── Label correcto / incorrecto ─────────────────────────── */
#fb-result-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
#fb-result-label.success { color: #4ade80; }
#fb-result-label.fail    { color: #f87171; }

/* ── Título ──────────────────────────────────────────────── */
#fb-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 14px;
    line-height: 1.35;
}

/* ── Badge del artefacto ─────────────────────────────────── */
#fb-artifact-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 28px;
    padding: 5px 14px;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255,255,255,.04);
    letter-spacing: .3px;
}
.fb-artifact-emoji { font-size: 16px; line-height: 1; }

/* ── Mensaje pedagógico ──────────────────────────────────── */
#fb-message {
    font-size: 13px;
    color: #a8bcc8;
    line-height: 1.75;
    margin-bottom: 18px;
    text-align: left;
}

/* ── Delta de puntos ─────────────────────────────────────── */
#fb-delta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: .4px;
    min-height: 24px;
}
.fb-delta-pos       { color: #FFD700; }
.fb-delta-neg       { color: #f87171; }
.fb-delta-coins-pos { color: #4ade80; }
.fb-delta-coins-neg { color: #f87171; }

/* ── Reflexión de aprendizaje ────────────────────────────── */
.fb-reflection {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border-radius: 10px;
    padding: 11px 13px;
    margin-bottom: 22px;
    text-align: left;
    font-size: 12px;
    line-height: 1.65;
}
.fb-reflection.success {
    background: rgba(74,222,128,.06);
    border: 1px solid rgba(74,222,128,.18);
    color: #86efac;
}
.fb-reflection.fail {
    background: rgba(56,189,248,.05);
    border: 1px solid rgba(56,189,248,.15);
    color: #7dd3fc;
}
.fb-refl-icon {
    font-size: 16px;
    flex-shrink: 0;
    line-height: 1.5;
}
.fb-refl-text { flex: 1; }

/* ── Botón continuar ─────────────────────────────────────── */
#fb-btn {
    background: linear-gradient(135deg, #1a4a8a, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 11px 32px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .4px;
    transition: transform .13s, filter .13s;
    min-height: 42px;
}
#fb-btn:hover  { filter: brightness(1.18); }
#fb-btn:active { transform: scale(.95); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 520px) {
    #fb-card      { padding: 26px 20px; }
    #fb-title     { font-size: 16px; }
    #fb-result-icon { font-size: 44px; }
    #fb-delta     { font-size: 13px; gap: 10px; }
    #fb-message   { font-size: 12px; }
    #fb-btn       { padding: 10px 24px; font-size: 13px; }
}

/* ── Ajuste al design system ─────────────────────────────── */
#fb-card, #fb-title, #fb-btn {
    font-family: var(--font, 'Inter', sans-serif);
}
