/* books-featured-section.css */

.books-featured {
    position: relative;
    margin-top: -100px;
    z-index: 10;
    padding: 0 2rem 4rem;
}

.books-featured__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 2rem;
}

.books-featured__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.books-featured__cover {
    position: relative;
    width: 220px;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.books-featured__cover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.books-featured__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.books-featured__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #00A8E8;
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.books-featured__rating {
    display: flex;
    gap: 0.2rem;
}

.books-featured__star {
    color: #FDB913;
    font-size: 1.2rem;
}

.books-featured__star--half {
    position: relative;
    color: #e0e0e0;
}

.books-featured__star--half::before {
    content: '★';
    position: absolute;
    left: 0;
    color: #FDB913;
    width: 50%;
    overflow: hidden;
}

/* Empty star */
.books-featured__star--empty {
    color: #e0e0e0 !important;
    /* grey */
}

/* Responsive Design */
@media (max-width: 768px) {
    .books-featured {
        margin-top: -80px;
        padding: 0 1.5rem 3rem;
    }

    .books-featured__container {
        gap: 1.5rem;
        padding-top: 1.5rem;
    }

    .books-featured__cover {
        width: 180px;
        height: 260px;
    }
}

@media (max-width: 480px) {
    .books-featured {
        margin-top: -60px;
    }

    .books-featured__container {
        padding-top: 1rem;
    }

    .books-featured__cover {
        width: 150px;
        height: 220px;
    }

    .books-featured__star {
        font-size: 1rem;
    }
}