/* Heroes page - dark theme */
.heroes-header {
    background: var(--bg-surface-elevated);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 25px;
}

.heroes-filter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 140px;
}

.filter-group label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
}

.filter-group select {
    padding: 12px 16px;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    background: var(--bg-surface);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
}

.filter-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-muted);
}

.filter-group select:hover {
    border-color: var(--accent);
}

.heroes-submit-btn {
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.heroes-submit-btn:hover {
    background: var(--accent-hover);
}

.season-info {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* ===== Heroes grid — dota1x6 chrome =====
   Sharp 2px corners, flat card bg (#0a1823 = page card colour), no
   borders, dropshadow underneath every card. Hover lifts the card 2px
   and lights up the hero name in orange. */
.heroes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.hero-card {
    position: relative;
    background: var(--color-bg-base, #0a1823);
    border: none;
    border-radius: 2px;
    padding: 14px 14px 12px;
    text-align: center;
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.85),
                inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1),
                box-shadow 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.9),
                inset 0 0 0 1px rgba(251, 140, 7, 0.32);
}

.hero-card a {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.hero-card img {
    width: 100%;
    aspect-ratio: 256 / 144;
    height: auto;
    border-radius: 2px;
    object-fit: cover;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.55);
    transition: filter 200ms;
}

.hero-card:hover img { filter: brightness(1.08); }

.hero-name {
    font-family: var(--font-display, 'Reaver');
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-strong, #fff);
    margin-bottom: 10px;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.57);
    transition: color 200ms;
}
.hero-card:hover .hero-name { color: var(--color-primary-500, #fb8c07); }

.hero-abilities {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
    margin-top: 8px;
}

.hero-abilities img {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-abilities img:hover {
    transform: scale(1.4);
    border-color: var(--color-primary-500, #fb8c07);
    z-index: 1;
}

.hero-stats {
    background: rgba(8, 16, 21, 0.55);          /* slightly inset over card */
    border-radius: 2px;
    padding: 8px 10px;
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--color-text-muted, #8e97a4);
    font-family: var(--font-sans);
    text-align: left;
}

.hero-stats div {
    white-space: nowrap;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.hero-stats strong {
    color: var(--color-text-muted);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 10px;
}

.stats-value {
    color: var(--color-text-strong, #fff);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        min-width: auto;
        width: 100%;
    }

    .heroes-submit-btn {
        align-self: stretch;
        margin-top: 10px;
    }

    .heroes-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}
