/**
 * CockpitOS Light Theme - Shop Carousel Widget Styles
 *
 * Verantwortlichkeit: Shop Carousel Styling
 * Smooth Animations, Ticker Mode, Cool Easing
 *
 * @package CockpitOS_Light_Theme
 * @version 1.0.0
 */

/* ========================================
   Container
   ======================================== */

.cockpit-shop-carousel {
    position: relative;
    width: 100%;
}

.cockpit-shop-carousel__container {
    overflow: hidden;
    width: 100%;
}

.cockpit-shop-carousel__track {
    display: flex;
}

/* ========================================
   Carousel Mode
   ======================================== */

.cockpit-shop-carousel--carousel .cockpit-shop-carousel__item {
    flex: 0 0 auto;
}

/* ========================================
   Ticker Mode - Continuous Scroll
   ======================================== */

.cockpit-shop-carousel--ticker .cockpit-shop-carousel__track {
    animation: ticker-scroll var(--ticker-duration, 30s) linear infinite;
    will-change: transform;
}

.cockpit-shop-carousel--ticker .cockpit-shop-carousel__item {
    flex: 0 0 auto;
    width: 200px;
    min-width: 200px;
}

.cockpit-shop-carousel--ticker:hover .cockpit-shop-carousel__track.paused {
    animation-play-state: paused;
}

.cockpit-shop-carousel--ticker.ticker-reverse .cockpit-shop-carousel__track {
    animation-name: ticker-scroll-reverse;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

@keyframes ticker-scroll-reverse {
    0% {
        transform: translateX(-33.333%);
    }
    100% {
        transform: translateX(0);
    }
}

/* ========================================
   Grid Mode
   ======================================== */

.cockpit-shop-carousel--grid .cockpit-shop-carousel__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

/* ========================================
   Logo Item
   ======================================== */

.cockpit-shop-carousel__item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cockpit-shop-carousel__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.cockpit-shop-carousel__logo img {
    width: auto;
    height: 80px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* ========================================
   Grayscale Effect
   ======================================== */

.cockpit-shop-carousel--grayscale .cockpit-shop-carousel__logo img {
    filter: grayscale(100%);
}

.cockpit-shop-carousel--grayscale .cockpit-shop-carousel__item:hover .cockpit-shop-carousel__logo img {
    filter: grayscale(0%);
}

/* ========================================
   Navigation
   ======================================== */

.cockpit-shop-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #1f2937;
}

.cockpit-shop-carousel__nav:hover {
    background-color: #f9fafb;
    border-color: #dc2626;
    color: #dc2626;
    transform: translateY(-50%) scale(1.1);
}

.cockpit-shop-carousel__nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.cockpit-shop-carousel__nav--prev {
    left: -20px;
}

.cockpit-shop-carousel__nav--next {
    right: -20px;
}

.cockpit-shop-carousel__nav svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
    .cockpit-shop-carousel__nav--prev {
        left: 0;
    }
    
    .cockpit-shop-carousel__nav--next {
        right: 0;
    }
}

@media (max-width: 768px) {
    .cockpit-shop-carousel__logo img {
        height: 60px;
    }
    
    .cockpit-shop-carousel__item {
        padding: 1rem;
    }
    
    .cockpit-shop-carousel__nav {
        width: 32px;
        height: 32px;
    }
    
    .cockpit-shop-carousel__nav svg {
        width: 20px;
        height: 20px;
    }
    
    .cockpit-shop-carousel--grid .cockpit-shop-carousel__grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .cockpit-shop-carousel__logo img {
        height: 50px;
    }
    
    .cockpit-shop-carousel__item {
        padding: 0.75rem;
    }
    
    .cockpit-shop-carousel--grid .cockpit-shop-carousel__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

