/* Additional game-specific styles */

/* =========================
   MALUS EFFECTS
   ========================= */

/* Blur effect */
.malus-blur #game-play {
    filter: blur(8px);
    transition: filter 0.3s ease;
}

.malus-blur #answer-input {
    filter: none;
}

/* Hide names effect */
.malus-hide-names .player-name,
.malus-hide-names .game-player .name {
    filter: blur(5px);
    user-select: none;
}

/* Inverted input */
#answer-input.inverted {
    direction: rtl;
    text-align: right;
}

/* Mute overlay */
#mute-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 0, 0, 0.1);
    pointer-events: none;
    z-index: 1000;
    display: none;
    animation: pulse-red 1s infinite;
}

#mute-overlay.active {
    display: block;
}

#mute-overlay::before {
    content: '🔇';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    animation: bounce 0.5s infinite;
}

@keyframes pulse-red {
    0%, 100% { background: rgba(255, 0, 0, 0.05); }
    50% { background: rgba(255, 0, 0, 0.15); }
}

/* =========================
   SHAKE ANIMATION
   ========================= */

.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* =========================
   POINTS POPUP
   ========================= */

.points-popup {
    position: fixed;
    font-size: 2rem;
    font-weight: 800;
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
    z-index: 2000;
    pointer-events: none;
    animation: pointsFloat 1.5s ease-out forwards;
}

@keyframes pointsFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1.5);
    }
}

/* =========================
   CONFETTI PARTICLES
   ========================= */

.confetti-particle {
    position: fixed;
    width: 10px;
    height: 10px;
    z-index: 3000;
    pointer-events: none;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        top: -10px;
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        top: 100vh;
        transform: rotate(720deg) scale(0);
        opacity: 0;
    }
}

/* =========================
   SPECTATOR MODE
   ========================= */

#game-play.spectator {
    opacity: 0.7;
}

#game-play.spectator::before {
    content: 'Mode Spectateur';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    z-index: 100;
}

/* =========================
   MALUS INVENTORY
   ========================= */

#malus-inventory {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    padding: var(--space-sm);
}

.malus-btn {
    position: relative;
    width: 50px;
    height: 50px;
    background: var(--bg-elevated);
    border: 2px solid var(--neon-orange);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.malus-btn:hover {
    background: rgba(255, 170, 0, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.5);
}

.malus-btn .malus-icon {
    font-size: 1.5rem;
}

.malus-btn .malus-count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: var(--neon-pink);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   TARGET SELECTION MODAL
   ========================= */

#malus-target-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-height: 300px;
    overflow-y: auto;
}

.target-btn {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.target-btn:hover {
    border-color: var(--neon-orange);
    background: rgba(255, 170, 0, 0.1);
}

.target-btn .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* =========================
   TIMER WARNING
   ========================= */

#round-timer.warning {
    color: var(--danger);
    animation: pulse 0.5s infinite;
}

/* =========================
   ANSWER STATUS
   ========================= */

.answer-status {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    margin: var(--space-lg) 0;
}

.answer-status .status-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

.answer-status .status-item.found {
    border-color: var(--neon-green);
    background: rgba(0, 255, 136, 0.1);
}

.answer-status .status-item .icon {
    font-size: 1.5rem;
}

.answer-status .status-item.found .icon {
    animation: bounce 0.5s ease;
}

/* =========================
   ROUND RESULTS
   ========================= */

#round-results {
    text-align: center;
    padding: var(--space-xl);
}

#result-album-cover {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-lg);
    animation: scaleIn 0.5s ease;
}

#result-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

#result-artist {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

#round-scores {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 400px;
    margin: 0 auto;
}

.round-score-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
}

.round-score-entry.is-me {
    border: 2px solid var(--primary);
}

.round-score-entry .points {
    color: var(--neon-green);
    font-weight: 700;
}

/* =========================
   FINAL RESULTS
   ========================= */

.podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: var(--space-md);
    margin: var(--space-xxl) 0;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: slideUp 0.5s ease;
}

.podium-place:nth-child(1) { animation-delay: 0.2s; }
.podium-place:nth-child(2) { animation-delay: 0s; }
.podium-place:nth-child(3) { animation-delay: 0.4s; }

.podium-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid;
    margin-bottom: var(--space-sm);
}

.podium-place:nth-child(2) .podium-avatar {
    width: 100px;
    height: 100px;
    border-color: gold;
}

.podium-place:nth-child(1) .podium-avatar {
    border-color: silver;
}

.podium-place:nth-child(3) .podium-avatar {
    border-color: #cd7f32;
}

.podium-name {
    font-weight: 600;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.podium-score {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.podium-stand {
    width: 100px;
    background: linear-gradient(to bottom, var(--bg-elevated), var(--bg-card));
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
}

.podium-place:nth-child(2) .podium-stand {
    height: 100px;
    background: linear-gradient(to bottom, gold, #b8860b);
    color: white;
}

.podium-place:nth-child(1) .podium-stand {
    height: 70px;
    background: linear-gradient(to bottom, silver, #808080);
    color: white;
}

.podium-place:nth-child(3) .podium-stand {
    height: 50px;
    background: linear-gradient(to bottom, #cd7f32, #8b4513);
    color: white;
}

/* =========================
   OWN RESULTS
   ========================= */

.own-results {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
}

.own-result-item {
    text-align: center;
}

.own-result-item .value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.own-result-item .label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* =========================
   NO ANIMATIONS MODE
   ========================= */

body.no-animations * {
    animation: none !important;
    transition: none !important;
}
