@import url("../../components/hot-stock-card/hot-stock-card.css");

.hot-stocks-carousel {
    position: relative;
}

.hot-stocks-carousel .carousel-container {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    width: calc(100% - 64px);
}

.hot-stocks-carousel .carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    padding: 0 24px;
    scrollbar-width: none;
    overflow: scroll clip;
}

.hot-stocks-carousel .hot-stock-card {
    flex: 0 0 calc((100% - 64px) / 3);
    padding: 15px;
    background-color: var(--color-white);
    box-shadow: var(--primary-boxshadow);
    margin: 24px 32px 24px 0;
}

.hot-stocks-carousel .controls #left-arrow {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.hot-stocks-carousel .controls #right-arrow {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.hot-stocks-carousel .indicator-container {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.hot-stocks-carousel .indicator-container .indicator-item {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background-color: var(--color-gray-11);
}

.hot-stocks-carousel .indicator-container .indicator-item.active-indicator {
    height: 8px;
    width: 20px;
    border-radius: 8px;
    background-color: var(--text-seaction-heading);
}

.hot-stocks-carousel button {
    padding: 0;
    cursor: pointer;
    background: none;
}

.hot-stocks-carousel .view-more {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 24px;
}

.hot-stocks-carousel .view-more-link {
    color: var(--color-primary);
    line-height: 14px;
    position: relative;
    padding-right: 20px;
    font-weight: 600;
}

.hot-stocks-carousel .view-more-link:hover {
    color: var(--color-primary);
}

.hot-stocks-carousel .view-more-link::after {
    content: "";
    display: inline-block;
    position: absolute;
    top: 50%;
    right: 0;
    width: 16px;
    height: 16px;
    background-image: url("../../icons/arrow-right-faq.svg");
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateY(-50%);
}

.hot-stocks-carousel .carousel::-webkit-scrollbar {
    display: none;
  }

h2#todays-hot-stocks {
    text-align: center;
}

@media (width <= 1024px) {
    .hot-stocks-carousel .carousel-container {
        width: 100%;
    }

    .hot-stocks-carousel .controls {
        display: none;
    }

    .hot-stocks-carousel .indicator-container {
        display: flex;
    }

    .hot-stocks-carousel .hot-stock-card {
        flex: 0 0 100%;
        scroll-snap-align: start;
        margin: 24px 0;
    }

    .hot-stocks-container .hot-stocks-wrapper {
        padding: 0;
    }

    .hot-stocks-carousel .carousel {
        padding: 0 16px;
        gap: 32px;
    }

    .hot-stocks-carousel .view-more {
        margin-top: 16px;
        margin-right: 16px;
    }
}

@media (width <= 768px){
    .hot-stocks-carousel .view-more {
        justify-content: flex-end;
        margin-left: 16px;
    }
}