/* === MODULE 8.2: COMPARISON (H2H) === */

.comparison-block {
    display: flex;
    flex-direction: row; /* Text Left */
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

/* Card Container */
.comparison-card-ui {
    background: #fff; /* White bg like screenshot 1 */
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    font-family: 'Montserrat', sans-serif;
    color: #1e293b; /* Dark text for white card */
}

/* 1. Header */
.cmp-header {
    background: #f8fafc; padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex; justify-content: space-between; align-items: center;
}

.cmp-player { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 80px; }
.cp-avatar img { width: 60px; height: 60px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.cp-name { font-weight: 700; font-size: 0.85rem; color: #1e293b; }
.hero .cp-avatar img { border-color: #3b82f6; }
.rival .cp-avatar img { border-color: #94a3b8; }

.cmp-vs { display: flex; flex-direction: column; align-items: center; }
.vs-text { font-size: 1.5rem; font-weight: 900; color: #cbd5e1; font-style: italic; }
.vs-badge {
    font-size: 0.7rem; font-weight: 700; padding: 4px 8px; border-radius: 4px; margin-top: -5px;
}
.vs-badge.negative { background: #fee2e2; color: #ef4444; } /* Red bg */

/* 2. Body & Skill Rows */
.cmp-body { padding: 20px; }
.cmp-section-title {
    font-size: 0.75rem; font-weight: 700; color: #3b82f6; text-transform: uppercase; margin-bottom: 15px; letter-spacing: 0.5px;
}

.cmp-row {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.main-row {
    background: #f8fafc; padding: 8px; border-radius: 6px; border: 1px solid #e2e8f0; margin-bottom: 20px;
}

.cr-label { width: 100px; font-size: 0.7rem; font-weight: 700; color: #64748b; text-transform: uppercase; }

/* The Bars */
.cr-bars {
    flex: 1; height: 8px; background: #f1f5f9; border-radius: 4px; position: relative;
}
.bar-bg {
    position: absolute; top: 0; left: 0; height: 100%; 
    background: #cbd5e1; border-radius: 4px; z-index: 1; /* Rival (Grey) */
}
.bar-fill {
    position: absolute; top: 0; left: 0; height: 100%; 
    background: #3b82f6; border-radius: 4px; z-index: 2; /* Hero (Blue) */
    box-shadow: 2px 0 5px rgba(59, 130, 246, 0.3);
}
.bar-fill.winning { width: 100%; z-index: 3; } /* If hero wins, cover rival */

/* Numbers */
.cr-diff { 
    width: 30px; text-align: right; font-size: 0.75rem; font-weight: 700; 
}
.cr-diff.negative { color: #ef4444; }
.cr-diff.positive { color: #22c55e; }

.cr-val { width: 30px; text-align: right; font-size: 0.9rem; font-weight: 800; color: #1e293b; }


/* 3. Forecast Section */
.cmp-forecast {
    margin-top: 25px; padding-top: 20px; border-top: 1px solid #e2e8f0;
}
.cf-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
    font-size: 0.8rem; font-weight: 800; color: #1e293b; text-transform: uppercase;
}
.growth-rate { font-size: 0.7rem; font-weight: 600; }
.gr-hero { color: #3b82f6; }
.gr-rival { color: #94a3b8; }

.cf-svg { width: 100%; height: 60px; overflow: visible; }
.cf-labels { display: flex; justify-content: space-between; font-size: 0.65rem; color: #94a3b8; margin-top: 5px; }
.cf-legend { text-align: center; font-size: 0.7rem; margin-top: 5px; font-weight: 600; }
.legend-blue { color: #3b82f6; margin-right: 10px; }
.legend-grey { color: #94a3b8; }


/* Responsive */
@media (max-width: 900px) {
    .comparison-block { flex-direction: column; gap: 30px; }
    .feature-visual { width: 100%; }
}