/* Dota 2 Player Stats — Стили */

.dota-theme {
    --dota-radiant: #34d399;
    --dota-dire: #f43f5e;
    --dota-gold: #f59e0b;
}

.dota-search-card {
    background: rgba(18, 24, 38, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
}

/* Профиль игрока Header */
.player-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.player-main-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-avatar-wrap {
    position: relative;
}

.player-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--dota-gold);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
    object-fit: cover;
}

.player-name-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-nickname {
    font-size: 26px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.player-account-id {
    font-size: 13px;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.rank-badge-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.rank-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--dota-gold);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

/* Карточки Win/Loss */
.winrate-bar-container {
    margin-top: 10px;
}

.winrate-bar-bg {
    width: 100%;
    height: 10px;
    background: #f43f5e;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
}

.winrate-bar-fill {
    height: 100%;
    background: #34d399;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

.winrate-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    margin-top: 6px;
}

/* Топ герои */
.heroes-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.hero-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    transition: all var(--transition);
}

.hero-stat-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-stat-img {
    width: 54px;
    height: 30px;
    border-radius: 4px;
    object-fit: cover;
}

.hero-stat-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stat-name {
    font-size: 14px;
    font-weight: 700;
}

.hero-stat-numbers {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Канвас-график героев */
.hero-canvas-wrap {
    width: 100%;
    margin-top: 14px;
    border-radius: var(--radius-md);
    background: #090d16;
    padding: 10px;
    border: 1px solid var(--border-color);
}

#heroBarChart {
    width: 100%;
    height: 280px;
    display: block;
}

/* История матчей */
.match-history-table td {
    padding: 10px 14px;
}

.match-result-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.match-result-badge.win {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.match-result-badge.loss {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.3);
}
