/* 综合分析仪表盘样式 */

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.dashboard-header h2 {
    color: #5b21b6;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.player-summary {
    color: #666;
    font-size: 0.95rem;
}

/* 可视化区域 */
.visualization-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.viz-left, .viz-right {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.viz-left h3, .viz-right h3 {
    color: #5b21b6;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.radar-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* 热力图 */
.heatmap-container {
    min-height: 300px;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.heatmap-cell {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: white;
    font-weight: 600;
    transition: transform 0.2s;
    cursor: pointer;
}

.heatmap-cell:hover {
    transform: scale(1.05);
}

.cell-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.cell-value {
    display: block;
    font-size: 1.3rem;
}

/* 对阵列表 */
.matchup-list {
    margin-top: 40px;
}

.matchup-list h3 {
    color: #5b21b6;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.matchup-card {
    background: white;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.matchup-card:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.opponent-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rank-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.opponent-details h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.2rem;
}

.opponent-meta {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
}

.win-rate-display {
    text-align: center;
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
}

.rate-emoji {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 5px;
}

.rate-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.rate-high .rate-value { color: #10b981; }
.rate-medium .rate-value { color: #f59e0b; }
.rate-low .rate-value { color: #ef4444; }

.rate-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

/* 胜率条 */
.win-rate-bar {
    display: flex;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bar-fill {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.5s;
    position: relative;
}

.bar-main {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.bar-opponent {
    background: linear-gradient(90deg, #e5e7eb 0%, #d1d5db 100%);
}

.bar-label {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bar-opponent .bar-label {
    color: #666;
    text-shadow: none;
}

/* 关键数据 */
.key-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
}

.stat-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

/* 战术建议和冠军洞察 */
.tactical-section, .champion-section {
    margin-top: 15px;
}

.expand-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.expand-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.expand-btn .arrow {
    font-size: 0.8rem;
}

.tactical-content, .champion-content {
    margin-top: 15px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.advice-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px;
    background: white;
    border-radius: 6px;
}

.advice-item:last-child {
    margin-bottom: 0;
}

.advice-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* 冠军洞察卡片 */
.champion-insight-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
}

.champion-quote blockquote {
    margin: 0 0 15px 0;
    padding: 15px;
    background: rgba(102, 126, 234, 0.1);
    border-left: 4px solid #667eea;
    font-style: italic;
    color: #555;
}

.champion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    padding: 5px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
}

.champion-application {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 综合分析 */
.summary-section {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 12px;
}

.summary-section h3 {
    color: #5b21b6;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.summary-content p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.summary-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.summary-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.summary-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #5b21b6;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .visualization-area {
        grid-template-columns: 1fr;
    }
    
    .key-stats {
        grid-template-columns: 1fr;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-header h2 {
        font-size: 1.4rem;
    }
    
    .card-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .heatmap-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}
