/* ===================================
   Enhanced Assessment Results Styles
   Statistics, Recommendations, Roadmap
   =================================== */

/* Maturity Level Badge */
.maturity-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    padding: 8px 16px;
    background: var(--gradient-light);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.maturity-badge .current-level {
    color: var(--warning-orange);
}

.maturity-badge .target-level {
    color: var(--success-green);
}

.maturity-badge i {
    color: var(--primary-blue);
    font-size: 12px;
}

/* Waste Impact Section */
.waste-impact-section {
    margin: 20px 0;
    padding: 24px;
    background: #FFF5F5;
    border-left: 4px solid var(--danger-red);
    border-radius: var(--border-radius);
}

.impact-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.impact-header i {
    font-size: 24px;
    color: var(--danger-red);
}

.impact-header h5 {
    font-size: 18px;
    color: var(--text-primary);
    margin: 0;
}

.impact-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.stat-item i {
    font-size: 28px;
    flex-shrink: 0;
}

.stat-item.financial i {
    color: #D97706;
}

.stat-item.time i {
    color: #2563EB;
}

.stat-content {
    flex: 1;
}

.stat-content strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.stat-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Statistics Source Tooltip */
.stat-source {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    margin-left: 4px;
    cursor: help;
    transition: var(--transition);
}

.stat-source:hover {
    background: var(--primary-purple);
    transform: scale(1.1);
}

.stat-tooltip {
    position: absolute;
    z-index: 1000;
    background: var(--text-primary);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    max-width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
}

.stat-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.tooltip-content strong {
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
    color: var(--primary-blue);
}

.tooltip-content p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 8px 0;
    color: white;
}

.tooltip-content a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

.tooltip-content a:hover {
    color: var(--primary-purple);
}

/* Next Steps Section */
.next-steps-section {
    margin: 24px 0;
    padding: 24px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.next-steps-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--light-gray);
}

.next-steps-header i {
    font-size: 28px;
    color: var(--primary-blue);
    margin-top: 4px;
}

.next-steps-header h5 {
    font-size: 20px;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.progression-goal {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--gradient-light);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--primary-blue);
    transform: translateX(8px);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h6 {
    font-size: 16px;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.step-detail {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.arcturus-help {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid var(--primary-purple);
    margin-bottom: 12px;
}

.arcturus-help i {
    font-size: 20px;
    color: var(--primary-purple);
    margin-top: 2px;
}

.help-content strong {
    display: block;
    font-size: 13px;
    color: var(--primary-purple);
    margin-bottom: 4px;
}

.help-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.step-timeline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-blue);
}

.step-timeline i {
    font-size: 12px;
}

/* Solution Summary */
.solution-summary {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(64, 123, 255, 0.05) 0%, rgba(144, 74, 255, 0.05) 100%);
    border-radius: 12px;
    border: 2px dashed var(--primary-blue);
}

.solution-summary .solution-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.solution-summary .solution-header i {
    font-size: 24px;
    color: var(--primary-blue);
}

.solution-summary .solution-header h5 {
    font-size: 16px;
    color: var(--text-primary);
    margin: 0;
}

.solution-summary .solution-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.solution-benefit-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    font-size: 13px;
}

.solution-benefit-badge i {
    font-size: 16px;
}

/* Priority-Based Roadmap */
.roadmap-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.roadmap-phase {
    padding: 24px;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid;
}

.roadmap-phase.immediate {
    border-left-color: var(--danger-red);
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.03) 0%, rgba(255, 255, 255, 1) 100%);
}

.roadmap-phase.short-term {
    border-left-color: var(--warning-orange);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.03) 0%, rgba(255, 255, 255, 1) 100%);
}

.roadmap-phase.long-term {
    border-left-color: var(--success-green);
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.03) 0%, rgba(255, 255, 255, 1) 100%);
}

.phase-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--light-gray);
}

.phase-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.roadmap-phase.immediate .phase-icon {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-red);
}

.roadmap-phase.short-term .phase-icon {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-orange);
}

.roadmap-phase.long-term .phase-icon {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-green);
}

.phase-icon i {
    font-size: 24px;
}

.phase-info h4 {
    font-size: 20px;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.phase-timeline {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

.phase-actions {
    display: grid;
    gap: 12px;
}

.action-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

.action-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gradient-light);
    border-radius: 8px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.action-icon i {
    font-size: 16px;
}

.action-content {
    flex: 1;
}

.action-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 6px 0;
}

.action-timeline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.action-timeline i {
    font-size: 11px;
}

/* Roadmap Summary */
.roadmap-summary {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--gradient-light);
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-blue);
}

.summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

.summary-icon i {
    font-size: 28px;
}

.summary-content h4 {
    font-size: 18px;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.summary-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .impact-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        flex-direction: column;
        text-align: center;
    }
    
    .step-card {
        flex-direction: column;
    }
    
    .step-number {
        align-self: flex-start;
    }
    
    .roadmap-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .summary-icon {
        align-self: center;
    }
    
    .stat-tooltip {
        max-width: 250px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .next-steps-section,
    .waste-impact-section {
        padding: 16px;
    }
    
    .roadmap-phase {
        padding: 16px;
    }
    
    .phase-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .maturity-badge {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .stat-tooltip {
        display: none;
    }
    
    .action-card,
    .step-card {
        break-inside: avoid;
    }
    
    .roadmap-phase {
        page-break-inside: avoid;
    }
}
