/* === STYLES POUR LES HÉROS DANS LA TIMELINE === */

.heroes-section {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-card);
    margin-top: 20px;
}

.heroes-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#heroes-display {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Carte de héros */
.hero-card {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.95), rgba(26, 26, 26, 0.98));
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.hero-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Header du héros */
.hero-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-thumb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary);
    margin-right: 12px;
}

.hero-info {
    flex: 1;
}

.hero-name {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.4rem;
    color: var(--color-accent);
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

.player-name {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Stats du héros */
.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.stat-label {
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    min-width: 100px;
}

.stat-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-value {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: #ffffff;
}

.stat-btn {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.stat-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-secondary);
}

.stat-btn.small {
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
}

.stat-btn.tiny {
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
}

/* Points de vie */
.hero-hp.low-hp {
    color: #ff4444;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 68, 68, 0.8);
}

/* Survivants */
.survivor-controls {
    display: flex;
    gap: 15px;
}

.survivor-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.survivor-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Munitions */
.ammo-controls {
    display: flex;
    gap: 15px;
}

.ammo-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ammo-label {
    font-size: 0.8rem;
}

.ammo-label.blue {
    color: #60a5fa;
}

.ammo-label.red {
    color: #f87171;
}

/* Compteurs de réussites */
.success-counters {
    display: flex;
    gap: 10px;
    justify-content: space-around;
}

.counter-group {
    display: flex;
    align-items: center;
    gap: 3px;
}

.counter-label {
    font-weight: bold;
    font-size: 0.9rem;
}

.counter-label.critical {
    color: #ffd700;
}

.counter-label.success {
    color: #44ff44;
}

.counter-label.failure {
    color: #ff4444;
}

.counter-label.legendary {
    color: #ff00ff;
}

/* Actions du héros */
.hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: bold;
}

.action-btn.combat {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.3), rgba(255, 68, 68, 0.2));
    border-color: var(--color-primary);
}

.action-btn.combat:hover {
    background: var(--color-primary);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.action-btn.reset {
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.3), rgba(255, 200, 0, 0.2));
    border-color: var(--color-accent);
}

.action-btn.reset:hover {
    background: var(--color-accent);
    color: #000;
}

/* Notification d'import */
.import-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.98), rgba(26, 26, 26, 0.99));
    border: 2px solid var(--color-accent);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    z-index: 10000;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.notification-content h3 {
    margin: 0 0 10px 0;
    color: var(--color-accent);
}

.notification-content p {
    margin: 0 0 15px 0;
    color: rgba(255, 255, 255, 0.8);
}

.btn-import {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 10px;
}

.btn-import:hover {
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.btn-dismiss {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.btn-dismiss:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Toast notifications */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.98), rgba(26, 26, 26, 0.99));
    border: 2px solid var(--color-success);
    border-radius: 10px;
    padding: 15px 25px;
    color: white;
    font-weight: bold;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    z-index: 10001;
    transition: transform 0.3s ease;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
}

/* Bouton d'import manuel dans la section héros */
#importCombatResults {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

#importCombatResults:hover {
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    transform: scale(1.05);
}

/* Badge indicateur de données en attente */
.pending-badge {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    border-radius: 50%;
    margin-left: 5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 170, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 170, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 170, 0, 0);
    }
}