/* =========================================
   Tanıtım Popup — Tamamen Custom, Bootstrap yok
   ========================================= */

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

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

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

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

/* Modal kutusu */
.by-popup__box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    background: #fff;
    border-radius: 18px;
    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: 820px;
}

/* Kapat butonu */
.by-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    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);
}

/* Medya */
.by-popup__media {
    display: block;
    line-height: 0;
    background: #000;
}
.by-popup__media img {
    display: block;
    width: 100%;
    max-height: 65vh;
    object-fit: cover;
}
.by-popup__media a {
    display: block;
    line-height: 0;
}
.by-popup__media a:hover img {
    opacity: 0.92;
    transition: opacity 0.2s;
}

/* Video 16:9 */
.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;
}

/* Footer */
.by-popup__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 24px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}
.by-popup__title {
    margin: 0;
    font-size: 15px;
    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: 9px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #fff !important;
    background: #ff6d45;
    border-radius: 999px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(255, 109, 69, 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: #e85a34;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 109, 69, 0.45);
}
.by-popup__btn:hover svg {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 600px) {
    .by-popup {
        padding: 10px;
        align-items: flex-end;
    }
    .by-popup__box,
    .by-popup__box--video {
        max-width: 100%;
        border-radius: 18px 18px 12px 12px;
    }
    .by-popup__media img {
        max-height: 55vw;
    }
    .by-popup__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 16px 18px;
    }
    .by-popup__btn {
        justify-content: center;
        text-align: center;
    }
}

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