/* =========================================
   Tanıtım Popup — Ortalı modal
   ========================================= */

body.by-popup-open {
    overflow: hidden !important;
}

.by-popup {
    position: fixed;
    inset: 0;
    z-index: 10000010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.by-popup--visible {
    pointer-events: auto;
    opacity: 1;
}

.by-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.by-popup__box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 860px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.06);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.36s cubic-bezier(0.34, 1.45, 0.64, 1), opacity 0.3s ease;
    opacity: 0;
}

.by-popup--visible .by-popup__box {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.by-popup__box--video {
    max-width: 920px;
}

.by-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.08);
    transition: background 0.2s, color 0.2s, transform 0.25s;
    line-height: 1;
}

.by-popup__close:hover {
    background: #111;
    color: #fff;
    transform: rotate(90deg) scale(1.1);
}

.by-popup__media {
    display: block;
    line-height: 0;
    background: #000;
}

.by-popup__media img {
    display: block;
    width: 100%;
    max-height: min(72vh, 680px);
    object-fit: contain;
    background: #111;
}

.by-popup__media a {
    display: block;
    line-height: 0;
}

.by-popup__media a:hover img {
    opacity: 0.92;
    transition: opacity 0.2s;
}

.by-popup__video-ratio {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

.by-popup__video-ratio iframe,
.by-popup__video-ratio video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.by-popup__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 28px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.by-popup__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}

.by-popup__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff !important;
    background: #BD2428;
    border-radius: 999px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(189, 36, 40, 0.35);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.by-popup__btn svg {
    transition: transform 0.2s;
}

.by-popup__btn:hover {
    background: #9a1d20;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(189, 36, 40, 0.45);
}

.by-popup__btn:hover svg {
    transform: translateX(3px);
}

@media (max-width: 767.98px) {
    .by-popup {
        padding: 16px;
        align-items: center;
    }

    .by-popup__box,
    .by-popup__box--video {
        max-width: 100%;
        border-radius: 16px;
    }

    .by-popup__media img {
        max-height: min(58vh, 420px);
    }

    .by-popup__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px 18px;
    }

    .by-popup__title {
        font-size: 1rem;
    }

    .by-popup__btn {
        justify-content: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .by-popup,
    .by-popup__box {
        transition: none;
    }
}
