/* ===== POP-UP SİSTEMİ - ALT ALTA DİZİLİ ===== */

/* Ana backdrop */
.popups-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popups-container.active {
    opacity: 1;
    visibility: visible;
}

/* Pop-up'ların dizileceği alan */
.popups-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: min(90vw, 700px);
    width: 100%;
    margin: auto;
    padding: 10px 0;
}

/* Her bir pop-up */
.popup-item {
    position: relative;
    width: 100%;
    animation: popupSlideIn 0.4s ease;
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Pop-up linki */
.popup-link {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s ease;
    border: 4px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

.popup-link:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
}

/* Pop-up görseli */
.popup-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Kapatma butonu */
.popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: 4px solid white;
    color: white;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.popup-close:hover {
    transform: scale(1.15) rotate(90deg);
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .popups-container {
        padding: 10px;
    }
    
    .popups-list {
        gap: 12px;
        padding: 10px 0;
        max-width: 95vw;
    }
    
    .popup-link {
        border-width: 3px;
        border-radius: 16px;
    }
    
    .popup-close {
        top: -10px;
        right: -10px;
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-width: 3px;
    }
}

@media (max-width: 480px) {
    .popups-container {
        padding: 8px;
    }
    
    .popups-list {
        gap: 10px;
        padding: 8px 0;
        max-width: 96vw;
    }
    
    .popup-close {
        top: -8px;
        right: -8px;
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-width: 2px;
    }
}
