:root {
    --hero-primary: #FFD700;
    --hero-secondary: #FFA500;
    --hero-accent: #FF4500;
    --primary-gradient: linear-gradient(135deg, #FF6B6B, #FFB700);
    --secondary-gradient: linear-gradient(135deg, #45B7D1, #4666FF);
    --surface-gradient-dark: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --hero-gradient-1: #FF6B6B;
    --hero-gradient-2: #4ECDC4;
    --hero-gradient-3: #45B7D1;
    --hero-badge-1: #FFE66D;
}

.heroes-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(80px);
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.85)), linear-gradient(145deg, var(--hero-primary), var(--hero-accent));
    background-blend-mode: overlay, overlay, multiply, normal;
    border-radius: 30px;
}

/* Amélioration de la grille des héros */
.heroes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 1rem;
    perspective: 1000px;
}

.hero-card {
    position: relative;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(69, 183, 209, 0.12));
    border-radius: 30px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 107, 107, 0.08), transparent 40%), radial-gradient(circle at 80% 80%, rgba(78, 205, 196, 0.08), transparent 40%);
    opacity: 0.5;
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(var(--hero-primary-rgb), 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    border-color: rgba(78, 205, 196, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 30px rgba(78, 205, 196, 0.1);
}

.hero-card:hover::before {
    opacity: 1;
}

.hero-card:hover::after {
    opacity: 1;
}

.hero-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--hero-gradient-1), var(--hero-gradient-2));
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: white;
    box-shadow: 0 4px 15px rgba(var(--hero-primary-rgb), 0.3);
    z-index: 2;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-status-badge i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
}

.hero-status-badge span {
    color: white;
}

.hero-card:hover .hero-status-badge {
    background: linear-gradient(135deg, var(--hero-gradient-2), var(--hero-gradient-1));
    box-shadow: 0 4px 20px rgba(var(--hero-primary-rgb), 0.4);
}

/* Garder la structure originale de l'avatar mais améliorer son style */
.hero-avatar {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.hero-avatar::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle at center, rgba(255, 107, 107, 0.2), transparent 50%), radial-gradient(circle at center, rgba(78, 205, 196, 0.2), transparent 70%);
    animation: rotateGradient 8s linear infinite;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-avatar-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--hero-gradient-1), var(--hero-gradient-2));
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: rotate(45deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 30px rgba(255, 107, 107, 0.3);
    overflow: hidden;
}

.hero-avatar-icon::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.hero-avatar-icon::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 27px;
}

.hero-card:hover .hero-avatar-icon {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 107, 107, 0.4);
}

.hero-avatar-icon i {
    font-size: 2.25rem;
    color: rgba(255, 255, 255, 0.95);
    transform: rotate(-45deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero-card:hover .hero-avatar-icon i {
    transform: rotate(0deg) scale(1.1);
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Style amélioré pour les informations */
.hero-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0.5rem;
}

.hero-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.hero-rank {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.hero-rank .rank-number {
    color: var(--hero-gradient-1);
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.hero-rank .rank-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Stats section */
.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.hero-stat:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.hero-stat i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    opacity: 0.9;
}

.hero-stat:nth-child(1) i {
    color: rgba(255, 107, 107, 0.9);
}

.hero-stat:nth-child(2) i {
    color: rgba(78, 205, 196, 0.9);
}

.hero-stat:nth-child(3) i {
    color: rgba(69, 183, 209, 0.9);
}

.hero-stat span {
    font-weight: 500;
    letter-spacing: 0.3px;
}

.header-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 20px;
    justify-content: center;
}

.heroes-count, .users-count {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.count-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.users-count .count-number {
    color: #fff;
}

.count-label {
    font-size: 1rem;
    color: #FFF;
    font-weight: 500;
}

.separator {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
    margin: 0 0.5rem;
}

@media (max-width: 768px) {
    .header-stats {
        padding: 0.5rem 1rem;
    }

    .count-number {
        font-size: 1.25rem;
    }

    .count-label {
        font-size: 0.9rem;
    }

    .separator {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .header-stats {
        padding: 0.5rem 0.75rem;
        gap: 0.75rem;
    }

    .count-number {
        font-size: 1.1rem;
    }

    .count-label {
        font-size: 0.85rem;
    }

    .separator {
        font-size: 1.1rem;
        margin: 0 0.25rem;
    }
}

/* Animation au chargement des cartes */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Nouveau style pour les filtres */
.heroes-filters {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 24px;
    margin: -3rem auto 4rem;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

/* Style de la barre de recherche */
.heroes-search-form {
    flex: 1;
    position: relative;
    min-width: 200px;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

/* Suppression des styles de l'icône */
.search-input-wrapper i {
    display: none;
}

/* Style de la barre de recherche - Suppression de l'icône */
.heroes-search-form input[type="text"] {
    width: 100%;
    padding: 0.5rem 0.5rem 0.5rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* État de chargement */
.heroes-content.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.heroes-content.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    z-index: 10;
}

/* Styles pour la page des héros */
.heroes-container {
    padding: 0 max(1rem, calc((100% - 1400px) / 2));
    margin-top: -40px;
}

.heroes-header {
    background: linear-gradient(120deg, #2b5876 0%, #4e4376 100%);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    border-radius: clamp(20px, 3vw, 30px);
    max-width: 1400px;
}

.header-left {
    position: relative;
    padding: clamp(2rem, 5vw, 4rem);
    width: clamp(300px, 60%, 800px);
    background: rgba(255, 255, 255, 0.1);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    backdrop-filter: blur(10px);
}

.header-title-new {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    font-weight: 800;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
    position: relative;
}

.header-title-new::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: clamp(60px, 8vw, 80px);
    height: 4px;
    background: linear-gradient(90deg, #00ff87 0%, #60efff 100%);
    border-radius: 2px;
}

.heroes-count {
    display: inline-flex;
    align-items: center;
    padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(1.5rem, 3vw, 2rem);
    background: linear-gradient(135deg, #00ff87 0%, #00b7cb 100%);
    color: #1a1a1a;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 700;
    margin: clamp(1rem, 3vw, 2rem) 0;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(0, 255, 135, 0.3);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.heroes-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.7;
    margin-top: clamp(1rem, 2vw, 1.5rem);
    max-width: min(600px, 90%);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.header-right {
    position: relative;
    width: clamp(120px, 40%, 400px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
}

.hero-illustration {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    z-index: 10;
}

.hero-illustration i {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    width: clamp(50px, 8vw, 80px);
    height: clamp(50px, 8vw, 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: clamp(10px, 2vw, 20px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-illustration i::before {
    position: relative;
    z-index: 2;
}

.hero-illustration i::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.hero-illustration i:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.hero-illustration i:hover::after {
    transform: translateY(0);
}

.crown-icon {
    transform: rotate(-5deg);
    animation: float1 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.trophy-icon {
    transform: rotate(0deg);
    animation: float2 7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.medal-icon {
    transform: rotate(5deg);
    animation: float3 5.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes float1 {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    40% {
        transform: translateY(-10px) rotate(-3deg);
    }
    60% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    45% {
        transform: translateY(-12px) rotate(2deg);
    }
    55% {
        transform: translateY(-12px) rotate(1deg);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translateY(0) rotate(5deg);
    }
    42% {
        transform: translateY(-8px) rotate(3deg);
    }
    58% {
        transform: translateY(-8px) rotate(4deg);
    }
}

/* Ajuster l'animation pour mobile */
@media (max-width: 768px) {
    .heroes-container {
        padding: 1rem;
    }

    .heroes-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem;
        background: linear-gradient(135deg, #2b5876 0%, #4e4376 100%);
        margin: 0;
        border-radius: 16px;
    }
    
    .header-left {
        width: 100%;
        max-width: 100%;
        clip-path: none;
        padding: 0;
        background: none;
        backdrop-filter: none;
    }

    .header-title-new {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .header-title-new::after {
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 2px;
        bottom: -6px;
    }
    
    .heroes-count {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
        margin: 1rem 0;
        background: #00ff87;
    }
    
    .heroes-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin: 1rem auto;
        opacity: 0.9;
    }
    
    .header-right {
        width: 100%;
        max-width: none;
        padding: 1.5rem 0 0 0;
    }
    
    .hero-illustration {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-illustration i {
        font-size: 1.25rem;
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .heroes-container {
        padding: 0.75rem;
    }
    
    .heroes-header {
        margin-bottom: 1rem;
    }
    
    .header-title-new {
        font-size: 1.75rem;
    }
    
    .heroes-description {
        font-size: 0.85rem;
        margin: 0.75rem auto;
    }
    
    .hero-illustration i {
        font-size: 1.1rem;
        width: 40px;
        height: 40px;
    }
}

/* État vide amélioré */
.heroes-empty {
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.heroes-empty-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 1.5rem;
    animation: floatIcon 3s ease-in-out infinite;
}

.heroes-empty-title {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-weight: 600;
}

.heroes-empty-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.heroes-empty-search-term {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: var(--hero-primary);
    font-weight: 500;
}

.heroes-empty-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--hero-gradient-1), var(--hero-gradient-2));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.heroes-empty-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@media (max-width: 768px) {
    .heroes-empty {
        padding: 3rem 1.5rem;
        margin: 1.5rem auto;
    }

    .heroes-empty-icon {
        font-size: 3rem;
    }

    .heroes-empty-title {
        font-size: 1.25rem;
    }

    .heroes-empty-text {
        font-size: 1rem;
    }
}

/* Thème clair - en préservant le header original */
.theme-light {
    background: #f5f7fa;
    color: #2c3e50;
}

/* Suppression de toutes les règles affectant le header */
.theme-light .hero-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.theme-light .hero-stats {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-light .hero-stat {
    background: rgba(255, 255, 255, 0.5);
    color: #2c3e50;
}

/* Les filtres */
.theme-light .heroes-filters {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.theme-light .heroes-search-form input[type="text"] {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #2c3e50;
}

.theme-light .sort-select {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #2c3e50;
}

/* État vide */
.theme-light .heroes-empty {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-light .heroes-empty-title {
    color: #2c3e50;
}

.theme-light .heroes-empty-text {
    color: #5d6d7e;
}

.theme-light .heroes-empty-search-term {
    background: rgba(0, 0, 0, 0.05);
    color: #2c3e50;
}

/* Ajout de la couleur de l'icône pour l'état vide en thème clair */
.theme-light .heroes-empty-icon {
    color: rgba(0, 0, 0, 0.2);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.theme-light .heroes-empty-icon .fa-search {
    color: rgba(0, 0, 0, 0.3);
}

/* État de chargement */
.theme-light .heroes-content.loading::after {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}

/* Forcer le texte du header en blanc, même en mode clair */
.heroes-header .header-title-new,
.theme-light .heroes-header .header-title-new {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Forcer le séparateur en blanc */
.heroes-header .separator,
.theme-light .heroes-header .separator {
    color: rgba(255, 255, 255, 0.3) !important;
}

.filters-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input-wrapper input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--input-bg);
    color: var(--text-color);
}

.search-input-wrapper input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.1);
}

/* Style du select de tri */
.heroes-sort {
    position: relative;
    min-width: 200px;
}

.heroes-sort select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    font-size: 1rem;
    appearance: none;
    background: var(--input-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 45px;
}

.heroes-sort select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.1);
}

.heroes-sort::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
}

.heroes-sort:hover::after {
    color: var(--text-color);
}

@media (max-width: 768px) {
    .filters-wrapper {
        flex-direction: column;
    }
    
    .heroes-sort {
        width: 100%;
        min-width: 0;
    }
    
    .heroes-filters {
        padding: 1.5rem;
    }
}