/**
 * IYL Categories Carousel Styles
 */

/* Swiper Core Styles */
.iyl-categories-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
}

.iyl-categories-carousel {
    overflow: hidden;
    width: 100%;
}

.iyl-categories-carousel .swiper-wrapper {
    display: flex;
    width: 100%;
}

.iyl-categories-carousel .swiper-slide {
    flex-shrink: 0;
    width: auto;
    height: auto;
}

/* Category Item */
.iyl-category-item {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.iyl-category-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.iyl-category-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Category Image */
.iyl-category-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 250px;
}

.iyl-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.iyl-image-zoom-in:hover img {
    transform: scale(1.1);
}

.iyl-image-zoom-out img {
    transform: scale(1.1);
}

.iyl-image-zoom-out:hover img {
    transform: scale(1);
}

.iyl-image-move-up:hover img {
    transform: translateY(-10px);
}

/* Category Overlay */
.iyl-category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Category Content */
.iyl-category-content {
    padding: 15px;
}

.iyl-category-content.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
}

.iyl-category-title {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.iyl-category-count {
    display: block;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.iyl-category-description {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 10px 0;
    opacity: 0.9;
}

.iyl-category-button {
    display: inline-block;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #333;
    color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.iyl-category-item:hover .iyl-category-button {
    background-color: #000;
}

/* Card Hover Animations */
.iyl-hover-float:hover {
    transform: translateY(-8px);
}

.iyl-hover-sink:hover {
    transform: translateY(8px);
}

.iyl-hover-pulse:hover {
    animation: iyl-pulse 0.3s;
}

@keyframes iyl-pulse {
    25% { transform: scale(1.03); }
    75% { transform: scale(0.97); }
}

.iyl-hover-push:hover {
    transform: scale(0.95);
}

.iyl-hover-pop:hover {
    transform: scale(1.05);
}

.iyl-hover-bounce-in:hover {
    animation: iyl-bounce-in 0.5s ease;
}

@keyframes iyl-bounce-in {
    0% { transform: scale(1); }
    30% { transform: scale(1.05); }
    50% { transform: scale(0.98); }
    70% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.iyl-hover-bounce-out:hover {
    animation: iyl-bounce-out 0.5s ease;
}

@keyframes iyl-bounce-out {
    0% { transform: scale(1); }
    30% { transform: scale(0.95); }
    50% { transform: scale(1.02); }
    70% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.iyl-hover-grow:hover {
    transform: scale(1.05);
}

.iyl-hover-shrink:hover {
    transform: scale(0.95);
}

/* Navigation Arrows */
.iyl-swiper-button-prev,
.iyl-swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #333;
}

.iyl-swiper-button-prev {
    left: 10px;
}

.iyl-swiper-button-next {
    right: 10px;
}

.iyl-swiper-button-prev svg,
.iyl-swiper-button-next svg {
    width: 50%;
    height: 50%;
    display: block;
}

.iyl-swiper-button-prev:hover,
.iyl-swiper-button-next:hover {
    background-color: #333;
    color: #fff;
}

.iyl-swiper-button-prev.swiper-button-disabled,
.iyl-swiper-button-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.iyl-navigation-bottom {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.iyl-navigation-bottom .iyl-swiper-button-prev,
.iyl-navigation-bottom .iyl-swiper-button-next {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
}

/* Pagination */
.iyl-swiper-pagination {
    text-align: center;
    margin-top: 20px;
    position: relative;
}

.iyl-swiper-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    background: #ccc;
    opacity: 1;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.iyl-swiper-pagination .swiper-pagination-bullet-active {
    background: #333;
}

.iyl-swiper-pagination.swiper-pagination-fraction {
    font-size: 14px;
    color: #333;
}

.iyl-swiper-pagination.swiper-pagination-progressbar {
    position: relative;
    width: 100%;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
}

.iyl-swiper-pagination.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #333;
    transform-origin: left top;
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
    .iyl-swiper-button-prev,
    .iyl-swiper-button-next {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 767px) {
    .iyl-swiper-button-prev,
    .iyl-swiper-button-next {
        width: 30px;
        height: 30px;
    }

    .iyl-category-title {
        font-size: 16px;
    }

    .iyl-category-count,
    .iyl-category-description {
        font-size: 13px;
    }
}
