/* Hero Matchup Matrix Styles */

.hero-matchup-matrix-container {
    padding: 20px;
    color: #ddd;
}

.hero-matchup-matrix-container h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.analysis-description {
    color: #aaa;
    margin-bottom: 20px;
}

.matchup-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    background-color: rgba(30, 35, 40, 0.5);
    padding: 15px;
    border-radius: 5px;
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-section label {
    font-size: 0.9rem;
    color: #bbb;
}

.filter-select {
    background-color: #2a2a2a;
    color: #eee;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 6px 10px;
    min-width: 150px;
    font-size: 0.9rem;
}

.hero-filter-input {
    background-color: #2a2a2a;
    color: #eee;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 6px 10px;
    min-width: 200px;
    font-size: 0.9rem;
}

.matchup-legend {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
}

.legend-color {
    display: inline-block;
    width: 20px;
    height: 12px;
    border-radius: 2px;
}

.high-win .legend-color {
    background-color: rgba(63, 185, 80, 0.7);
}

.fifty-win .legend-color {
    background-color: rgba(255, 196, 0, 0.7);
}

.low-win .legend-color {
    background-color: rgba(248, 81, 73, 0.7);
}

.insufficient .legend-color {
    background-color: rgba(100, 100, 100, 0.5);
}

.matchup-info {
    margin-bottom: 20px;
    background-color: rgba(50, 84, 115, 0.3);
    padding: 10px 15px;
    border-radius: 4px;
    border-left: 4px solid #3794ff;
}

.matchup-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #bbc;
}

.matchup-matrix-wrapper {
    position: relative;
    overflow-x: auto;
    margin-top: 20px;
    max-height: 800px;
    overflow-y: auto;
}

.matchup-table {
    border-collapse: collapse;
    min-width: 100%;
    font-size: 0.8rem;
}

.matchup-hero-header {
    padding: 5px;
    text-align: center;
    background-color: rgba(30, 35, 40, 0.7);
    border: 1px solid #444;
    position: sticky;
    top: 0;
    z-index: 2;
}

.matchup-table tr th:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    background-color: rgb(30, 35, 45);
}

.matchup-hero-img {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background-color: #222;
}

.matchup-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.matchup-hero-name {
    font-size: 0.8rem;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.matchup-cell {
    padding: 8px;
    text-align: center;
    border: 1px solid #333;
    min-width: 50px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.matchup-cell:hover {
    opacity: 0.8;
}

.high-win-rate {
    background-color: rgba(63, 185, 80, 0.5);
    color: #fff;
}

.average-win-rate {
    background-color: rgba(255, 196, 0, 0.5);
    color: #fff;
}

.low-win-rate {
    background-color: rgba(248, 81, 73, 0.5);
    color: #fff;
}

.insufficient-data {
    background-color: rgba(100, 100, 100, 0.3);
    color: #888;
}

.game-count {
    background-color: rgba(77, 128, 153, 0.5);
    color: #fff;
}

.loading-message {
    text-align: center;
    padding: 30px;
    color: #aaa;
}

.no-data {
    text-align: center;
    padding: 30px;
    color: #aaa;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .matchup-hero-img {
        width: 30px;
        height: 30px;
    }
    
    .matchup-cell {
        padding: 5px;
        min-width: 40px;
    }
}

@media (max-width: 768px) {
    .matchup-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-section {
        width: 100%;
    }
} 