/**
 * SQO Display Slider Styles
 * Stilar för slider-läge (brands och venues)
 * 
 * @package SQO_Modular_Plugin
 * @subpackage Modules/Venues
 */

/* ====================================
   Slider Container
   ==================================== */
.sqo-slider-container {
    position: relative;
    width: 100%;
    margin: 0px 0px;
}

.sqo-slider-container .swiper {
    width: 100%;
    padding: 10px 0 10px 0;
}

.sqo-slider-container .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.sqo-slider-container .swiper-slide {
    height: auto;
    display: flex;
    flex-shrink: 0;
}

/* ====================================
   Display Item - Bas
   ==================================== */
.sqo-display-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* ====================================
   Brand Items i Slider
   ==================================== */
.sqo-display-brands .sqo-brand-item {
    background: #000;
    border-radius: 8px;
    padding: 20px;
    aspect-ratio: 1 / 1;
    width: 100%;
}

.sqo-display-brands .sqo-brand-item a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.sqo-display-brands .sqo-brand-item img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* ====================================
   Hover Effects
   ==================================== */
.sqo-display-wrapper.sqo-hover-scale .sqo-brand-item:hover {
    transform: scale(1.05);
}

.sqo-display-wrapper.sqo-hover-opacity .sqo-brand-item {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.sqo-display-wrapper.sqo-hover-opacity .sqo-brand-item:hover {
    opacity: 0.8;
}

/* ====================================
   Navigation Arrows
   ==================================== */
.sqo-slider-container .swiper-button-prev,
.sqo-slider-container .swiper-button-next {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.sqo-slider-container .swiper-button-prev:hover,
.sqo-slider-container .swiper-button-next:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sqo-slider-container .swiper-button-prev::after,
.sqo-slider-container .swiper-button-next::after {
    font-size: 20px;
    font-weight: bold;
}

/* ====================================
   Pagination Dots
   ==================================== */
.sqo-slider-container .swiper-pagination {
    bottom: 10px;
}

.sqo-slider-container .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

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

/* ====================================
   Venue Items i Slider - Logo Only
   ==================================== */
.sqo-slider-container .sqo-venue-logo-only {
    background: #000;
    border-radius: 8px;
    padding: 20px;
    aspect-ratio: 1 / 1;
    width: 100%;
}

.sqo-slider-container .sqo-venue-logo-only a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.sqo-slider-container .sqo-venue-logo-only img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ====================================
   Venue Items i Slider - Card Layout
   ==================================== */
.sqo-slider-container .sqo-venue-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%;
}

.sqo-slider-container .sqo-venue-card .sqo-venue-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sqo-slider-container .sqo-venue-card .sqo-venue-image {
    width: 100%;
    flex: 1; /* Gör att bilden tar upp all tillgänglig plats */
    overflow: hidden;
    min-height: 300px; /* Minimum höjd */
}

.sqo-slider-container .sqo-venue-card .sqo-venue-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Täcker hela området */
    transition: transform 0.3s ease;
}

.sqo-slider-container .sqo-venue-card:hover .sqo-venue-image img {
    transform: scale(1.05);
}

/* Footer med horisontell layout */
.sqo-slider-container .sqo-venue-card .sqo-venue-content {
    background: #000;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 70px; /* Default - kan överskrivas av Elementor */
    flex-shrink: 0; /* Förhindrar att footern krymper */
}

.sqo-slider-container .sqo-venue-card .sqo-venue-title {
    font-size: 16px;
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    flex: 1;
}

.sqo-slider-container .sqo-venue-card .sqo-venue-brand-logo {
    max-width: 60px;  /* Default - kan överskrivas av Elementor */
    max-height: 35px; /* Default - kan överskrivas av Elementor */
    flex-shrink: 0;
    display: flex; /* Säkerställer att containern följer innehållet */
    align-items: center;
    justify-content: center;
}

.sqo-slider-container .sqo-venue-card .sqo-venue-brand-logo img {
    width: 100%; /* Fyller containerns bredd */
    height: 100%; /* Fyller containerns höjd */
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    display: block; /* Tar bort inline-spacing */
}

/* ====================================
   Responsive
   ==================================== */
@media (max-width: 767px) {
    .sqo-slider-container .swiper {
        padding: 10px 0 40px 0;
    }
    
    .sqo-slider-container .swiper-button-prev,
    .sqo-slider-container .swiper-button-next {
        display: none;
    }
    
    .sqo-display-brands .sqo-brand-item {
        padding: 15px;
    }
    
    /* Venue card - Vertikal layout på mobil */
    .sqo-slider-container .sqo-venue-card .sqo-venue-content {
        flex-direction: column;
        text-align: center;
        padding: 12px;
        min-height: auto;
        gap: 10px;
    }
    
    .sqo-slider-container .sqo-venue-card .sqo-venue-title {
        font-size: 14px;
        text-align: center;
    }
    
    .sqo-slider-container .sqo-venue-card .sqo-venue-brand-logo {
        max-width: 50px;
        max-height: 30px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .sqo-display-brands .sqo-brand-item {
        padding: 18px;
    }
}

/* ====================================
   Continuous Flow - Linear Timing
   ==================================== */
/* VIKTIGT: Linear timing function för smooth continuous scroll */
.sqo-slider-container .swiper-wrapper {
    -webkit-transition-timing-function: linear !important;
    -o-transition-timing-function: linear !important;
    transition-timing-function: linear !important;
}