/* Frontend styles for DW Popup */

.dw-popup-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.dw-popup-overlay.dw-popup-show {
    display: flex;
    animation: dwPopupFadeIn 0.35s ease-out;
}

.dw-popup {
    border-radius: 14px;
    width: 92%;
    max-width: 520px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    position: relative;
    color: #ffffff;
    transform: translateY(12px);
    animation: dwPopupSlideUp 0.35s ease-out forwards;
}

.dw-popup-image {
    display: block;
    width: 100%;
    height: auto;
}

.dw-popup-content {
    padding: 16px 20px 20px;
    text-align: center;
}

.dw-popup-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
}

.dw-popup-text {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
}

.dw-popup-button,
.dw-popup-button:link,
.dw-popup-button:visited,
.dw-popup-button:active {
    display: inline-block;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none !important;
    border: none !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}

.dw-popup-button:hover,
.dw-popup-button:focus {
    text-decoration: none !important;
    filter: brightness(0.92);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

/* Close button – üst sağda, kapsül formunda */
.dw-popup-close {
    position: absolute;
    top: 14px;
    right: 18px;
    padding: 3px 11px;
    border-radius: 999px;
    border: none;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

.dw-popup-close:hover {
    filter: brightness(0.9);
}

@keyframes dwPopupFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes dwPopupSlideUp {
    from { transform: translateY(24px); }
    to { transform: translateY(0); }
}

/* Responsive */
@media (min-width: 992px) {
    .dw-popup {
        max-width: var(--dw-popup-desktop-width, 520px);
    }
}

@media (max-width: 480px) {
    .dw-popup {
        max-width: var(--dw-popup-mobile-width, 360px);
    }

    .dw-popup-title {
        font-size: 16px;
    }

    .dw-popup-text {
        font-size: 13px;
    }

    .dw-popup-button,
    .dw-popup-button:link,
    .dw-popup-button:visited,
    .dw-popup-button:active {
        width: 100%;
        text-align: center;
    }
}
