/* ====================================
   ZIKA - ANIMATION MATCH PLEIN ÉCRAN
   ==================================== */

/* Overlay plein écran */
.match-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.95) 0%, rgba(0, 200, 0, 0.95) 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: matchFadeIn 0.5s ease-out;
    backdrop-filter: blur(10px);
}

/* Animation d'entrée */
@keyframes matchFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Confettis animés */
.match-confetti {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fff;
    top: -10px;
    opacity: 0;
    animation: confettiFall 3s linear;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Contenu central */
.match-content {
    text-align: center;
    z-index: 10;
    animation: matchBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 90%;
    margin: 0 auto;
}

@keyframes matchBounce {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Icône logo Zika */
.match-icon {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.match-logo {
    width: 150px;
    height: auto;
    animation: heartBeat 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(0.9);
    }
    20%, 40%, 60%, 80% {
        transform: scale(1.1);
    }
    50%, 70% {
        transform: scale(1.05);
    }
}

/* Texte principal */
.match-title {
    font-size: 4rem;
    font-weight: 900;
    color: #000;
    margin: 0 0 1rem 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Message */
.match-message {
    font-size: 1.5rem;
    color: #000;
    margin: 0 auto 3rem;
    font-weight: 600;
    max-width: 600px;
    text-align: center;
}

/* Profils matchés */
.match-profiles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 2rem auto;
    max-width: 100%;
}

.match-profile-item {
    text-align: center;
    animation: profileSlideIn 0.8s ease-out;
}

.match-profile-item:first-child {
    animation-delay: 0.2s;
}

.match-profile-item:last-child {
    animation-delay: 0.4s;
}

@keyframes profileSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.match-profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid #000;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.match-profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
}

.match-heart-between {
    font-size: 3rem;
    color: #000;
    animation: heartBeat 1s ease-in-out infinite;
}

/* Boutons d'action */
.match-actions {
    display: flex;
    gap: 1.5rem;
    margin: 3rem auto 0;
    justify-content: center;
}

.match-btn {
    padding: 1.25rem 3rem;
    border-radius: 50px;
    border: none;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.match-btn-primary {
    background: #000;
    color: #00ff00;
}

.match-btn-primary:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.match-btn-secondary {
    background: rgba(0, 0, 0, 0.2);
    color: #000;
}

.match-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Étoiles scintillantes */
.match-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: starTwinkle 2s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation de sortie */
.match-overlay.fade-out {
    animation: matchFadeOut 0.5s ease-in forwards;
}

@keyframes matchFadeOut {
    to {
        opacity: 0;
        transform: scale(1.2);
    }
}

/* Responsive mobile */
@media (max-width: 768px) {
    .match-icon {
        font-size: 5rem;
        margin-bottom: 1.5rem;
    }
    
    .match-title {
        font-size: 2.5rem;
    }
    
    .match-message {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .match-profiles {
        gap: 1.5rem;
    }
    
    .match-profile-photo {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }
    
    .match-profile-name {
        font-size: 1rem;
    }
    
    .match-heart-between {
        font-size: 2rem;
    }
    
    .match-actions {
        flex-direction: column;
        width: 90%;
        margin: 2rem auto 0;
    }
    
    .match-btn {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}
