/* assets/styles/theme-carousel.css */

.theme-carousel-container {
    position: relative;
    width: 100%;
    padding: 0 30px; /* Space for nav buttons */
    box-sizing: border-box;
}

.theme-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* For Firefox */
    gap: 10px; /* Space between items */
    padding: 10px 0;
}

.theme-carousel::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}

.theme-carousel-item {
    flex: 0 0 auto;
    width: 100px;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    scroll-snap-align: start;
    border: 2px solid transparent; /* Placeholder for selection border */
    transition: border 0.2s ease-in-out;
}

.theme-carousel-item.selected {
    border: 2px solid var(--brand);
}

.theme-carousel-item svg {
    width: 40px;
    height: 44px;
    fill: currentColor; /* Use text color for the SVG fill */
}

.theme-carousel-item span {
    display: block;
    font-size: 0.8rem;
    line-height: 1.2;
    margin-top: 5px;
    background: rgba(242, 92, 125, 0.5);
    color: #ffffff;
    border-radius: 5px;
}

.theme-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    line-height: 1;
}

.theme-carousel-nav.prev {
    left: 0;
}

.theme-carousel-nav.next {
    right: 0;
}
