/* Custom Effects CSS for EAVA Artists Residency */

/* Fireworks Container */
#fireworks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    overflow: hidden;
    pointer-events: none;
}

/* Firework Particle */
.firework {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    transform-origin: center;
    animation: explode 1s ease-out forwards;
}

/* Firework Trail */
.firework::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: scale(1);
    animation: fade 1s ease-out forwards;
}

/* Congratulations Text */
.congrats-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeInOut 4s ease-in-out forwards;
    font-family: 'Playfair Display', serif;
}

/* Artist Announcement Modal */
#artist-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#artist-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

#artist-modal-content {
    background-color: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

#artist-modal-overlay.visible #artist-modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

#artist-modal-content h2 {
    color: #de8723;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

#artist-modal-content p {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #333;
}

.btn-primary {
    display: inline-block;
    background-color: #de8723;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #c77620;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(222, 135, 35, 0.3);
}

/* Animations */
@keyframes explode {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(30);
        opacity: 0;
    }
}

@keyframes fade {
    0% {
        opacity: 1;
        box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.8);
    }
    100% {
        opacity: 0;
        box-shadow: 0 0 20px 40px rgba(255, 255, 255, 0);
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #artist-modal-content {
        padding: 2rem;
    }
    
    #artist-modal-content h2 {
        font-size: 1.75rem;
    }
    
    .congrats-text {
        font-size: 2rem;
        width: 90%;
    }
}

@media (max-width: 480px) {
    #artist-modal-content {
        padding: 1.5rem;
    }
    
    #artist-modal-content h2 {
        font-size: 1.5rem;
    }
    
    .congrats-text {
        font-size: 1.5rem;
    }
} 