/* ==========================================================================
   VİDEO GALERİSİ & CANLI REELS MİMARİSİ
   ========================================================================== */

.video-page-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #f8fafc;
    padding-bottom: 100px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* BANNER */
.inner-page-banner {
    position: relative;
    width: 100%;
    min-height: 380px;
    padding: 140px 24px 70px 24px;
    background-image: url('../uploads/video-galeri/arkaplan/arkaplan.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.breadcrumb-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 22px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 18px;
}

.breadcrumb-badge a { color: #a3e635; text-decoration: none; }
.breadcrumb-separator { color: rgba(255, 255, 255, 0.6); }
.breadcrumb-current { color: #ffffff; }

.banner-title {
    font-size: 46px;
    font-weight: 900;
    margin: 0 0 12px 0;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.banner-subtitle {
    font-size: 18px;
    color: #f0fdf4;
    font-weight: 600;
    margin: 0;
}

/* 1500PX GENİŞ KAPSAYICI */
.video-container-wide {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 30px;
}

/* INSTAGRAM BAR */
.instagram-bar-wide {
    background: linear-gradient(135deg, #1b3e1a 0%, #29572b 100%);
    border-radius: 22px;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
    border: 1px solid rgba(163, 230, 53, 0.3);
    box-shadow: 0 12px 30px rgba(27, 62, 26, 0.12);
}

.insta-info-group {
    display: flex;
    align-items: center;
    gap: 18px;
}

.insta-avatar-ring {
    padding: 3px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-radius: 18px;
}

.insta-avatar-icon {
    width: 48px;
    height: 48px;
    background: #112810;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a3e635;
}

.insta-avatar-icon svg { width: 26px; height: 26px; }

.insta-username-text {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.insta-desc-text {
    font-size: 14px;
    color: #cbd5e1;
    margin: 0;
}

.insta-badge-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #a3e635;
    color: #112810;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 20px;
    border-radius: 50px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* 🎥 GENİŞ 4'LÜ GRID (9:16 DİKEY KARTLAR) */
.video-grid-wide {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.video-card { cursor: pointer; }

.video-card-inner {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(27, 62, 26, 0.05);
    transition: all 0.35s ease;
    height: 100%;
}

.video-card:hover .video-card-inner {
    transform: translateY(-8px);
    border-color: #a3e635;
    box-shadow: 0 20px 40px rgba(27, 62, 26, 0.12);
}

.video-thumbnail-box {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 20px;
    background-color: #0f172a;
}

.video-thumbnail-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail-box img { transform: scale(1.08); }

/* 🎞️ YEREL VİDEO: RASTGELE KARE KAPAK */
.video-thumbnail-box video.random-frame-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.5s ease;
}

.video-thumbnail-box video.random-frame-video.ready { opacity: 1; }

.video-card:hover .video-thumbnail-box video.random-frame-video { transform: scale(1.08); }

/* 📷 INSTAGRAM CANLI ÖNİZLEME (KAPAK YOKSA) */
.video-thumbnail-box .video-live-preview {
    position: absolute;
    left: 0;
    top: 0;
    border: 0;
    transform-origin: 0 0;
    pointer-events: none;
    background: #000000;
}

.video-badges {
    position: absolute;
    top: 12px; left: 12px; right: 12px;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.badge-duration, .badge-cat {
    background: rgba(17, 40, 16, 0.85);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
}

.badge-cat { background: rgba(163, 230, 53, 0.95); color: #112810; }

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 40, 16, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-card:hover .video-overlay { background: rgba(17, 40, 16, 0.55); }

.play-button {
    width: 60px;
    height: 60px;
    background: #a3e635;
    color: #112810;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.video-card:hover .play-button { transform: scale(1.12); background: #ffffff; }
.play-button svg { width: 26px; height: 26px; }

.video-content-box { padding: 16px 8px 6px 8px; }
.video-title { font-size: 16px; font-weight: 800; color: #1b3e1a; margin: 0 0 6px 0; }
.video-play-text { font-size: 13.5px; color: #488b33; font-weight: 800; }

/* 🔍 MODAL CANLI PLAYER (SİTEDE SIKIŞMADAN VE DIŞARI YÖNLENMEDEN OYNATIR) */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.active { opacity: 1; visibility: visible; }

.video-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 22, 9, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.video-modal-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.video-modal-close:hover { background: #a3e635; color: #112810; }
.video-modal-close svg { width: 22px; height: 22px; }

.video-player-stage {
    width: 100%;
    height: 680px;
    max-height: 78vh;
    border-radius: 20px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

.instagram-iframe-player {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}

.custom-modal-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-modal-caption { margin-top: 12px; text-align: center; }
.video-modal-caption h4 { color: #ffffff; font-size: 15px; font-weight: 700; margin: 0; }

/* RESPONSIVE */
@media (max-width: 1280px) { .video-grid-wide { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
    .video-grid-wide { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .instagram-bar-wide { flex-direction: column; gap: 16px; text-align: center; }
    .insta-info-group { flex-direction: column; }
}
@media (max-width: 580px) {
    .video-grid-wide { grid-template-columns: 1fr; }
    .video-modal-container { max-width: 92vw; }
}