/* SoundPeats Responsive Slider - Production Styles */

/* Main slider container with container queries for true responsiveness */
.soundpeats-responsive-slider {
    container-type: inline-size;
    container-name: slider;
    width: 100%;
    max-width: 100%;
    position: relative;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.soundpeats-responsive-slider .splide {
    width: 100% !important;
    height: auto !important;
}

.soundpeats-responsive-slider .splide__track {
    width: 100% !important;
    overflow: hidden !important;
}

.soundpeats-responsive-slider .splide__list {
    display: flex !important;
    width: 100% !important;
}

/* Individual slides with aspect ratio and responsive design */
.soundpeats-slider-slide {
    position: relative;
    width: 100%;
    aspect-ratio: auto !important; /* Let content determine height */
    display: flex !important;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0 !important;
    overflow: hidden !important; /* Hide overflow for animation */
    border: none !important;
    visibility: visible !important;
    opacity: 1 !important;

    /* OLED black space background */
    background: #000000 !important;
}

/* CSS particle effects removed for premium minimal design */

/* OLD: Add variety to slides with different subtle background colors */
.soundpeats-slider-slide:nth-child(1) {
    /* Removed - now using space animation */
}

.soundpeats-slider-slide:nth-child(2) {
    /* Removed - now using space animation */
}

.soundpeats-slider-slide:nth-child(3) {
    /* Removed - now using space animation */
}

.soundpeats-slider-slide:nth-child(4) {
    /* Removed - now using space animation */
}

.soundpeats-slider-slide:nth-child(5) {
    /* Removed - now using space animation */
}

/* MODERN HYBRID SLIDE IMPLEMENTATION */
.slide-content-wrapper {
    /* Transform into modern grid layout */
    width: 100%;
    max-width: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "content product";
    min-height: 500px;
    position: relative;
    background: transparent;
    z-index: 10 !important; /* Above space animation and glass */
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    border: none;
    text-align: left;
    gap: 0;
    /* Ensure text selection is always enabled */
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* REMOVED - Conflicted with space animation */
.slide-content-wrapper::before {
    content: none !important;
}

/* REMOVED - Conflicted with glassmorphism */
.slide-content-wrapper::after {
    content: none !important;
}

/* Make existing content work with new layout */
.slide-content-wrapper > * {
    /* All direct children get proper z-index above background */
    position: relative;
    z-index: 5;
}

/* CLEAN BLACK TEXT - NO GRADIENT BULLSHIT */
.slide-content-wrapper h2 {
    color: #ffffff !important;
    font-size: clamp(2.5rem, 5cqw, 4rem) !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 1rem !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
}

/* Modern Content Box */
.slide-content-wrapper .content-box {
    max-width: 480px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2.5cqw, 2rem);
}

/* Feature Badges */
.slide-content-wrapper .feature-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.slide-content-wrapper .badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.slide-content-wrapper .badge-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
}

.slide-content-wrapper .badge-icon {
    opacity: 0.8;
}

/* Modern Typography */
.slide-content-wrapper h1,
.slide-content-wrapper h2,
.slide-content-wrapper h3 {
    margin: 0;
    line-height: 1.1;
    font-weight: 700;
    color: white;
    font-size: clamp(2.5rem, 5cqw, 4rem);
    letter-spacing: -0.02em;
}

.slide-content-wrapper .brand-name {
    display: block;
    font-size: 0.7em;
    font-weight: 500;
    opacity: 0.8;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.slide-content-wrapper .product-name {
    display: block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-content-wrapper .variant-name {
    display: block;
    font-size: 0.6em;
    font-weight: 400;
    opacity: 0.7;
    margin-top: 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.slide-content-wrapper p {
    margin: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: clamp(1rem, 2cqw, 1.25rem);
    max-width: 400px;
    font-weight: 400;
}

.slide-content-wrapper .wp-block-buttons {
    margin-top: clamp(1rem, 3cqw, 2rem);
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.75rem, 2cqw, 1rem);
    justify-content: center;
}

.slide-content-wrapper .wp-block-button__link {
    /* YELLOW CTA BUTTON FROM 111.gif DESIGN */
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: clamp(1rem, 2.5cqw, 1.125rem);
    padding: clamp(0.875rem, 2cqw, 1rem) clamp(1.75rem, 4cqw, 2rem);
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    color: #1a1a1a !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(255, 215, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
}

.slide-content-wrapper .wp-block-button__link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide-content-wrapper .wp-block-button__link:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.slide-content-wrapper .wp-block-button__link:hover::before {
    opacity: 1;
}

.slide-content-wrapper .wp-block-button__link span {
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Container query responsive breakpoints */
@container slider (min-width: 480px) {
    .slide-content-wrapper {
        padding: clamp(2.5rem, 6cqw, 4rem);
        gap: clamp(1.25rem, 3.5cqw, 2.25rem);
        max-width: 700px;
    }

    .slide-content-wrapper h1,
    .slide-content-wrapper h2,
    .slide-content-wrapper h3 {
        font-size: clamp(1.75rem, 5.5cqw, 3.25rem);
    }
}

@container slider (min-width: 768px) {
    .slide-content-wrapper {
        flex-direction: row;
        text-align: left;
        align-items: center;
        max-width: 900px;
        gap: clamp(2rem, 5cqw, 3rem);
    }

    .slide-content-wrapper h1,
    .slide-content-wrapper h2,
    .slide-content-wrapper h3 {
        font-size: clamp(2rem, 6cqw, 3.5rem);
        margin-bottom: clamp(0.75rem, 2cqw, 1.25rem);
    }

    .slide-content-wrapper p {
        font-size: clamp(1.1rem, 3.5cqw, 1.4rem);
        max-width: 50ch;
    }

    .slide-content-wrapper .wp-block-buttons {
        justify-content: flex-start;
    }
}

@container slider (min-width: 1024px) {
    .slide-content-wrapper {
        max-width: 1000px;
        gap: clamp(2.5rem, 6cqw, 4rem);
    }

    .slide-content-wrapper h1,
    .slide-content-wrapper h2,
    .slide-content-wrapper h3 {
        font-size: clamp(2.5rem, 7cqw, 4rem);
    }
}

/* Navigation arrows with container-aware sizing */
.soundpeats-responsive-slider .splide__arrow {
    width: clamp(44px, 8cqw, 60px);
    height: clamp(44px, 8cqw, 60px);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: #333;
    transition: all 0.2s ease;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.soundpeats-responsive-slider .splide__arrow--prev {
    left: clamp(10px, 2cqw, 20px);
}

.soundpeats-responsive-slider .splide__arrow--next {
    right: clamp(10px, 2cqw, 20px);
}

.soundpeats-responsive-slider .splide__arrow:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.2);
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.soundpeats-responsive-slider .splide__arrow svg {
    width: clamp(18px, 4cqw, 26px);
    height: clamp(18px, 4cqw, 26px);
}

/* Pagination dots with container queries */
.soundpeats-responsive-slider .splide__pagination {
    padding: clamp(1rem, 3cqw, 2rem);
    bottom: 0;
    display: flex;
    justify-content: center;
    gap: clamp(6px, 1.5cqw, 12px);
}

.soundpeats-responsive-slider .splide__pagination__page {
    width: clamp(12px, 2.5cqw, 16px);
    height: clamp(12px, 2.5cqw, 16px);
    margin: 0;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.soundpeats-responsive-slider .splide__pagination__page.is-active {
    background: #007cba;
    border-color: #005a9c;
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(0, 124, 186, 0.5);
}

.soundpeats-responsive-slider .splide__pagination__page:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}

/* Media elements in slides with proper aspect-ratio support */
.soundpeats-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.soundpeats-slider-slide .wp-block-image {
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.soundpeats-slider-slide .wp-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* Accessibility and performance optimizations */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .soundpeats-responsive-slider .splide,
    .soundpeats-responsive-slider .splide__slide,
    .soundpeats-responsive-slider .splide__arrow,
    .soundpeats-responsive-slider .splide__pagination__page {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }

    .soundpeats-responsive-slider .splide__arrow:hover {
        transform: none !important;
    }
}

/* Enhanced focus states for accessibility */
.soundpeats-responsive-slider .splide__arrow:focus {
    outline: 3px solid #007cba;
    outline-offset: 3px;
    box-shadow: 0 0 0 2px #fff, 0 0 0 6px #007cba;
}

.soundpeats-responsive-slider .splide__pagination__page:focus {
    outline: 3px solid #007cba;
    outline-offset: 3px;
    box-shadow: 0 0 0 2px #fff, 0 0 0 6px #007cba;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .soundpeats-responsive-slider .splide__arrow {
        background: #fff;
        border: 3px solid #000;
        color: #000;
    }

    .soundpeats-responsive-slider .splide__pagination__page {
        background: #000;
        border: 3px solid #fff;
    }

    .soundpeats-responsive-slider .splide__pagination__page.is-active {
        background: #fff;
        border: 3px solid #000;
    }
}

/* Loading states */
.soundpeats-responsive-slider[data-splide-init="false"] {
    opacity: 0.9;
    /* Allow text selection during loading */
}

.soundpeats-responsive-slider[data-splide-init="true"] {
    opacity: 1;
    transition: opacity 0.4s ease;
}


/* Accessibility improvements with reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .soundpeats-responsive-slider .splide {
        scroll-behavior: auto;
    }

    .soundpeats-responsive-slider .splide__slide,
    .soundpeats-responsive-slider .splide__arrow,
    .soundpeats-responsive-slider .splide__pagination__page {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }

    .soundpeats-responsive-slider .splide__arrow:hover {
        transform: none;
    }
}

/* Enhanced focus states for accessibility */
.soundpeats-responsive-slider .splide__arrow:focus {
    outline: 3px solid #007cba;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #fff, 0 0 0 5px #007cba;
}

.soundpeats-responsive-slider .splide__pagination__page:focus {
    outline: 3px solid #007cba;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #fff, 0 0 0 5px #007cba;
}

/* Loading and initialization states */
.soundpeats-responsive-slider[data-splide-init="false"] {
    opacity: 0.8;
    /* Text selection enabled during loading */
}

.soundpeats-responsive-slider[data-splide-init="true"] {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .soundpeats-responsive-slider .splide__arrow {
        background: #fff;
        border: 3px solid #000;
        color: #000;
    }

    .soundpeats-responsive-slider .splide__pagination__page {
        background: #000;
        border: 2px solid #fff;
    }

    .soundpeats-responsive-slider .splide__pagination__page.is-active {
        background: #fff;
        border: 3px solid #000;
    }
}

/* Move price and warranty to right side on desktop - aligned with spec badges */
@media (min-width: 769px) {
    .slide-content-wrapper .content-box {
        position: relative;
    }

    /* Price + CTA positioned bottom right, aligned with spec badges */
    .slide-content-wrapper .content-box > div:nth-last-child(2) {
        position: absolute;
        right: -400px;
        bottom: 0;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    /* Warranty text positioned below price */
    .slide-content-wrapper .content-box > div:last-child {
        position: absolute;
        right: -400px;
        bottom: -25px;
        white-space: nowrap;
    }
}