/*
 * FILE: handshakes-widget.css
 * PURPOSE: Styles for Handshakes Widget in My Journey tab
 * SPEC PROJECT: SP-SRUserFlow
 *
 * KEY RESPONSIBILITIES:
 *  - Widget container styling
 *  - Handshake list item styles
 *  - Status indicator colors
 *  - Action button positioning
 *
 * DEPENDENCIES:
 *  - Base widget styles from widgets.css
 *  - CSS variables from sparkus-2026.css
 *
 * LAST UPDATED: December 9, 2025 by /go agent
 * CHANGE SUMMARY: Initial creation for E2-MyJourney-Tab (US2.7)
 * 
 * NEXT AGENT: May need responsive adjustments
 */

/* ========================================
   HANDSHAKES WIDGET STYLES
   ======================================== */

/* Widget Container */
.sp-widget--handshakes {
    --widget-icon-bg: var(--sp-blue-100, #e0e7ff);
    --widget-icon-color: var(--sp-blue-600, #4f46e5);
}

/* Widget Icon */
.sp-widget__icon--handshakes {
    background-color: var(--widget-icon-bg);
    color: var(--widget-icon-color);
}

/* Content Container */
.sp-handshakes-widget__content {
    padding: 0;
}

/* Handshake List */
.sp-handshakes-widget__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Handshake List Item */
.sp-handshakes-widget__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--sp-border-color, #e5e7eb);
    transition: background-color 0.15s ease;
}

.sp-handshakes-widget__item:last-child {
    border-bottom: none;
}

.sp-handshakes-widget__item:hover {
    background-color: var(--sp-blue-50, #f0f4ff);
}

/* Item Icon */
.sp-handshakes-widget__item-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    background-color: var(--sp-gray-100, #f3f4f6);
    color: var(--sp-gray-500, #6b7280);
    font-size: 0.875rem;
}

/* Item Content */
.sp-handshakes-widget__item-content {
    flex: 1;
    min-width: 0;
}

.sp-handshakes-widget__item-name {
    font-weight: 500;
    color: var(--sp-text-primary, #1f2937);
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
}

.sp-handshakes-widget__item-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--sp-text-secondary, #6b7280);
}

/* Status Indicators */
.sp-handshakes-widget__status-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    font-size: 0.625rem;
}

.sp-handshakes-widget__status-indicator--warning {
    color: var(--sp-warning, #f59e0b);
}

.sp-handshakes-widget__status-indicator--info {
    color: var(--sp-info, #3b82f6);
}

.sp-handshakes-widget__status-indicator--success {
    color: var(--sp-success, #10b981);
}

.sp-handshakes-widget__status-indicator--danger {
    color: var(--sp-danger, #ef4444);
}

.sp-handshakes-widget__status-text {
    color: inherit;
}

/* Item Action Button */
.sp-handshakes-widget__item-action {
    flex-shrink: 0;
}

.sp-handshakes-widget__item-action .sp-btn {
    white-space: nowrap;
}

/* Status-specific Item Styling */
.sp-handshakes-widget__item--tobesent {
    background-color: var(--sp-warning-light, #fffbeb);
}

.sp-handshakes-widget__item--tobesent:hover {
    background-color: var(--sp-warning-lighter, #fef3c7);
}

.sp-handshakes-widget__item--hasremarks {
    background-color: var(--sp-warning-light, #fffbeb);
}

.sp-handshakes-widget__item--hasremarks:hover {
    background-color: var(--sp-warning-lighter, #fef3c7);
}

.sp-handshakes-widget__item--approved .sp-handshakes-widget__item-icon {
    background-color: var(--sp-success-light, #d1fae5);
    color: var(--sp-success, #10b981);
}

.sp-handshakes-widget__item--rejected .sp-handshakes-widget__item-icon {
    background-color: var(--sp-danger-light, #fee2e2);
    color: var(--sp-danger, #ef4444);
}

/* Footer */
.sp-handshakes-widget__footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--sp-border-color, #e5e7eb);
    text-align: center;
}

.sp-handshakes-widget__footer .sp-btn--link {
    color: var(--sp-primary, #4f46e5);
    font-size: 0.875rem;
}

.sp-handshakes-widget__footer .sp-btn--link:hover {
    color: var(--sp-primary-dark, #4338ca);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 640px) {
    .sp-handshakes-widget__item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .sp-handshakes-widget__item-content {
        flex: 1 1 calc(100% - 3rem);
    }
    
    .sp-handshakes-widget__item-action {
        flex: 1 1 100%;
        margin-left: 2.75rem;
        margin-top: 0.25rem;
    }
    
    .sp-handshakes-widget__item-action .sp-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   ANIMATION STATES
   ======================================== */

/* Pulse animation for items requiring action */
.sp-handshakes-widget__item--tobesent .sp-handshakes-widget__status-indicator,
.sp-handshakes-widget__item--hasremarks .sp-handshakes-widget__status-indicator {
    animation: pulse-attention 2s ease-in-out infinite;
}

@keyframes pulse-attention {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* ========================================
   EMPTY STATE (if needed in future)
   ======================================== */

.sp-handshakes-widget__empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--sp-text-muted, #9ca3af);
}

.sp-handshakes-widget__empty-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.sp-handshakes-widget__empty-text {
    font-size: 0.875rem;
    margin: 0;
}




















