/* ===================================================================
   img-carousel.css — Image Carousel for KolProfile Extra Content
   Path: wwwroot/css/user/kol/img-carousel.css
   =================================================================== */

.img-carousel {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #0a0a0a;
    margin-top: 12px;
}

/* Track chứa các ảnh */
.img-carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Mỗi item ảnh */
.img-carousel-item {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
}

.img-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.img-carousel:hover .img-carousel-item img {
    transform: scale(1.02);
}

/* Nút ‹ › */
.img-car-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.2s, color 0.2s, transform 0.2s;
    user-select: none;
}

.img-car-btn:hover {
    background: rgba(250, 204, 21, 0.85);
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.img-car-prev { left: 10px; }
.img-car-next { right: 10px; }

/* Dots indicator */
.img-car-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.img-car-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.3s, transform 0.3s, width 0.3s;
    cursor: pointer;
}

.img-car-dot.active {
    background: #facc15;
    width: 20px;
    border-radius: 4px;
}

/* Counter nhỏ góc phải trên */
.img-car-counter {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 7px;
    border-radius: 20px;
    z-index: 10;
    backdrop-filter: blur(4px);
    letter-spacing: 0.05em;
}
