/* 🔊 NARRATOR VOICE STYLES - POST-APO THEME */

/* Indicateur de narration */
#narrator-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(255,0,0,0.8), rgba(0,0,0,0.9));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 10000;
    transition: all 0.3s;
    border: 2px solid #ff0000;
    cursor: pointer;
    opacity: 0.7;
}

#narrator-indicator:hover {
    opacity: 1;
    transform: scale(1.1);
}

#narrator-indicator.speaking {
    animation: pulse-speak 1s infinite;
    box-shadow: 0 0 30px rgba(255,0,0,0.8);
}

@keyframes pulse-speak {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255,0,0,0.8);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 40px rgba(255,0,0,1);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255,0,0,0.8);
    }
}

/* Boutons de narration sur les cartes */
.narrator-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B0000, #000000);
    border: 2px solid #ff0000;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.6;
    z-index: 100;
}

.narrator-btn:hover {
    opacity: 1;
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 0 20px rgba(255,0,0,0.6);
}

.narrator-btn:active {
    transform: scale(0.95);
}

/* Effet sur les cartes pendant la narration */
.card.narrator-speaking {
    animation: card-glow 2s infinite;
    border-color: #ff0000 !important;
}

@keyframes card-glow {
    0% {
        box-shadow: 0 0 10px rgba(255,0,0,0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(255,0,0,0.8),
                    0 0 60px rgba(255,0,0,0.4);
    }
    100% {
        box-shadow: 0 0 10px rgba(255,0,0,0.5);
    }
}

/* Panneau de contrôle du narrateur */
.narrator-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(0,0,0,0.95), rgba(42,0,0,0.95));
    border: 2px solid #ff0000;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.narrator-controls button {
    background: linear-gradient(135deg, #8B0000, #000000);
    border: 1px solid #ff0000;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
}

.narrator-controls button:hover {
    background: linear-gradient(135deg, #ff0000, #8B0000);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,0,0,0.4);
}

.narrator-controls select {
    background: #1a1a1a;
    border: 1px solid #ff0000;
    color: white;
    padding: 8px;
    border-radius: 5px;
    font-family: 'Oswald', sans-serif;
}

/* Visualiseur d'ondes sonores */
.narrator-visualizer {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 60px;
    background: rgba(0,0,0,0.8);
    border: 1px solid #ff0000;
    border-radius: 5px;
    display: none;
    padding: 5px;
}

.narrator-visualizer.active {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.narrator-visualizer .bar {
    width: 4px;
    background: linear-gradient(to top, #ff0000, #ffaa00);
    animation: wave 1s infinite ease-in-out;
    border-radius: 2px;
}

.narrator-visualizer .bar:nth-child(1) { animation-delay: 0s; height: 20px; }
.narrator-visualizer .bar:nth-child(2) { animation-delay: 0.1s; height: 30px; }
.narrator-visualizer .bar:nth-child(3) { animation-delay: 0.2s; height: 25px; }
.narrator-visualizer .bar:nth-child(4) { animation-delay: 0.3s; height: 35px; }
.narrator-visualizer .bar:nth-child(5) { animation-delay: 0.4s; height: 28px; }
.narrator-visualizer .bar:nth-child(6) { animation-delay: 0.5s; height: 32px; }
.narrator-visualizer .bar:nth-child(7) { animation-delay: 0.6s; height: 26px; }
.narrator-visualizer .bar:nth-child(8) { animation-delay: 0.7s; height: 30px; }

@keyframes wave {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.5);
    }
}

/* Style pour les sous-titres optionnels */
.narrator-subtitles {
    position: fixed;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    background: linear-gradient(135deg, rgba(0,0,0,0.95), rgba(42,0,0,0.95));
    border: 2px solid #ff0000;
    border-radius: 10px;
    padding: 20px;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    text-align: center;
    display: none;
    z-index: 9998;
    box-shadow: 0 10px 40px rgba(255,0,0,0.3);
}

.narrator-subtitles.active {
    display: block;
    animation: subtitle-fade 0.3s ease-in;
}

@keyframes subtitle-fade {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Personnalités du narrateur - Indicateurs visuels */
.narrator-personality-cynique {
    filter: saturate(0.5) contrast(1.2);
}

.narrator-personality-militaire {
    filter: contrast(1.5) brightness(1.1);
}

.narrator-personality-survivant_fou {
    animation: glitch 0.3s infinite;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(1px, -1px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 1px); }
    100% { transform: translate(0); }
}

.narrator-personality-radio_crachotante {
    filter: sepia(0.3) contrast(1.1);
    animation: static-noise 2s infinite;
}

@keyframes static-noise {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
    51% { opacity: 0.98; }
}
