﻿/* \css\HomePage\featured-carousel.css */

#carouselRow {
    display: flex;
    align-items: flex-end;
    margin-left: -75px;
    overflow: visible;
    transition: transform 0.65s ease;
}

.featured-carousel-wrapper {
    display: flex;
    align-items: center;
    /*justify-content: center*/
    height: 260px;
    width: 100%;
    max-width: 600px; /* EXACT width of viewport */
    margin: 0px auto 15px auto;
    gap: 5px;
    position: relative;
}

.carousel-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    /*background: #f4e7d3;*/ /* warm parchment */
    border-radius: 400px; /* permanent oval */
    height: 200px;
    padding: 18px 0px 0px 0px; /* 16px sides pull books away from curved edges */
    margin-left: 0px;
    background: radial-gradient( ellipse at center, rgba(244,231,211,1) 60%, rgba(244,231,211,0) 100% );
}

.carousel-col {
    flex: 1;
    min-width: 0; /* prevents flex child from overflowing */
    margin-top: -52px; /* lift carousel upward */
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    width: 100px;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0));
    color: white;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.featured-item {
    width: 100px;
    height: 150px;
    flex-shrink: 0;
    cursor: pointer;
    margin: 8px;
}

.cover-frame {
    width: 110px;
    height: 128px;
    overflow: hidden; /* physically clips anything outside the box */
    border-radius: 5px;
    flex-shrink: 0;
}

.featured-cover {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fills the frame, crops excess */
}

.featured-author {
    display: none !important;
}
.featured-title {
    display: none !important;
}

/* Arrows — pushed down to the visual midpoint of the 128px cover */
.carousel-arrow {
    color: #4a2e1a !important; /* deep brown, matches hero */
    position: relative;
    flex-shrink: 0;
    width: 32px;
    font-size: 1.6rem;
    cursor: pointer;
    color: #4a2e1a;
    background: none;
    border: none;
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* Left arrow appears first — move it before the viewport */
.featured-left-arrow {
    order: -1;
}

.featured-right-arrow {
    order: 1;
}

.carousel-arrow:hover {
    background: rgba(0,0,0,0.6);
}

/* 2. Add at the bottom of the file — plain .css so single @ is correct */
@keyframes carousel-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

