﻿.oynat-video-wrapper {
    display: inline-block;
    margin: 20px 0;
}

/* Modern Buton Tasarımı */
.btn-watch-media {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(27, 67, 50, 0.3);
    transition: all 0.3s ease;
    text-align: left;
}

    .btn-watch-media:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(27, 67, 50, 0.4);
        background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
    }

.play-icon-pulse {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: #d8f3dc;
    color: #1b4332;
    border-radius: 50%;
    position: relative;
}

    .play-icon-pulse::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 2px solid #d8f3dc;
        animation: pulse-ring 1.8s infinite;
    }

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.3);
        opacity: 0;
    }

    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

.btn-text {
    display: flex;
    flex-direction: column;
}

    .btn-text strong {
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.2;
    }

    .btn-text small {
        font-size: 0.8rem;
        opacity: 0.85;
        margin-top: 2px;
    }

/* Modal / Popup Stilleri */
.video-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: background-color 0.3s ease;
    padding: 15px;
}

    .video-modal-backdrop.show {
        background-color: rgba(0, 0, 0, 0.88);
    }

.video-modal-dialog {
    position: relative;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    /* Yatay Ekran Tasarımı (16:9) */
    .video-modal-dialog.landscape-dialog {
        width: 90%;
        max-width: 850px;
    }

    /* Dikey Ekran Tasarımı (9:16 Shorts/Reels Formatı) */
    .video-modal-dialog.portrait-dialog {
        width: 100%;
        max-width: 380px;
        max-height: 82vh;
    }

.video-modal-backdrop.show .video-modal-dialog {
    transform: scale(1);
    opacity: 1;
}

.btn-close-modal {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 24px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s ease;
}

    .btn-close-modal:hover {
        background: rgba(255, 255, 255, 0.3);
    }

.video-container {
    position: relative;
    height: 0;
}

    .video-container.landscape-container {
        padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    }

    .video-container.portrait-container {
        padding-bottom: 177.78%; /* 9:16 Aspect Ratio */
    }

    .video-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        outline: none;
        object-fit: contain;
    }
