/* AI Recommendations Styling */

.ai-recommendations-section {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
}

.ai-header {
    text-align: center;
    margin-bottom: 40px;
}

.ai-header h2 {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 10px;
}

.ai-subtitle {
    font-size: 1.2em;
    color: #666;
}

/* Profile Summary Card */
.profile-summary-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.profile-summary-card h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.summary-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.summary-label {
    display: block;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
}

.summary-value {
    display: block;
    font-size: 1.2em;
    color: #333;
    font-weight: 700;
}

.summary-value.severity-severe {
    color: #d32f2f;
}

.summary-value.severity-moderate {
    color: #ff9800;
}

.summary-value.severity-mild {
    color: #4caf50;
}

/* Priorities List */
.priorities-list {
    margin-top: 20px;
    padding: 20px;
    background: #fff9f0;
    border-radius: 10px;
    border-left: 4px solid #ff9800;
}

.priorities-list h4 {
    color: #ff9800;
    margin-bottom: 15px;
}

.priorities-list ol {
    margin-left: 20px;
}

.priorities-list li {
    margin-bottom: 15px;
    line-height: 1.6;
}

.priority-severity {
    color: #666;
    font-size: 0.9em;
}

/* Top Recommendations */
.top-recommendations {
    margin-bottom: 40px;
}

.top-recommendations h3 {
    color: #667eea;
    font-size: 2em;
    margin-bottom: 15px;
}

.recommendations-intro {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 25px;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
}

/* AI Recommendation Card */
.ai-recommendation-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
}

.ai-recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.ai-recommendation-card.high-confidence {
    border-left: 5px solid #4caf50;
}

.ai-recommendation-card.medium-confidence {
    border-left: 5px solid #ff9800;
}

.ai-recommendation-card.low-confidence {
    border-left: 5px solid #9e9e9e;
}

.rec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.rec-rank {
    font-size: 2em;
    font-weight: 700;
    color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rec-confidence {
    text-align: right;
}

.confidence-label {
    font-size: 0.8em;
    color: #666;
}

.confidence-value {
    font-size: 1.5em;
    font-weight: 700;
    color: #4caf50;
}

.rec-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.rec-effect-size {
    margin-bottom: 15px;
    padding: 10px;
    background: #f0f4ff;
    border-radius: 8px;
}

.effect-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    margin-left: 10px;
}

.effect-badge.effect-very-high {
    background: #d32f2f;
    color: white;
}

.effect-badge.effect-high {
    background: #ff9800;
    color: white;
}

.effect-badge.effect-moderate {
    background: #4caf50;
    color: white;
}

.effect-badge.effect-low {
    background: #9e9e9e;
    color: white;
}

.rec-reasons {
    margin-bottom: 15px;
}

.rec-reasons ul {
    margin-left: 20px;
    margin-top: 10px;
}

.rec-reasons li {
    margin-bottom: 8px;
    color: #555;
}

.rec-details {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.detail-item {
    margin-bottom: 8px;
    color: #555;
}

.view-details-btn, .toggle-match-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.view-details-btn:hover, .toggle-match-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.toggle-match-btn {
    background: #f0f0f0;
    color: #333;
}

/* Match Details */
.rec-match-details {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.rec-match-details h5 {
    color: #667eea;
    margin-bottom: 15px;
}

.match-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-bar-container {
    display: grid;
    grid-template-columns: 150px 1fr 60px;
    align-items: center;
    gap: 10px;
}

.match-bar-label {
    font-size: 0.9em;
    color: #666;
}

.match-bar-wrapper {
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.match-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s;
}

.match-bar.bar-high {
    background: linear-gradient(90deg, #4caf50, #66bb6a);
}

.match-bar.bar-medium {
    background: linear-gradient(90deg, #ff9800, #ffa726);
}

.match-bar.bar-low {
    background: linear-gradient(90deg, #9e9e9e, #bdbdbd);
}

.match-bar-value {
    text-align: right;
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

/* Implementation Strategy */
.implementation-strategy {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.implementation-strategy h3 {
    color: #667eea;
    font-size: 2em;
    margin-bottom: 15px;
}

.strategy-intro {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 25px;
}

.strategy-phases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.strategy-phase {
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid;
}

.strategy-phase.phase-1 {
    background: #fff3e0;
    border-left-color: #ff9800;
}

.strategy-phase.phase-2 {
    background: #e3f2fd;
    border-left-color: #2196f3;
}

.strategy-phase.phase-3 {
    background: #e8f5e9;
    border-left-color: #4caf50;
}

.strategy-phase h4 {
    margin-bottom: 15px;
    color: #333;
}

.strategy-phase ul {
    margin-left: 20px;
}

.strategy-phase li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.strategy-notes {
    padding: 20px;
    background: #fff9f0;
    border-radius: 10px;
    border-left: 5px solid #ff5722;
}

.strategy-notes h4 {
    color: #ff5722;
    margin-bottom: 15px;
}

.strategy-notes ul {
    margin-left: 20px;
}

.strategy-notes li {
    margin-bottom: 10px;
    color: #555;
}

/* Intervention Mix Analysis */
.intervention-mix-analysis {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.intervention-mix-analysis h3 {
    color: #667eea;
    font-size: 2em;
    margin-bottom: 25px;
}

.mix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.mix-card {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.mix-card h4 {
    color: #333;
    margin-bottom: 20px;
}

.category-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-bar-item {
    display: grid;
    grid-template-columns: 120px 1fr 40px;
    align-items: center;
    gap: 10px;
}

.cat-label {
    font-size: 0.9em;
    color: #666;
}

.cat-bar-wrapper {
    height: 18px;
    background: #e0e0e0;
    border-radius: 9px;
    overflow: hidden;
}

.cat-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 9px;
}

.cat-count {
    text-align: right;
    font-weight: 600;
    color: #333;
}

.impact-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.impact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
}

.impact-item.impact-high {
    background: #ffebee;
    border-left: 4px solid #d32f2f;
}

.impact-item.impact-moderate {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
}

.impact-item.impact-low {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.impact-label {
    font-weight: 600;
    color: #333;
}

.impact-count {
    font-size: 1.5em;
    font-weight: 700;
    color: #667eea;
}

.diversity-score {
    text-align: center;
}

.diversity-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.diversity-value {
    font-size: 2.5em;
    font-weight: 700;
    color: white;
}

.diversity-description {
    color: #666;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    .strategy-phases {
        grid-template-columns: 1fr;
    }
    
    .mix-grid {
        grid-template-columns: 1fr;
    }
    
    .match-bar-container {
        grid-template-columns: 100px 1fr 50px;
    }
    
    .category-bar-item {
        grid-template-columns: 100px 1fr 30px;
    }
}
