/* Easter Egg Card Animation Styles - Version simplifiée */

/* Overlay de fond - Harmonisé avec les autres modals */
.easter-egg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.easter-egg-overlay.show {
    display: flex;
}

/* Empêcher le scroll sur le body quand la modal easter egg est ouverte */
body.easter-egg-open {
    overflow: hidden;
}

/* Container pour le booster pack et la carte */
.booster-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Collection Modal Styles - Harmonisé avec les autres modals */
.collection-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.collection-modal.show {
    display: flex;
}

.collection-content {
    background: #121212;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 32px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
    flex-shrink: 0;
}

.collection-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.collection-close {
    position: sticky;
    top: 0;
    background: transparent;
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    float: right;
}

.collection-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, 200px);
    justify-content: center;
    gap: 30px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    flex: 1;
    min-height: 0;
    align-content: flex-start;
}

/* Scrollbar personnalisée pour la collection */
.collection-cards::-webkit-scrollbar {
    width: 10px;
}

.collection-cards::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.collection-cards::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transition: background 0.3s ease;
}

.collection-cards::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.collection-stats {
    text-align: center;
    border-top: 2px solid #333;
    padding-top: 20px;
    margin-top: 20px;
    flex-shrink: 0;
}

.collection-progress {
    color: #ffffff;
    font-size: 16px;
    margin: 0;
}

.collection-progress span {
    color: #ffffff;
}

/* Animation pulse pour le bouton de récompense */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 255, 255, 0.6);
        transform: scale(1.02);
    }
}

/* Bouton de téléchargement de récompense */
.download-reward-btn {
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    color: #181818;
    border: 2px solid #ffffff;
    border-radius: 10px;
    padding: 10px 20px;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.download-reward-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.download-reward-btn:hover::before {
    left: 100%;
}

.download-reward-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #e0e0e0, #ffffff);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.download-reward-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.download-reward-btn:disabled {
    background: linear-gradient(135deg, #666, #555);
    color: #999;
    cursor: not-allowed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0.6;
}

.download-reward-btn:disabled::before {
    display: none;
}

/* Bouton de collection */
.collection-btn {
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 5px 10px;
    margin-top: 4px;
    margin-left: 15px;
    margin-right: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.collection-btn:hover {
    background: linear-gradient(45deg, #2a2a2a, #1a1a1a);
}

/* Responsive design - Harmonisé avec les autres modals */
@media (max-width: 1400px) {
    .collection-content {
        max-width: 100%;
        width: calc(100% - 24px);
        padding: 20px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .collection-content {
        padding: 16px;
    }
}