﻿/* Popup Tasarımı - Modern Card */
.modal-video-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease-out;
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; visibility: hidden; }
    to { opacity: 1; visibility: visible; }
}

.modal-content {
    background-color: #fff;
    width: 95%;
    max-width: 900px;
    height: auto; /* İçeriğe göre yükseklik */
    max-height: 90vh; /* Ekranı aşmasın */
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: auto; /* İçerik taşarsa scroll */
    box-sizing: border-box;
}

.modal-title {
    font-size: 22px;
    color: #ab8a62;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    z-index: 5;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    z-index: 10;
}
.close-btn:hover { color: #ab8a62; }

/* Swiper Container */
.swiper-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Video & Poster */
.swiper-slide video {
    width: 100%;
    height: auto;
    max-height: 70vh; /* Desktop için popup içinde video yüksekliği */
    object-fit: contain;
    border-radius: 10px;
    display: block;
    z-index: 2;
}

/* Mini play overlay */
.swiper-slide .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 3;
}
.swiper-slide .play-overlay span {
    font-size: 24px;
    color: #fff;
}

/* Swiper navigation */
.swiper-button-next,
.swiper-button-prev {
    color: #ab8a62;
    font-size: 26px;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}
.swiper-button-next:hover,
.swiper-button-prev:hover { background-color: #ab8a62; color: #fff; }
.swiper-button-next:after,
.swiper-button-prev:after { font-size: 16px; }

/* Pagination bullets */
.swiper-pagination {
    margin-top: 10px;
}
.swiper-pagination-bullet {
    background-color: #ab8a62;
    width: 10px;
    height: 10px;
    opacity: 1 !important;
}
.swiper-pagination-bullet-active { background-color: #927055; }


/* Responsive */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: 100%;
        height: auto;          /* içerik boyutuna göre yükseklik */
        max-height: 95vh;      /* ekranı aşmasın */
        border-radius: 10px;
        padding: 10px;
        overflow: auto;        /* içerik taşarsa scroll */
    }
    .modal-title { font-size: 18px; margin-bottom: 8px; }
    .swiper-slide .play-overlay { width: 50px; height: 50px; }
    .swiper-slide .play-overlay span { font-size: 22px; }
    .swiper-slide video { max-height: 80vh; }
}