/* ============================================
   STYLES DES MONSTRES
   ============================================ */

.monster-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.monster {
    width: 100%;
    height: 100%;
    position: relative;
}

/* ============================================
   BLOBBY - Le monstre bleu joyeux
   ============================================ */
.monster-blobby {
    background: var(--color-blobby);
    border-radius: 50% 50% 45% 45%;
    position: relative;
    animation: blobbyIdle 2s ease-in-out infinite;
}

.monster-blobby::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 20%;
    width: 20%;
    height: 25%;
    background: white;
    border-radius: 50%;
    box-shadow:
        inset 8px -5px 0 0 #333,
        40px 0 0 0 white,
        48px -5px 0 0 #333 inset;
}

.monster-blobby::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 25%;
    width: 8%;
    height: 10%;
    background: white;
    border-radius: 50%;
    opacity: 0.6;
}

.blobby-eye-left,
.blobby-eye-right {
    position: absolute;
    width: 22%;
    height: 28%;
    background: white;
    border-radius: 50%;
    top: 25%;
}

.blobby-eye-left {
    left: 20%;
}

.blobby-eye-right {
    right: 20%;
}

.blobby-pupil {
    position: absolute;
    width: 50%;
    height: 50%;
    background: #333;
    border-radius: 50%;
    top: 30%;
    left: 25%;
    animation: blobbyLook 4s ease-in-out infinite;
}

.blobby-mouth {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 20%;
    background: #2980b9;
    border-radius: 0 0 50% 50%;
    overflow: hidden;
}

.blobby-tongue {
    position: absolute;
    bottom: -10%;
    left: 30%;
    width: 40%;
    height: 60%;
    background: #e74c3c;
    border-radius: 50%;
}

/* ============================================
   ZIGGY - Le monstre vert curieux
   ============================================ */
.monster-ziggy {
    background: var(--color-ziggy);
    border-radius: 45% 45% 50% 50%;
    position: relative;
    animation: ziggyIdle 3s ease-in-out infinite;
}

.ziggy-eye-left,
.ziggy-eye-right {
    position: absolute;
    width: 30%;
    height: 35%;
    background: white;
    border-radius: 50%;
    top: 15%;
}

.ziggy-eye-left {
    left: 12%;
}

.ziggy-eye-right {
    right: 12%;
}

.ziggy-pupil {
    position: absolute;
    width: 45%;
    height: 45%;
    background: #333;
    border-radius: 50%;
    top: 35%;
    left: 28%;
    animation: ziggyLook 5s ease-in-out infinite;
}

.ziggy-mouth {
    position: absolute;
    bottom: 22%;
    left: 50%;
    transform: translateX(-50%);
    width: 20%;
    height: 15%;
    background: #27ae60;
    border-radius: 50%;
}

.ziggy-antenna {
    position: absolute;
    top: -20%;
    width: 8%;
    height: 25%;
    background: var(--color-ziggy);
    border-radius: 50% 50% 0 0;
}

.ziggy-antenna-left {
    left: 30%;
    transform: rotate(-15deg);
}

.ziggy-antenna-right {
    right: 30%;
    transform: rotate(15deg);
}

.ziggy-antenna::after {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 50%;
    background: #f1c40f;
    border-radius: 50%;
}

/* ============================================
   PUFF - Le monstre rose timide
   ============================================ */
.monster-puff {
    background: var(--color-puff);
    border-radius: 50%;
    position: relative;
    animation: puffIdle 2.5s ease-in-out infinite;
}

.puff-eye-left,
.puff-eye-right {
    position: absolute;
    width: 18%;
    height: 22%;
    background: white;
    border-radius: 50%;
    top: 32%;
}

.puff-eye-left {
    left: 25%;
}

.puff-eye-right {
    right: 25%;
}

.puff-pupil {
    position: absolute;
    width: 55%;
    height: 55%;
    background: #333;
    border-radius: 50%;
    top: 25%;
    left: 22%;
}

.puff-blush-left,
.puff-blush-right {
    position: absolute;
    width: 15%;
    height: 10%;
    background: #e91e63;
    border-radius: 50%;
    top: 50%;
    opacity: 0.5;
}

.puff-blush-left {
    left: 15%;
}

.puff-blush-right {
    right: 15%;
}

.puff-mouth {
    position: absolute;
    bottom: 28%;
    left: 50%;
    transform: translateX(-50%);
    width: 12%;
    height: 8%;
    background: #c0392b;
    border-radius: 50%;
}

/* ============================================
   SPARK - Le monstre orange énergique
   ============================================ */
.monster-spark {
    background: var(--color-spark);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    position: relative;
    animation: sparkIdle 1.5s ease-in-out infinite;
}

.spark-eye-left,
.spark-eye-right {
    position: absolute;
    width: 20%;
    height: 28%;
    background: white;
    border-radius: 50%;
    top: 28%;
}

.spark-eye-left {
    left: 22%;
}

.spark-eye-right {
    right: 22%;
}

.spark-pupil {
    position: absolute;
    width: 50%;
    height: 50%;
    background: #333;
    border-radius: 50%;
    top: 25%;
    left: 25%;
}

.spark-mouth {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    height: 18%;
    background: #d35400;
    border-radius: 0 0 50% 50%;
}

.spark-lightning {
    position: absolute;
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5em;
    color: #f1c40f;
    text-shadow: 0 0 10px #f1c40f;
    animation: sparkLightning 0.5s ease-in-out infinite;
}

/* ============================================
   GLUB - Le monstre violet gourmand
   ============================================ */
.monster-glub {
    background: var(--color-glub);
    border-radius: 50% 50% 40% 40%;
    position: relative;
    animation: glubIdle 2s ease-in-out infinite;
}

.glub-eye-left,
.glub-eye-right {
    position: absolute;
    width: 22%;
    height: 26%;
    background: white;
    border-radius: 50%;
    top: 25%;
}

.glub-eye-left {
    left: 18%;
}

.glub-eye-right {
    right: 18%;
}

.glub-pupil {
    position: absolute;
    width: 50%;
    height: 50%;
    background: #333;
    border-radius: 50%;
    top: 30%;
    left: 25%;
}

.glub-mouth {
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    width: 45%;
    height: 25%;
    background: #7d3c98;
    border-radius: 10% 10% 50% 50%;
    overflow: hidden;
}

.glub-tongue {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 60%;
    background: #e74c3c;
    border-radius: 50% 50% 0 0;
    animation: glubLick 3s ease-in-out infinite;
}

.glub-belly {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 20%;
    background: #8e44ad;
    border-radius: 50%;
    opacity: 0.5;
}

/* ============================================
   ANIMATIONS IDLE DES MONSTRES
   ============================================ */
@keyframes blobbyIdle {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.02); }
}

@keyframes blobbyLook {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(3px, -2px); }
    75% { transform: translate(-3px, 2px); }
}

@keyframes ziggyIdle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(3deg); }
    75% { transform: rotate(-3deg); }
}

@keyframes ziggyLook {
    0%, 100% { transform: translate(0, 0); }
    30% { transform: translate(5px, 0); }
    60% { transform: translate(-5px, 0); }
}

@keyframes puffIdle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.95); }
}

@keyframes sparkIdle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(2deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-3px) rotate(-2deg); }
}

@keyframes sparkLightning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

@keyframes glubLick {
    0%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    85% { transform: translateX(-50%) translateY(-30%); }
    90% { transform: translateX(-50%) translateY(0); }
}

/* ============================================
   ANIMATION DE CÉLÉBRATION
   ============================================ */
.monster-container.celebrating .monster {
    animation: monsterCelebrate 0.5s ease-in-out infinite;
}

@keyframes monsterCelebrate {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(-10deg); }
    75% { transform: translateY(-15px) rotate(10deg); }
}

/* ============================================
   ÉTATS DES MONSTRES
   ============================================ */
.monster.happy {
    animation-duration: 0.3s;
}

.monster.excited {
    animation: monsterExcited 0.3s ease-in-out infinite;
}

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