/* Hero Image Carousel - Frontend Styles */

.hic-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #000;
    /* Maintain 1366x768 aspect ratio */
    aspect-ratio: 1366 / 768;
}

/* Override Tatsu/theme container constraints */
.hic-carousel,
.hic-carousel * {
    box-sizing: border-box;
}

.hic-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Slide base styles */
.hic-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.hic-carousel-slide.hic-active {
    opacity: 1;
    z-index: 2;
}

/* Slide transition mode */
.hic-carousel[data-transition="slide"] .hic-carousel-slide {
    opacity: 1;
    transform: translateX(100%);
    transition: transform 0.6s ease-in-out;
}

.hic-carousel[data-transition="slide"] .hic-carousel-slide.hic-active {
    transform: translateX(0);
}

.hic-carousel[data-transition="slide"] .hic-carousel-slide.hic-slide-out-left {
    transform: translateX(-100%);
}

.hic-carousel[data-transition="slide"] .hic-carousel-slide.hic-slide-out-right {
    transform: translateX(100%);
}

/* Images */
.hic-carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hic-carousel-slide a.hic-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
    text-decoration: none;
    cursor: pointer;
}

/* Arrow navigation */
.hic-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    padding: 0;
}

.hic-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.hic-arrow-prev {
    left: 20px;
}

.hic-arrow-next {
    right: 20px;
}

.hic-arrow svg {
    width: 24px;
    height: 24px;
}

/* Dot navigation */
.hic-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hic-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
}

.hic-dot:hover,
.hic-dot.hic-dot-active {
    background: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .hic-arrow {
        width: 36px;
        height: 36px;
    }

    .hic-arrow svg {
        width: 18px;
        height: 18px;
    }

    .hic-arrow-prev {
        left: 10px;
    }

    .hic-arrow-next {
        right: 10px;
    }

    .hic-dots {
        bottom: 12px;
        gap: 8px;
    }

    .hic-dot {
        width: 10px;
        height: 10px;
    }
}
