﻿/* ======================================================
   NETFLIX ENTERPRISE UI – FINAL CLEAN STABLE BUILD
====================================================== */

/* ================= ROOT ================= */

.netflix-ui {
    background: #000;
    padding: 40px 0;
    color: #fff;
}

/* ================= SECTION ================= */

.netflix-section {
    max-width: 1500px;
    margin: auto;
    margin-bottom: 50px;
    position: relative;
}

.netflix-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px 20px;
}

    .netflix-header h2 {
        font-weight: 700;
        font-size: 22px;
        margin: 0;
    }

.view-all-btn {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: .3s;
}

    .view-all-btn:hover {
        color: #fff;
    }

/* ======================================================
   SLIDER SYSTEM
====================================================== */

.netflix-row-wrap {
    position: relative;
}

/* SLIDER ROW (FINAL MOBILE SAFE) */

.netflix-slider-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 16px 20px;
    scroll-behavior: smooth;
    /* MOBILE SMOOTH SCROLL */
    -webkit-overflow-scrolling: touch;
    /* PREVENT SCROLL LOCK */
    overscroll-behavior-x: contain;
    /* REMOVE SNAP (CAUSE OF FREEZE) */
    scroll-snap-type: none;
}

    /* Hide scrollbar */
    .netflix-slider-row::-webkit-scrollbar {
        display: none;
    }

/* SLIDER CARD */

.netflix-slider-card {
    flex: 0 0 auto;
    width: 240px;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .netflix-slider-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Desktop hover only */
@media(min-width:992px) {
    .netflix-slider-card:hover {
        transform: scale(1.05);
        box-shadow: 0 20px 50px rgba(0,0,0,.8);
    }
}

/* ================= ARROWS ================= */

.netflix-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 80px;
    background: rgba(0,0,0,.6);
    border: none;
    color: #fff;
    font-size: 28px;
    z-index: 5;
    cursor: pointer;
    border-radius: 8px;
    transition: .25s;
}

    .netflix-arrow.left {
        left: 10px;
    }

    .netflix-arrow.right {
        right: 10px;
    }

    .netflix-arrow:hover {
        background: rgba(229,9,20,.9);
    }

/* SHADOW OVERLAY (DOES NOT BLOCK TOUCH) */

.netflix-row-wrap::before,
.netflix-row-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

.netflix-row-wrap::before {
    left: 0;
    background: linear-gradient(to right,#000 0%,transparent 100%);
}

.netflix-row-wrap::after {
    right: 0;
    background: linear-gradient(to left,#000 0%,transparent 100%);
}

/* ======================================================
   GRID PAGE
====================================================== */

.netflix-wrapper {
    background: #141414;
    padding: 40px;
    min-height: 100vh;
}

.netflix-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 30px;
}

.netflix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
    gap: 25px;
}

.netflix-grid-card {
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .netflix-grid-card:hover {
        transform: scale(1.05);
        box-shadow: 0 20px 50px rgba(0,0,0,.7);
    }

.netflix-thumb {
    width: 100%;
    height: 300px;
}

    .netflix-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* ======================================================
   RESPONSIVE
====================================================== */

@media(max-width:1200px) {
    .netflix-slider-row {
        padding: 20px 40px;
    }
}

@media(max-width:992px) {

    .netflix-header {
        padding: 0 20px 15px;
    }

    .netflix-slider-row {
        padding: 15px 20px;
    }

    .netflix-slider-card {
        width: 200px;
        height: 260px;
    }
}

@media(max-width:768px) {

    .netflix-slider-card {
        width: 170px;
        height: 220px;
    }

    .netflix-arrow {
        display: none;
    }
}

@media(max-width:480px) {

    .netflix-slider-card {
        width: 150px;
        height: 200px;
    }
}
/* ======================================================
   PROFESSIONAL PINHOLE STYLE GALLERY
====================================================== */

.netflix-wrapper {
    background: #f5f6f8;
    padding: 60px 40px;
    min-height: 100vh;
}

/* HEADER */

.netflix-header {
    text-align: center;
    margin-bottom: 40px;
}

.netflix-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: 10px;
}

.gallery-subtitle {
    color: #777;
    font-size: 15px;
}

/* SEARCH BAR */

.gallery-search {
    max-width: 400px;
    margin: 20px auto 40px auto;
}

    .gallery-search input {
        border-radius: 50px;
        padding: 12px 20px;
        border: 1px solid #ddd;
    }

/* GRID */

.netflix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
    gap: 30px;
}

/* CARD */

.netflix-grid-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.06);
    transition: .3s ease;
    cursor: pointer;
}

    .netflix-grid-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,.12);
    }

.netflix-thumb {
    width: 100%;
    height: 260px;
    overflow: hidden;
}

    .netflix-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* CARD TEXT */

.gallery-info {
    padding: 18px;
}

    .gallery-info h5 {
        font-weight: 600;
        font-size: 16px;
        margin-bottom: 6px;
        color: #222;
    }

    .gallery-info span {
        font-size: 13px;
        color: #888;
    }

/* PAGINATION */

.gallery-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

    .gallery-pagination .page-link {
        border-radius: 50px;
        margin: 0 4px;
        color: #333;
    }

    .gallery-pagination .active .page-link {
        background: #000;
        border-color: #000;
        color: #fff;
    }

/* RESPONSIVE */

@media(max-width:768px) {
    .netflix-wrapper {
        padding: 40px 20px;
    }

    .netflix-title {
        font-size: 30px;
    }
}
