/* ═══════════════════════════════════════════════
   RESULTS — Feedback (toast + inline verdict)
   ═══════════════════════════════════════════════ */

/* ── Toast Bar (3rd backtest) ── */
.feedback-toast {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-overlay);
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px var(--section-px);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s var(--ease-out-expo), opacity 0.3s var(--ease);
    pointer-events: none;
}
.feedback-toast.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.feedback-toast-inner {
    max-width: var(--content-max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}
.feedback-toast-accent {
    width: 3px;
    align-self: stretch;
    border-radius: 2px;
    background: var(--teal);
    flex-shrink: 0;
}
.feedback-toast-body {
    flex: 1;
    min-width: 0;
}
.feedback-toast-title {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}
.feedback-toast-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.50);
}
.feedback-toast-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    font-size: 18px;
    transition: color 0.2s;
}
.feedback-toast-close:hover { color: rgba(255,255,255,0.7); }

/* ── Shared: Emoji pills ── */
.feedback-emojis {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.feedback-emoji-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}
/* Toast emoji pills — light text on dark bg */
.feedback-toast .feedback-emoji-btn {
    border-color: rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
}
.feedback-toast .feedback-emoji-btn:hover {
    border-color: var(--teal);
    background: rgba(0,191,179,0.10);
}
.feedback-toast .feedback-emoji-btn.selected {
    border-color: var(--teal);
    background: rgba(0,191,179,0.15);
}
.feedback-emoji-icon { font-size: 22px; line-height: 1; }
.feedback-emoji-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.feedback-toast .feedback-emoji-label { color: rgba(255,255,255,0.45); }
.feedback-toast .feedback-emoji-btn:hover .feedback-emoji-label,
.feedback-toast .feedback-emoji-btn.selected .feedback-emoji-label { color: rgba(255,255,255,0.8); }

/* ── Toast expanded state (after emoji click) ── */
.feedback-toast-expand {
    display: none;
    margin-top: 14px;
}
.feedback-toast-expand.visible { display: block; }
.feedback-toast-expand textarea {
    width: 100%;
    max-width: 480px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: var(--white);
    font-size: 13px;
    font-family: var(--sans);
    line-height: 1.5;
    resize: vertical;
    min-height: 60px;
    max-height: 120px;
    transition: border-color 0.2s;
}
.feedback-toast-expand textarea::placeholder { color: rgba(255,255,255,0.30); }
.feedback-toast-expand textarea:focus {
    outline: none;
    border-color: var(--teal);
}
.feedback-toast-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}
.feedback-send-btn {
    padding: 8px 22px;
    border-radius: 50px;
    border: none;
    background: var(--teal);
    color: var(--white);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}
.feedback-send-btn:hover {
    background: #00c4b8;
    transform: translateY(-1px);
}
.feedback-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
.feedback-skip-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}
.feedback-skip-btn:hover { color: rgba(255,255,255,0.6); }

/* ── Toast thank-you state ── */
.feedback-toast-thanks {
    display: none;
    align-items: center;
    gap: 8px;
    color: var(--teal);
    font-size: 14px;
    font-weight: 600;
}
.feedback-toast-thanks.visible { display: flex; }

/* ── Inline Feedback (Verdict tab) ── */
.feedback-inline {
    max-width: 520px;
    margin: 48px auto 0;
    padding: 28px 32px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(8px);
}
.feedback-inline-title {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.80);
    margin-bottom: 16px;
}
.feedback-inline .feedback-emojis {
    justify-content: center;
}
/* Inline emoji pills — on dark verdict hero */
.feedback-inline .feedback-emoji-btn {
    border-color: rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
}
.feedback-inline .feedback-emoji-btn:hover {
    border-color: var(--teal);
    background: rgba(0,191,179,0.10);
}
.feedback-inline .feedback-emoji-btn.selected {
    border-color: var(--teal);
    background: rgba(0,191,179,0.15);
}
.feedback-inline .feedback-emoji-label { color: rgba(255,255,255,0.45); }
.feedback-inline .feedback-emoji-btn:hover .feedback-emoji-label,
.feedback-inline .feedback-emoji-btn.selected .feedback-emoji-label { color: rgba(255,255,255,0.8); }

/* Inline expanded */
.feedback-inline-expand {
    display: none;
    margin-top: 16px;
}
.feedback-inline-expand.visible { display: block; }
.feedback-inline-expand textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: var(--white);
    font-size: 13px;
    font-family: var(--sans);
    line-height: 1.5;
    resize: vertical;
    min-height: 60px;
    max-height: 120px;
    transition: border-color 0.2s;
}
.feedback-inline-expand textarea::placeholder { color: rgba(255,255,255,0.30); }
.feedback-inline-expand textarea:focus {
    outline: none;
    border-color: var(--teal);
}
.feedback-inline-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

/* Inline thanks */
.feedback-inline-thanks {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--teal);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 0;
}
.feedback-inline-thanks.visible { display: flex; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .feedback-toast-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
    .feedback-toast-accent { width: 100%; height: 2px; align-self: auto; }
    .feedback-emojis { flex-wrap: wrap; gap: 6px; }
    .feedback-emoji-btn { padding: 6px 10px; }
    .feedback-emoji-icon { font-size: 18px; }
    .feedback-inline { margin: 32px 16px 0; padding: 20px 16px; }
}
