﻿/* Popup Tasarımı - Modern Card */
.modal-video-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background-color: rgba(0,0,0,0.3);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease-out;
    border-radius: 15px;
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; visibility: hidden; }
    to { opacity: 1; visibility: visible; }
}

.modal-content {
    background-color: #fff;
    width: 100%;
    max-height: 90vh;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

.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 {
    max-width: 100%;
    max-height: 70vh; /* 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-title { font-size: 18px; }
    .swiper-slide .play-overlay { width: 36px; height: 36px; }
    .swiper-slide .play-overlay span { font-size: 18px; }
    .swiper-slide video { max-height: 50vh; }
}
