/*
 * FILE: whats-next.css
 * PURPOSE: Enhanced What's Next widget styles for SP-SRUserFlow
 * SPEC PROJECT: SP-SRUserFlow
 *
 * KEY RESPONSIBILITIES:
 *  - URGENT and UP NEXT sections styling
 *  - Enhanced timeline item styles
 *  - Progress bars within items
 *  - Responsive adaptations
 *
 * DEPENDENCIES:
 *  - sparkus-2026.css (base sp-timeline, sp-whats-next styles)
 *
 * LAST UPDATED: December 9, 2025 by /go agent
 * CHANGE SUMMARY: Initial creation for E2-MyJourney-Tab (US2.1)
 * 
 * NEXT AGENT: May need dark mode support
 */

/* ============================================
   WHAT'S NEXT WIDGET ENHANCEMENTS
   ============================================ */

/* Widget Container */
.sp-whats-next {
    background: var(--sp-card-bg);
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-lg);
    box-shadow: var(--sp-shadow-card);
    margin-bottom: var(--sp-space-5);
    overflow: hidden;
}

/* Header - Clickable for expand/collapse */
.sp-whats-next__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-space-5);
    cursor: pointer;
    transition: background var(--sp-transition-fast);
    user-select: none;
}

.sp-whats-next__header:hover {
    background: var(--sp-blue-50);
}

.sp-whats-next__header-left {
    display: flex;
    align-items: center;
    gap: var(--sp-space-3);
}

/* Title with icon */
.sp-whats-next__title {
    display: flex;
    align-items: center;
    gap: var(--sp-space-3);
    font-size: 1.125rem;
    font-weight: var(--sp-font-weight-semibold);
    color: var(--sp-text-dark);
    margin: 0;
}

.sp-whats-next__title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--sp-gradient-primary);
    color: var(--sp-white);
    border-radius: var(--sp-radius-md);
    font-size: 1rem;
}

/* Count badge */
.sp-whats-next__count {
    font-size: 0.875rem;
    color: var(--sp-text-muted);
    display: flex;
    align-items: center;
    gap: var(--sp-space-2);
}

.sp-whats-next__urgent-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px var(--sp-space-2);
    font-size: 0.6875rem;
    font-weight: var(--sp-font-weight-medium);
    color: var(--sp-white);
    background: var(--sp-danger);
    border-radius: var(--sp-radius-full);
}

/* Body */
.sp-whats-next__body {
    padding: 0 var(--sp-space-5) var(--sp-space-5);
}

/* Sections (URGENT / UP NEXT) */
.sp-whats-next__section {
    margin-bottom: var(--sp-space-5);
}

.sp-whats-next__section:last-child {
    margin-bottom: 0;
}

.sp-whats-next__section-title {
    display: flex;
    align-items: center;
    gap: var(--sp-space-2);
    font-size: 0.75rem;
    font-weight: var(--sp-font-weight-semibold);
    color: var(--sp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 var(--sp-space-3);
    padding-bottom: var(--sp-space-2);
    border-bottom: 1px solid var(--sp-card-border);
}

.sp-whats-next__section--urgent .sp-whats-next__section-title {
    color: var(--sp-danger);
}

.sp-whats-next__section--urgent .sp-whats-next__section-title i {
    color: var(--sp-danger);
}

/* Empty State */
.sp-whats-next__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--sp-space-8);
    text-align: center;
}

.sp-whats-next__empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--sp-success-light);
    color: var(--sp-success);
    border-radius: var(--sp-radius-full);
    font-size: 1.5rem;
    margin-bottom: var(--sp-space-3);
}

.sp-whats-next__empty-text {
    font-size: 0.9375rem;
    color: var(--sp-text-muted);
    margin: 0;
}

/* ============================================
   TIMELINE ENHANCEMENTS FOR WHAT'S NEXT
   ============================================ */

/* Urgent timeline variant */
.sp-timeline--urgent .sp-timeline__content {
    border-left: 3px solid var(--sp-danger);
}

.sp-timeline--urgent .sp-timeline__dot {
    background: var(--sp-danger);
}

/* Timeline item enhancements */
.sp-timeline__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.sp-timeline__link:hover .sp-timeline__content {
    box-shadow: var(--sp-shadow-sm);
    transform: translateX(2px);
}

.sp-timeline__title-row {
    display: flex;
    align-items: center;
    gap: var(--sp-space-2);
    flex: 1;
    min-width: 0;
}

.sp-timeline__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--sp-text-muted);
    flex-shrink: 0;
}

/* Badge variants */
.sp-timeline__badge--warning {
    background: var(--sp-warning-light);
    color: #b45309;
}

.sp-timeline__badge--new {
    background: var(--sp-info-light);
    color: var(--sp-info);
}

.sp-timeline__badge--success {
    background: var(--sp-success-light);
    color: #047857;
}

.sp-timeline__badge--info {
    background: var(--sp-blue-100);
    color: var(--sp-blue-600);
}

/* Meta item danger variant */
.sp-timeline__meta-item--danger {
    color: var(--sp-danger);
    font-weight: var(--sp-font-weight-medium);
}

/* Progress bar within timeline item */
.sp-timeline__progress {
    margin-top: var(--sp-space-3);
}

.sp-timeline__progress-bar {
    height: 6px;
    background: var(--sp-blue-100);
    border-radius: var(--sp-radius-full);
    overflow: hidden;
}

.sp-timeline__progress-fill {
    height: 100%;
    background: var(--sp-gradient-primary);
    border-radius: var(--sp-radius-full);
    transition: width 0.5s ease;
}

/* Dot variants */
.sp-timeline__dot--success {
    background: var(--sp-success);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 640px) {
    .sp-whats-next__header {
        padding: var(--sp-space-4);
    }
    
    .sp-whats-next__body {
        padding: 0 var(--sp-space-4) var(--sp-space-4);
    }
    
    .sp-whats-next__title {
        font-size: 1rem;
    }
    
    .sp-whats-next__title-icon {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .sp-whats-next__count {
        display: none;
    }
    
    .sp-timeline__content {
        padding: var(--sp-space-3);
    }
    
    .sp-timeline__title {
        font-size: 0.875rem;
    }
    
    .sp-timeline__description {
        font-size: 0.8125rem;
    }
    
    .sp-timeline__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-space-1);
    }
}

/* ============================================
   ANIMATION ENHANCEMENTS
   ============================================ */

.sp-timeline__item {
    animation: sp-timeline-fade-in 0.3s ease forwards;
    opacity: 0;
}

.sp-timeline__item:nth-child(1) { animation-delay: 0.05s; }
.sp-timeline__item:nth-child(2) { animation-delay: 0.1s; }
.sp-timeline__item:nth-child(3) { animation-delay: 0.15s; }
.sp-timeline__item:nth-child(4) { animation-delay: 0.2s; }
.sp-timeline__item:nth-child(5) { animation-delay: 0.25s; }

@keyframes sp-timeline-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Transition for expand/collapse */
.sp-whats-next__body {
    transition: max-height 0.3s ease;
}




















