/* Pop-up Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.5s ease-in-out;
}

.popup-overlay.hidden {
    display: none;
}

/* Pop-up Container */
.popup-container {
    background: linear-gradient(135deg, #ff6b6b, #feca57, #ff9ff3, #54a0ff);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite, popupScale 0.6s ease-out;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Havai Fişek Animasyonu */
.fireworks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: explode 1.5s ease-out infinite;
}

.firework::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: sparkle 1.5s ease-out infinite;
}

.firework:nth-child(1) {
    background: #ff6b6b;
    top: 15%;
    left: 15%;
    animation-delay: 0s;
    box-shadow: 0 0 20px #ff6b6b, 0 0 40px #ff6b6b, 0 0 60px #ff6b6b;
}
.firework:nth-child(2) {
    background: #feca57;
    top: 25%;
    left: 85%;
    animation-delay: 0.3s;
    box-shadow: 0 0 20px #feca57, 0 0 40px #feca57, 0 0 60px #feca57;
}
.firework:nth-child(3) {
    background: #ff9ff3;
    top: 75%;
    left: 25%;
    animation-delay: 0.6s;
    box-shadow: 0 0 20px #ff9ff3, 0 0 40px #ff9ff3, 0 0 60px #ff9ff3;
}
.firework:nth-child(4) {
    background: #54a0ff;
    top: 65%;
    left: 75%;
    animation-delay: 0.9s;
    box-shadow: 0 0 20px #54a0ff, 0 0 40px #54a0ff, 0 0 60px #54a0ff;
}
.firework:nth-child(5) {
    background: #5f27cd;
    top: 45%;
    left: 50%;
    animation-delay: 1.2s;
    box-shadow: 0 0 20px #5f27cd, 0 0 40px #5f27cd, 0 0 60px #5f27cd;
}
.firework:nth-child(6) {
    background: #00d2d3;
    top: 35%;
    left: 10%;
    animation-delay: 1.5s;
    box-shadow: 0 0 20px #00d2d3, 0 0 40px #00d2d3, 0 0 60px #00d2d3;
}
.firework:nth-child(7) {
    background: #ff3838;
    top: 80%;
    left: 90%;
    animation-delay: 1.8s;
    box-shadow: 0 0 20px #ff3838, 0 0 40px #ff3838, 0 0 60px #ff3838;
}
.firework:nth-child(8) {
    background: #ffd700;
    top: 10%;
    left: 60%;
    animation-delay: 2.1s;
    box-shadow: 0 0 20px #ffd700, 0 0 40px #ffd700, 0 0 60px #ffd700;
}

/* Başlık */
.popup-title {
    font-size: 2.5em;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

/* Tarih */
.popup-date {
    font-size: 1.8em;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
    font-weight: bold;
    animation: pulse 2s ease-in-out infinite;
}

/* Açıklama */
.popup-description {
    font-size: 1.3em;
    color: white;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* Kapatma butonu */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2em;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close-btn:hover {
    transform: scale(1.2);
}

/* Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popupScale {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes explode {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: scale(1.5) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: scale(3) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: scale(5) rotate(270deg);
        opacity: 0.4;
    }
    100% {
        transform: scale(8) rotate(360deg);
        opacity: 0;
    }
}

@keyframes sparkle {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(2);
        opacity: 0.8;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .popup-container {
        padding: 30px 20px;
        margin: 20px;
    }

    .popup-title {
        font-size: 2em;
    }

    .popup-date {
        font-size: 1.5em;
    }

    .popup-description {
        font-size: 1.1em;
    }

}


.demo-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.demo-content p {
    font-size: 1.2em;
    opacity: 0.9;
}