/**
 * Recommendation Scroller Component - Minimal Poster Wall
 *
 * Clean, light theme design with side ribbon and star ratings
 * Features mouse drag scrolling support
 *
 * @package FzMovies
 * @version 2.0
 */

/* ========================================
   CONTAINER
   ======================================== */

.rec-wall-container {
    background: #fafafa;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    margin: 10px 0;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.rec-wall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #d95e11;
}

.rec-wall-title {
    font-size: 1.1em;
    color: #333;
    margin: 0;
    font-weight: 700;
}

/* ========================================
   NAVIGATION ARROWS
   ======================================== */

.rec-wall-nav-arrows {
    display: flex;
    gap: 8px;
}

.rec-wall-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #d95e11;
    background: #fff;
    color: #d95e11;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rec-wall-arrow:hover {
    background: #d95e11;
    color: #fff;
}

.rec-wall-arrow:active {
    transform: scale(0.95);
}

.rec-wall-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.rec-wall-arrow:disabled:hover {
    background: #fff;
    color: #d95e11;
}

/* ========================================
   SCROLLER
   ======================================== */

.rec-wall-scroller {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 5px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    cursor: grab;
    user-select: none;
    position: relative;
}

.rec-wall-scroller:active {
    cursor: grabbing;
}

.rec-wall-scroller.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

/* Scrollbar styling */
.rec-wall-scroller::-webkit-scrollbar {
    height: 6px;
}

.rec-wall-scroller::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.rec-wall-scroller::-webkit-scrollbar-thumb {
    background: #d95e11;
    border-radius: 3px;
}

.rec-wall-scroller::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}

/* Firefox scrollbar */
.rec-wall-scroller {
    scrollbar-width: thin;
    scrollbar-color: #d95e11 #f0f0f0;
}

/* ========================================
   MOVIE ITEMS
   ======================================== */

.rec-wall-item {
    flex: 0 0 140px;
    min-width: 140px;
    scroll-snap-align: start;
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.rec-wall-item:hover {
    box-shadow: 0 8px 25px rgba(217, 94, 17, 0.2);
    transform: translateY(-5px);
}

.rec-wall-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Note: Click prevention during drag is handled by JavaScript */

/* ========================================
   POSTER
   ======================================== */

.rec-wall-poster {
    position: relative;
    overflow: hidden;
}

.rec-wall-poster img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
    pointer-events: none;
}

.rec-wall-item:hover .rec-wall-poster img {
    transform: scale(1.08);
}

/* ========================================
   SIDE RIBBON
   ======================================== */

.rec-wall-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(180deg, #d95e11 0%, #c0392b 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    gap: 8px;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.3s ease;
}

.rec-wall-item:hover .rec-wall-ribbon {
    opacity: 1;
    transform: translateX(0);
}

.rec-wall-ribbon-icon {
    width: 22px;
    height: 22px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.rec-wall-ribbon-icon:hover {
    background: rgba(255,255,255,0.4);
}

.rec-wall-ribbon-icon svg {
    width: 12px;
    height: 12px;
    fill: #fff;
}

/* ========================================
   QUICK INFO OVERLAY (Rating)
   ======================================== */

.rec-wall-quick-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    padding: 40px 10px 10px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.rec-wall-item:hover .rec-wall-quick-info {
    transform: translateY(0);
    opacity: 1;
}

.rec-wall-rating-bar {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rec-wall-stars {
    display: flex;
    gap: 2px;
}

.rec-wall-star {
    width: 12px;
    height: 12px;
    fill: #f1c40f;
}

.rec-wall-star.empty {
    fill: #555;
}

.rec-wall-rating-num {
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

/* ========================================
   CONTENT SECTION
   ======================================== */

.rec-wall-content {
    padding: 12px 10px;
    background: #fff;
}

.rec-wall-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rec-wall-year {
    font-size: 11px;
    color: #888;
    margin-bottom: 6px;
}

/* ========================================
   CTA BUTTON
   ======================================== */

.rec-wall-cta {
    padding-top: 8px;
    border-top: 1px solid #eee;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.rec-wall-item:hover .rec-wall-cta {
    opacity: 1;
    transform: translateY(0);
}

.rec-wall-download-btn {
    display: block;
    background: linear-gradient(135deg, #d95e11, #e74c3c);
    color: #fff;
    text-align: center;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.rec-wall-download-btn:hover {
    background: linear-gradient(135deg, #c0392b, #d95e11);
}

/* ========================================
   EMPTY STATE
   ======================================== */

.rec-wall-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Small Mobile */
@media (max-width: 400px) {
    .rec-wall-container {
        padding: 10px;
        border-radius: 8px;
    }

    .rec-wall-scroller {
        gap: 8px;
    }

    .rec-wall-item {
        flex: 0 0 100px;
        min-width: 100px;
    }

    .rec-wall-poster img {
        height: 150px;
    }

    .rec-wall-ribbon {
        width: 24px;
    }

    .rec-wall-ribbon-icon {
        width: 18px;
        height: 18px;
    }

    .rec-wall-ribbon-icon svg {
        width: 10px;
        height: 10px;
    }

    .rec-wall-content {
        padding: 8px 6px;
    }

    .rec-wall-name {
        font-size: 10px;
    }

    .rec-wall-year {
        font-size: 9px;
    }

    .rec-wall-download-btn {
        font-size: 9px;
        padding: 5px 8px;
    }

    .rec-wall-title {
        font-size: 0.95em;
    }

    .rec-wall-arrow {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}

/* Mobile */
@media (min-width: 401px) and (max-width: 600px) {
    .rec-wall-item {
        flex: 0 0 120px;
        min-width: 120px;
    }

    .rec-wall-poster img {
        height: 175px;
    }

    .rec-wall-name {
        font-size: 11px;
    }
}

/* Tablet */
@media (min-width: 601px) and (max-width: 900px) {
    .rec-wall-item {
        flex: 0 0 130px;
        min-width: 130px;
    }

    .rec-wall-poster img {
        height: 190px;
    }
}

/* Desktop */
@media (min-width: 901px) {
    .rec-wall-item {
        flex: 0 0 150px;
        min-width: 150px;
    }

    .rec-wall-poster img {
        height: 220px;
    }

    .rec-wall-container {
        padding: 20px;
    }
}

/* ========================================
   DRAG HINT (visual feedback)
   ======================================== */

.rec-wall-scroller::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to left, rgba(250,250,250,0.9) 0%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rec-wall-container:hover .rec-wall-scroller::after {
    opacity: 1;
}

/* Hide fade when scrolled to end */
.rec-wall-scroller.at-end::after {
    opacity: 0;
}
