/**
 * SMG Logo Carousel Styles
 * Responsive logo carousel with Swiper integration
 * 
 * @package SMGMall
 * @version 1.0.0
 */

/* ===================================
   WIDGET BASE
   =================================== */

.smg-logo-carousel-widget {
    position: relative;
    padding: var(--space-12, 3rem) 0;
    width: 100%;
    overflow: hidden;
}

/* ===================================
   CAROUSEL CONTAINER
   =================================== */

.logo-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

/* ===================================
   LOGO ITEMS
   =================================== */

.logo-carousel-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 2vw, 1.5rem);
    height: 100%;
    min-height: 120px;
}

/* ===================================
   TICKER MODE
   =================================== */

/* Ticker Mode: Fixed width slides */
.carousel-ticker-mode .swiper-slide {
    width: auto !important;
    min-width: 180px;
    flex-shrink: 0;
}

.carousel-ticker-mode .logo-carousel-item {
    padding: 1rem 1.5rem;
}

/* Ticker Mode: Disable navigation and pagination */
.carousel-ticker-mode .swiper-button-prev,
.carousel-ticker-mode .swiper-button-next,
.carousel-ticker-mode .swiper-pagination {
    display: none !important;
}

/* Ticker Mode: Smooth continuous animation */
.carousel-ticker-mode .swiper-wrapper {
    transition-timing-function: linear !important;
}

/* Ticker Mode: Pause on hover */
.carousel-ticker-mode:hover .swiper-wrapper {
    animation-play-state: paused;
}

.carousel-ticker-mode .swiper.swiper-autoheight,
.carousel-ticker-mode .swiper.swiper-autoheight .swiper-slide {
    transition-duration: 0ms !important;
}

.logo-carousel-link {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.logo-carousel-link:hover {
    transform: scale(1.05);
}

.logo-carousel-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 80px;
    margin: 0 auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Grayscale Effect */
.logo-grayscale .logo-carousel-image {
    filter: grayscale(100%);
}

.logo-grayscale .logo-carousel-item:hover .logo-carousel-image {
    filter: grayscale(0%);
}

/* ===================================
   SWIPER NAVIGATION
   =================================== */

.logo-carousel-container .swiper-button-prev,
.logo-carousel-container .swiper-button-next {
    color: var(--smg-primary, #1a5770);
    background: rgba(255, 255, 255, 0.9);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.logo-carousel-container .swiper-button-prev:hover,
.logo-carousel-container .swiper-button-next:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
}

.logo-carousel-container .swiper-button-prev:after,
.logo-carousel-container .swiper-button-next:after {
    font-size: 20px;
    font-weight: 700;
}

/* Hide on small screens */
@media (max-width: 768px) {
    .logo-carousel-container .swiper-button-prev,
    .logo-carousel-container .swiper-button-next {
        display: none;
    }
}

/* ===================================
   SWIPER PAGINATION
   =================================== */

.logo-carousel-container .swiper-pagination {
    bottom: -10px;
}

.logo-carousel-container .swiper-pagination-bullet {
    background: var(--smg-primary, #1a5770);
    opacity: 0.3;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.logo-carousel-container .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

/* ===================================
   RESPONSIVE
   =================================== */

/* Tablet */
@media (max-width: 1024px) {
    .smg-logo-carousel-widget {
        padding: var(--space-10, 2.5rem) 0;
    }

    .logo-carousel-image {
        max-height: 70px;
    }

    .logo-carousel-item {
        min-height: 100px;
        padding: clamp(0.75rem, 1.5vw, 1.25rem);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .smg-logo-carousel-widget {
        padding: var(--space-8, 2rem) 0;
    }

    .logo-carousel-container {
        padding: 0 1rem;
    }

    .logo-carousel-image {
        max-height: 60px;
    }

    .logo-carousel-item {
        min-height: 80px;
        padding: 0.75rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .logo-carousel-image {
        max-height: 50px;
    }

    .logo-carousel-item {
        min-height: 70px;
        padding: 0.5rem;
    }
}

/* ===================================
   LOADING STATE
   =================================== */

.logo-carousel-container.swiper-initialized {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.logo-carousel-container:not(.swiper-initialized) {
    opacity: 0.5;
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .logo-carousel-container .swiper-button-prev,
    .logo-carousel-container .swiper-button-next,
    .logo-carousel-container .swiper-pagination {
        display: none;
    }

    .logo-carousel-item {
        page-break-inside: avoid;
    }
}

