/* ============================================
   Ürün Video Modülü — Frontend CSS
   ============================================ */

.uv-video-wrap {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Başlık */
.uv-video-baslik {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #1d3557;
    margin-bottom: 12px;
}

.uv-video-baslik-icon {
    display: flex;
    align-items: center;
    color: #e63946;
}

/* Thumbnail */
.uv-thumbnail-wrap {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    aspect-ratio: 16/9;
}

.uv-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s, opacity .3s;
}

.uv-thumbnail-wrap:hover .uv-thumbnail {
    transform: scale(1.03);
    opacity: .85;
}

/* Play Butonu */
.uv-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
    transition: transform .2s;
}

.uv-play-btn:hover { transform: translate(-50%, -50%) scale(1.1); }

.uv-play-icon svg { width: 68px; height: 48px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }

.uv-play-bg     { fill: #ff0000; fill-opacity: .9; }
.uv-play-triangle { fill: #fff; }

.uv-play-btn:hover .uv-play-bg { fill-opacity: 1; }

.uv-play-text {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
    letter-spacing: .3px;
}

/* ============================================
   Lightbox
   ============================================ */

.uv-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: uv-fadein .25s ease;
}

@keyframes uv-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.uv-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    cursor: pointer;
}

.uv-lightbox-icerik {
    position: relative;
    z-index: 1;
    width: 90vw;
    max-width: 900px;
    animation: uv-slidein .25s ease;
}

@keyframes uv-slidein {
    from { transform: scale(.92); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.uv-lightbox-kapat {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background .2s;
    padding: 0;
}

.uv-lightbox-kapat:hover { background: rgba(255,255,255,.3); }

.uv-iframe-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.uv-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ESC ipucu */
.uv-lightbox-icerik::after {
    content: 'ESC ile kapatın';
    display: block;
    text-align: center;
    color: rgba(255,255,255,.4);
    font-size: 11px;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 600px) {
    .uv-lightbox-icerik { width: 95vw; }
    .uv-play-icon svg { width: 52px; height: 36px; }
    .uv-play-text { font-size: 12px; }
}
