/* =========================================================
   SoftVide - Reels Shelf
   File: assets/css/reels.css
   ========================================================= */


/* ---------- Reels Section ---------- */

.reels-section {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    margin: 12px 0 28px;
}


/* ---------- Reels Header ---------- */

.reels-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 12px;
}

.reels-header h2 {
    margin: 0;

    font-size: 20px;
    font-weight: 700;

    color: var(--sv-text);
}

.reels-see-all {
    color: var(--sv-text-secondary);

    font-size: 14px;
    font-weight: 500;

    transition:
        color 0.15s ease;
}

.reels-see-all:hover {
    color: var(--sv-text);
}


/* ---------- Slider ---------- */

.reels-slider {
    position: relative;

    width: 100%;
    min-width: 0;
}


/* ---------- Track ---------- */

.reels-track {
    display: flex;

    gap: 14px;

    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    scroll-snap-type: x proximity;

    padding: 2px 2px 10px;

    scrollbar-width: thin;
}


/* Chrome / Edge scrollbar */

.reels-track::-webkit-scrollbar {
    height: 6px;
}

.reels-track::-webkit-scrollbar-track {
    background: transparent;
}

.reels-track::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}


/* ---------- Reel Card ---------- */

.reel-card {
    flex: 0 0 190px;

    min-width: 190px;

    scroll-snap-align: start;
}

.reel-card-link {
    display: block;

    color: inherit;
    text-decoration: none;
}


/* ---------- Reel Thumbnail ---------- */

.reel-thumbnail {
    position: relative;

    width: 100%;
    aspect-ratio: 9 / 16;

    overflow: hidden;

    background: var(--sv-surface);

    border-radius: var(--sv-radius-medium);
}

.reel-thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ---------- Placeholder ---------- */

.reel-placeholder {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            135deg,
            #272727,
            #181818
        );

    color: var(--sv-text-muted);

    font-size: 18px;
    font-weight: 700;
}


/* ---------- Reel Title ---------- */

.reel-title {
    margin-top: 8px;

    color: var(--sv-text);

    font-size: 14px;
    font-weight: 600;

    line-height: 1.35;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
}


/* ---------- Navigation Arrows ---------- */

.reels-arrow {
    position: absolute;

    top: 50%;
    z-index: 5;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    transform: translateY(-50%);

    border: 1px solid var(--sv-border);
    border-radius: 50%;

    background: rgba(24, 24, 24, 0.94);

    color: var(--sv-text);

    font-size: 26px;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.35);

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.reels-arrow:hover {
    background: var(--sv-surface-hover);

    transform:
        translateY(-50%)
        scale(1.05);
}

.reels-prev {
    left: 8px;
}

.reels-next {
    right: 8px;
}


/* ---------- Mobile ---------- */

@media (max-width: 767px) {

    .reels-section {
        display: none;
    }

}

/* Reels navigation arrows disabled */
.reels-arrow {
    display: none !important;
}

/* ---------- Reel Card Polish ---------- */

.reel-card {
    flex: 0 0 190px;
    width: 190px;
}

.reel-thumbnail {
    aspect-ratio: 9 / 16;
    border-radius: 10px;
    background: #181818;
    overflow: hidden;
}

.reel-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reel-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        145deg,
        #292929,
        #181818
    );

    color: #888;
    font-size: 18px;
    font-weight: 700;
}

.reel-title {
    margin-top: 8px;

    color: var(--sv-text);

    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.reels-track {
    display: flex;
    gap: 14px;

    overflow-x: auto;
    overflow-y: hidden;

    padding-bottom: 8px;

    scroll-behavior: smooth;
    scrollbar-width: thin;
}

/* Mouse/trackpad scrolling */
.reels-track::-webkit-scrollbar {
    height: 6px;
}

.reels-track::-webkit-scrollbar-track {
    background: transparent;
}

.reels-track::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}

/* Arrows permanently hidden */
.reels-arrow {
    display: none !important;
}