/* ── Challenges Page ── */

.challenges-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.challenge-card {
    padding: 18px;
    animation: fadeIn 0.3s var(--spring) both;
}

.challenge-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.challenge-emoji {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--green-100), var(--green-200));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.challenge-body {
    flex: 1;
}

.challenge-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.challenge-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.challenge-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.timer-icon {
    font-size: 1rem;
}

.timer-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.timer-text.urgent {
    color: #e55353;
}

.timer-text.done-text {
    color: var(--green-700);
}

.challenge-progress {
    margin-bottom: 14px;
}

.challenge-actions {
    display: flex;
    gap: 8px;
}

.challenge-actions .btn {
    flex: 1;
}

/* Type badges */
.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    margin-bottom: 6px;
}

.type-fitness {
    background: rgba(39, 174, 96, 0.12);
    color: #1a7a3c;
}

.type-digital {
    background: rgba(59, 130, 246, 0.12);
    color: #1e40af;
}

.type-nutrition {
    background: rgba(245, 158, 11, 0.12);
    color: #92400e;
}

.type-social {
    background: rgba(139, 92, 246, 0.12);
    color: #5b21b6;
}

.type-smoking {
    background: rgba(220, 38, 38, 0.1);
    color: #991b1b;
}