/* ==========================================
   AI Completion Phase
   ========================================== */

.ai-completion-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    text-align: center;
}

.ai-completion-celebration {
    margin-bottom: var(--space-6);
}

.ai-completion-checkmark {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-green) 0%, #68D391 100%);
    border-radius: var(--radius-full);
    color: white;
    animation: ai-completion-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ai-completion-checkmark svg {
    width: 40px;
    height: 40px;
}

@keyframes ai-completion-pop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.ai-completion-icon {
    background: linear-gradient(135deg, var(--color-green) 0%, #68D391 100%) !important;
}

/* Task 4 — honest completion: skips remain, so this isn't Inbox Zero.
   Same markup, muted framing — no green, no pop. #10B981/--accent-green
   is reserved for the true-zero tick. */
.ai-completion-phase--remaining .ai-completion-checkmark,
.ai-completion-phase--remaining .ai-completion-icon {
    background: var(--bg-tertiary) !important;
    color: var(--text-tertiary);
}

.ai-completion-phase--remaining .ai-completion-checkmark {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .ai-completion-checkmark {
        animation: none;
    }
}

.ai-completion-message {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-6);
}

.ai-completion-summary {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-6);
    width: 100%;
    max-width: 300px;
}

.ai-completion-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    text-align: left;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.ai-completion-summary li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Task 5 — design-system pass: blue by default; the green tick is
   reserved for the true-zero moment (no .ai-completion-phase--remaining
   class — Task 4's honest-completion gate), never the "N left" recap. */
.ai-completion-summary li::before {
    content: '•';
    color: var(--accent-blue);
}

.ai-completion-phase:not(.ai-completion-phase--remaining) .ai-completion-summary li::before {
    color: var(--color-green-text);
}

.ai-completion-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
    max-width: 250px;
}
