/* =========================================================
VIDEO.CSS - ULTRA KİNOTEATR REJİMİ (SON VİZUAL KEYFİYYƏT VƏ RESPONSİVLİK)
Bu fayl Header, Footer, Video İzələmə və Video Galereya səhifələrinin stilini Kinoteatr rejiminə uyğunlaşdırır.
========================================================= */

/* ========================================================= */
/* TEMEL DƏYİŞƏNLƏR */
/* ========================================================= */

:root {
    --cinema-bg: #000000;       /* Tam Qara Fon */
    --cinema-card: #141414;     /* Məlumat Kartının/Header/Footer Tünd Fonu */
    --cinema-red: #E50914;      /* Netflix Vurğu Rəngi */
    --cinema-text-white: #ffffff;
    --cinema-text-dim: #999999; /* Tünd mühit üçün daha uyğun rəng */
    --font-family-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ========================================================= */
/* GLOBAL/BODY STILLƏRİ (body classı "cinema-mode-body" olmalıdır) */
/* ========================================================= */

.cinema-mode-body {
    background-color: var(--cinema-bg) !important;
    font-family: var(--font-family-primary);
    color: var(--cinema-text-white);
    min-height: 100vh;
}
.cinema-mode-body .container {
    max-width: 1200px; 
    padding: 0 15px; 
    margin: 0 auto;
}
.cinema-mode-body .container-main {
    /* Header altından düzgün boşluq üçün vacibdir */
    padding-top: 100px; 
    padding-bottom: 80px;
}
a {
    color: var(--cinema-text-dim);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--cinema-red);
}
.alert {
    border: none;
    border-radius: 8px;
    font-weight: 600;
}
.alert-info {
    background-color: #0d47a1;
    color: white;
}
.alert-warning {
    background-color: #ff6f00;
    color: white;
}
.header-spacer.cinema-spacer {
    display: block;
    height: 80px; /* Headerin hündürlüyünə uyğun boşluq */
}

/* ========================================================= */
/* KİNOTEATR HEADER STILLƏRİ (NAVİQASİYA) */
/* ========================================================= */

.site-header.cinema-header {
    background: var(--cinema-card) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7); 
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1020;
}
.cinema-top {
    background: #000000 !important;
    border-bottom: 1px solid #222;
}
.cinema-nav {
    background: var(--cinema-card) !important;
    padding: 10px 0;
}
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
}
.cinema-header .navbar-brand .logo-text {
    color: var(--cinema-text-white) !important;
    font-size: 1.7rem; 
    font-weight: 900;
}
/* Nav Menyu */
.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    flex-grow: 1; 
    margin-left: 30px;
}
.nav-item .nav-link {
    color: var(--cinema-text-dim);
    padding: 10px 15px;
    font-weight: 500;
}
.nav-item .nav-link:hover,
.nav-item .nav-link.active {
    color: var(--cinema-red);
}
/* Axtarış Qutusu */
.cinema-search {
    max-width: 250px;
    margin-left: 20px;
}
.cinema-search input {
    background: #000000;
    border: 1px solid #333;
    color: var(--cinema-text-white);
}
.cinema-search input::placeholder {
    color: var(--cinema-text-dim);
}
.cinema-search .search-btn {
    background: var(--cinema-red);
    color: white;
    border: none;
}
.cinema-search .search-btn:hover {
    background: #ff383f;
}
/* Mobil Menyu Toggler gizlədilir */
.navbar-toggle {
    display: none; 
}


/* ========================================================= */
/* VİDEO İZLƏMƏ (video_goruntule.php) KEYFİYYƏT DÜZƏLİŞLƏRİ   */
/* ========================================================= */

/* Player Konteyneri */
.video-player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 8px; 
    box-shadow: 0 0 100px rgba(0, 0, 0, 1), 0 0 30px rgba(229, 9, 20, 0.3); 
}
.video-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
/* Məlumat Paneli - Təmiz və Oxunaqlı */
.video-details-panel {
    background: var(--cinema-card);
    padding: 30px; 
    border-radius: 8px;
    margin-bottom: 40px;
    border: 1px solid #222; 
}
.video-details-panel h1 {
    font-size: 2.4rem; 
    font-weight: 800;
    color: var(--cinema-text-white);
    margin-bottom: 15px;
}
.video-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px; 
    font-size: 1rem; 
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #222;
    color: var(--cinema-text-dim);
}
.video-meta .meta-item i {
    color: var(--cinema-red);
    margin-right: 5px;
}
.video-meta .category-tag a {
    background: var(--cinema-red);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}
.video-description-box {
    line-height: 1.7;
    font-size: 1.05rem;
    color: var(--cinema-text-dim);
}
.action-area {
    padding-top: 25px;
    border-top: 1px solid #222;
    margin-top: 25px;
}
.share-buttons-group .btn-social {
    background: #282828;
    color: var(--cinema-text-dim);
    border: none;
}
.share-buttons-group .btn-social:hover {
    background: #333333;
    color: var(--cinema-text-white);
}
.share-buttons-group .btn-link-copy {
    background: var(--cinema-red);
    color: white;
}
.share-buttons-group .btn-link-copy:hover {
    background: #ff383f;
}
.back-button-link {
    display: inline-flex;
    padding: 10px 20px;
    background: #282828;
    color: var(--cinema-text-white);
    border-radius: 5px;
}
.back-button-link:hover {
    background: var(--cinema-red);
    color: white;
}


/* ========================================================= */
/* VİDEO GALEREYA XÜSUSİ STILLƏRİ (video_galeri.php) */
/* ========================================================= */

.video-gallery-title {
    color: var(--cinema-text-white);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 30px;
    padding-top: 15px;
    border-bottom: 3px solid var(--cinema-red);
    display: inline-block;
}
.video-gallery-title i {
    color: var(--cinema-red);
}

.video-gallery-grid {
    /* 5 Sütunlu Grid təyin edildi */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px; 
    padding-bottom: 50px;
}

.video-card {
    background: var(--cinema-card);
    border: 1px solid #222;
    border-radius: 6px; 
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); 
    display: flex; 
    flex-direction: column;
}

.video-card:hover {
    transform: scale(1.03); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.9), 0 0 10px rgba(229, 9, 20, 0.4); 
}

.video-card .card-img-top {
    height: 120px; /* 5 sütun üçün ideal hündürlük */
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s;
}
.video-card:hover .card-img-top {
    transform: scale(1.05);
}

.video-card .card-body {
    padding: 12px; 
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

.video-card .card-title {
    font-size: 1rem; 
    font-weight: 700;
    color: var(--cinema-text-white);
    line-height: 1.3;
    margin-bottom: 8px;
    height: 3.9em; /* 3 sətirlik məhdudiyyət */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.video-card .card-title a {
    color: var(--cinema-text-white);
}
.video-card .card-title a:hover {
    color: var(--cinema-red);
}

.video-card .card-meta {
    font-size: 0.85rem;
    color: var(--cinema-text-dim);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.video-card .card-meta .category-badge {
    background: var(--cinema-red);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
}
.video-card .card-meta .view-count i {
    color: var(--cinema-red);
}

.video-card .card-text {
    display: none; 
}

.video-card .btn-play {
    background: var(--cinema-red);
    color: white;
    border: none;
    font-weight: 600;
    margin-top: auto; 
    flex-shrink: 0;
}
.video-card .btn-play:hover {
    background: #ff383f;
    color: white;
}

/* ========================================================= */
/* SƏHİFƏLƏNMƏ (PAGINATION) STILLƏRİ */
/* ========================================================= */

.cinema-pagination {
    padding: 30px 0;
    justify-content: center;
    display: flex;
}
.cinema-pagination .page-link {
    background: var(--cinema-card);
    color: var(--cinema-text-dim);
    border: 1px solid #333;
    transition: all 0.2s;
}
.cinema-pagination .page-item.active .page-link {
    background-color: var(--cinema-red);
    border-color: var(--cinema-red);
    color: var(--cinema-text-white);
    font-weight: 700;
}
.cinema-pagination .page-link:hover {
    background-color: #333;
    color: var(--cinema-text-white);
}
.cinema-pagination .page-item.disabled .page-link {
    background: #111;
    color: #555;
    border-color: #333;
}

/* ========================================================= */
/* KİNOTEATR FOOTER DÜZƏLİŞLƏRİ */
/* ========================================================= */

.cinema-footer {
    background: var(--cinema-card) !important;
    color: var(--cinema-text-dim) !important;
    border-top: 1px solid #222;
    padding-top: 40px;
    font-size: 0.95rem;
}
.cinema-footer .footer-container {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 30px;
}
.cinema-footer h3 {
    color: var(--cinema-text-white) !important;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.cinema-footer .footer-contact li,
.cinema-footer .footer-links a {
    color: var(--cinema-text-dim);
    line-height: 2.4; 
}
.cinema-footer .footer-contact li i {
    color: var(--cinema-red);
    margin-right: 5px;
}
.cinema-footer .social-links a {
    color: var(--cinema-text-dim);
    margin-right: 15px;
    font-size: 1.2rem;
}
.cinema-footer .social-links a:hover {
    color: var(--cinema-red);
}
.cinema-bottom {
    background: #000000 !important;
    border-top: 1px solid #222;
    padding: 15px 0;
    text-align: center;
}
.cinema-bottom p {
    margin: 0;
}

/* ========================================================= */
/* RESPONSIVE DÜZƏLİŞLƏR (Media Queries) */
/* ========================================================= */

/* Tablet (Large) */
@media (max-width: 1200px) {
    /* Qalereya: 4 sütun və ya daha az */
    .video-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    }
}

/* Tablet (Medium/Mobil Desktop) */
@media (max-width: 992px) {
    /* Header/Nav Mobil Stilləri */
    .navbar-toggle { display: flex; /* Toggler görsənir */ }
    .nav-menu { 
        display: none; 
        width: 100%; 
        flex-direction: column; 
        margin: 10px 0 0; 
        border-top: 1px solid #222; 
        padding-top: 10px; 
    }
    .nav-menu.active { display: flex; } /* Mobil menunun açılması */
    .cinema-search { 
        width: 100%; 
        max-width: 100%; 
        margin: 10px 0 0; 
    }
    .header-spacer.cinema-spacer { 
        height: 120px; 
    } 
    /* Məzmun Düzəlişləri */
    .video-details-panel h1 {
        font-size: 2rem;
    }
    .video-meta {
        gap: 15px;
    }
    /* Footer Mobil Düzəlişləri */
    .cinema-footer .footer-container {
        flex-direction: column;
        gap: 30px;
    }
}

/* Mobil (Small Tablet / Landscape Phone) */
@media (max-width: 768px) {
    /* Qalereya: 2 sütuna keçid */
    .video-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .video-card .card-img-top {
        height: 150px;
    }
    .cinema-mode-body .container-main {
        padding-top: 130px;
    }
}

/* Mobil (Phone) */
@media (max-width: 576px) {
    /* Qalereya: 1 sütuna keçid */
    .video-gallery-grid {
        grid-template-columns: 1fr; 
    }
    .video-card .card-img-top {
        height: 200px;
    }
    .video-gallery-title {
        font-size: 1.8rem;
    }
}