/* Pop-UP reklam — keskin hatlar, iletişim/kampanya sayfaları ile uyumlu */

.popup-ad {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.popup-ad.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.popup-ad__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.72);
}

.popup-ad__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border: 3px solid #000000;
    border-radius: 0;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    transform: translateY(16px);
    opacity: 0;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.popup-ad.is-visible .popup-ad__dialog {
    transform: translateY(0);
    opacity: 1;
}

.popup-ad__close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #000000;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.popup-ad__close svg {
    width: 16px;
    height: 16px;
    display: block;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.popup-ad__close:hover,
.popup-ad__close:focus {
    background: #1f2937;
    color: #ffffff;
    transform: scale(1.06);
    outline: none;
}

.popup-ad__close:hover svg,
.popup-ad__close:focus svg {
    transform: rotate(90deg);
}

.popup-ad__close:focus-visible {
    box-shadow: inset 0 0 0 2px #ffffff;
}

.popup-ad__media {
    display: block;
    width: 100%;
    background: #f8fafc;
    overflow: hidden;
}

.popup-ad__media-link {
    display: block;
    cursor: pointer;
    text-decoration: none;
}

.popup-ad__media-link:hover .popup-ad__image,
.popup-ad__media-link:focus .popup-ad__image {
    opacity: 0.92;
}

.popup-ad__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.2s ease;
}

.popup-ad__body {
    padding: 22px 24px 24px;
    border-top: 3px solid #000000;
}

.popup-ad__title {
    margin: 0;
    font-size: clamp(18px, 2.4vw, 22px);
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}

.popup-ad__desc {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
}

.popup-ad__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 18px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: #111827;
    border: 1px solid #111827;
    border-radius: 0;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.popup-ad__cta:hover,
.popup-ad__cta:focus {
    background: #000000;
    color: #ffffff;
    text-decoration: none;
}

body.popup-ad-open {
    overflow: hidden;
}

.popup-ad .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 575px) {
    .popup-ad {
        padding: 16px 12px;
        align-items: center;
    }

    .popup-ad__dialog {
        max-width: none;
        max-height: calc(100dvh - 32px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .popup-ad__body {
        padding: 18px 16px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .popup-ad,
    .popup-ad__dialog,
    .popup-ad__close,
    .popup-ad__close svg,
    .popup-ad__cta {
        transition: none;
    }
}
