/* ===========================
   CAPTAIN JON - STYLES COMBAT
   =========================== */

.combat-container {
    color: #c5d8e8;
}

/* PHASE */
.combat-phase {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #1e3a5f;
    text-align: center;
}

.phase-indicator {
    font-size: 1.4em;
    font-weight: bold;
    color: #ffff6b;
    margin-bottom: 5px;
}

.phase-indicator.active {
    color: #6bff6b;
    animation: pulse 2s infinite;
}

.phase-description {
    color: #a0b8cc;
    font-size: 0.9em;
}

.phase-countdown {
    font-size: 1.8em;
    font-weight: bold;
    color: #ff6b6b;
    margin-top: 10px;
}

/* OBJECTIF */
.combat-objective {
    background: rgba(30, 58, 95, 0.3);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #1e3a5f;
}

.combat-objective h3 {
    color: #6bff6b;
    font-size: 1em;
    margin-bottom: 8px;
}

.combat-objective p {
    color: #c5d8e8;
    font-size: 0.9em;
    margin: 0;
}

/* TIMER */
.combat-timer {
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 0.85em;
}

.combat-timer span {
    color: #a0b8cc;
}

.combat-timer strong {
    color: #6bff6b;
}

/* COMPÉTENCES */
.combat-skills {
    margin-bottom: 20px;
}

.combat-skills h3 {
    color: #6bff6b;
    font-size: 1em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #1e3a5f;
}

.skill-card {
    background: rgba(30, 58, 95, 0.2);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #1e3a5f;
    transition: all 0.3s;
}

.skill-card:hover {
    background: rgba(30, 58, 95, 0.4);
    transform: translateX(3px);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.skill-icon {
    font-size: 1.5em;
}

.skill-name {
    font-weight: bold;
    color: #c5d8e8;
    font-size: 1em;
}

.skill-status {
    font-size: 0.85em;
    margin-bottom: 8px;
    padding: 5px 8px;
    border-radius: 5px;
}

.skill-status.locked {
    color: #ff6b6b;
    background: rgba(106, 42, 42, 0.2);
}

.skill-status.unlocked {
    color: #6bff6b;
    background: rgba(45, 80, 22, 0.2);
}

.skill-btn {
    width: 100%;
    padding: 8px 12px;
    background: #1e3a5f;
    color: #c5d8e8;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 5px;
}

.skill-btn:hover:not(:disabled) {
    background: #2a4a6f;
    transform: translateY(-2px);
}

.skill-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.skill-btn.active {
    background: #2d5016;
    box-shadow: 0 0 10px rgba(107, 255, 107, 0.5);
}

.skill-btn.detonate {
    background: #6a2a2a;
    margin-top: 5px;
}

.skill-btn.detonate:hover {
    background: #8a3a3a;
}

/* STATISTIQUES */
.combat-stats {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #1e3a5f;
}

.combat-stats h3 {
    color: #6bff6b;
    font-size: 1em;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #1e3a5f;
}

.stat-line {
    color: #a0b8cc;
    font-size: 0.85em;
    margin: 5px 0;
}

.stat-line strong {
    color: #6bff6b;
    float: right;
}

/* GRILLE - EFFETS DE COMBAT */
.cell.missed-shot {
    background: #1a3a5a;
    opacity: 0.7;
}

.cell.torpedo-start {
    background: #ffff6b;
    box-shadow: 0 0 15px rgba(255, 255, 107, 0.8);
    animation: pulse 1s infinite;
}

.cell.torpedo-trail {
    background: #6b9fff;
    box-shadow: 0 0 10px rgba(107, 159, 255, 0.6);
}

.cell.mine-placed {
    animation: minePulse 2s infinite;
}

.cell.explosion-temp {
    background: #ff4444;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.9);
    animation: explosion 0.5s;
}

.cell.sonar-detected {
    background: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.9);
    animation: sonarPing 1s infinite;
}

.cell.enemy-destroyed {
    animation: destruction 1s;
}

/* MINI-ÉNIGMES */
.mini-enigma {
    animation: fadeIn 0.5s;
}

.dir-btn {
    width: 50px;
    height: 50px;
    background: #1e3a5f;
    color: #c5d8e8;
    border: 2px solid #2a4a6f;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s;
}

.dir-btn:hover {
    background: #2a4a6f;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(58, 90, 143, 0.6);
}

/* ÉCRAN DE VICTOIRE */
.victory-screen {
    animation: victoryAppear 1s;
}

/* ANIMATIONS */
@keyframes minePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes explosion {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes sonarPing {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes destruction {
    0% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(10deg) scale(1.2);
    }
    50% {
        transform: rotate(-10deg) scale(1.3);
    }
    75% {
        transform: rotate(5deg) scale(1.1);
    }
    100% {
        transform: rotate(0deg) scale(1);
    }
}

@keyframes victoryAppear {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* POINTS DE VIE */
.combat-hp {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.hp-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 0.9em;
}

/* CONTRÔLES */
.combat-controls {
    background: rgba(30, 58, 95, 0.3);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #1e3a5f;
}

.combat-controls h3 {
    color: #6bff6b;
    font-size: 0.95em;
    margin-bottom: 10px;
    text-align: center;
}

.movement-btns {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.move-btn {
    width: 50px;
    height: 50px;
    background: #1e3a5f;
    color: #c5d8e8;
    border: 2px solid #2a4a6f;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s;
}

.move-btn:hover {
    background: #2a4a6f;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(58, 90, 143, 0.6);
}

/* COMPÉTENCES SIMPLES */
.combat-skill {
    background: rgba(30, 58, 95, 0.2);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #1e3a5f;
}

.combat-skill h3 {
    color: #c5d8e8;
    font-size: 0.95em;
    margin-bottom: 8px;
}

/* GRILLE - SOUS-MARINS */
.cell.player-sub {
    box-shadow: 0 0 15px rgba(107, 159, 255, 0.8);
}

.cell.enemy-sub {
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.8);
}

.cell.sonar-zone {
    background: rgba(255, 255, 107, 0.3);
    border-color: #ffff6b;
    box-shadow: 0 0 10px rgba(255, 255, 107, 0.5);
}

/* BOUTONS DIRECTION SIMPLES */
.dir-btn-simple {
    width: 50px;
    height: 50px;
    background: #1e3a5f;
    color: #c5d8e8;
    border: 2px solid #2a4a6f;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s;
}

.dir-btn-simple:hover {
    background: #2a4a6f;
    transform: scale(1.05);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .skill-card {
        padding: 10px;
    }
    
    .skill-icon {
        font-size: 1.2em;
    }
    
    .skill-btn {
        font-size: 0.85em;
        padding: 6px 10px;
    }
    
    .dir-btn, .dir-btn-simple {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }
    
    .move-btn {
        width: 45px;
        height: 45px;
        font-size: 1em;
    }
}