/* Modern Popup Styles - Minimalist Design */

/* Container ve Overlay */
.modern-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modern-popup-container.active {
    opacity: 1;
    visibility: visible;
}

.modern-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

/* Popup İçerik */
.modern-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 500px;
    width: 90%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modern-popup-container.active .modern-popup-content {
    transform: translate(-50%, -50%) scale(1);
}

/* Kapatma Butonu */
.modern-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    color: #333;
}

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

.modern-popup-close:active {
    transform: rotate(90deg) scale(0.9);
}

/* Popup Body */
.modern-popup-body {
    padding: 40px 32px 32px;
}

/* Başlık */
.modern-popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

/* İçerik */
.modern-popup-text {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 24px;
}

.modern-popup-text p {
    margin: 0 0 12px 0;
}

.modern-popup-text p:last-child {
    margin-bottom: 0;
}

/* Buton */
.modern-popup-button {
    display: inline-block;
    width: 100%;
    padding: 14px 24px;
    background: #000;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.modern-popup-button:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.modern-popup-button:active {
    transform: translateY(0);
}

/* Footer ve Checkbox */
.modern-popup-footer {
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.modern-popup-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.modern-popup-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0 10px 0 0;
    cursor: pointer;
    accent-color: #000;
}

.modern-popup-checkbox span {
    font-size: 14px;
    color: #666;
    line-height: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-popup-content {
        max-width: 95%;
        border-radius: 12px;
    }

    .modern-popup-body {
        padding: 32px 24px 24px;
    }

    .modern-popup-title {
        font-size: 20px;
    }

    .modern-popup-text {
        font-size: 14px;
    }

    .modern-popup-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }
}

/* Animasyonlar */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes popupFadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

/* Koyu Tema Desteği (Opsiyonel) */
@media (prefers-color-scheme: dark) {
    .modern-popup-content {
        background: #1a1a1a;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    }

    .modern-popup-title {
        color: #ffffff;
    }

    .modern-popup-text {
        color: #b3b3b3;
    }

    .modern-popup-close {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    .modern-popup-close:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .modern-popup-footer {
        border-top-color: #333;
    }

    .modern-popup-checkbox span {
        color: #b3b3b3;
    }

    .modern-popup-button {
        background: #fff;
        color: #000;
    }

    .modern-popup-button:hover {
        background: #e6e6e6;
    }
}

