/*
 * Riding Style 3D Image Carousel
 * Author: Claude Code  
 * Description: 3D carousel with only images, gold/black/white palette, side models visible with 3D swap animation
 */

/* ==========================================================================
   CSS Variables - Gold/Black/White Palette (WordPress Theme Override)
   ========================================================================== */
.mkdf-riding-style-carousel {
    --carousel-primary: #eeb332 !important;
    --carousel-primary-dark: #d4a429 !important;
    --carousel-black: #1a1a1a !important;
    --carousel-white: #ffffff !important;
    --carousel-gray-light: #f8f9fa !important;
    --carousel-gray-dark: #333333 !important;
    --carousel-transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --carousel-perspective: 1500px;
    --carousel-slide-width: 350px;
    --carousel-slide-height: 500px;
    --carousel-spacing: 200px;
}

/* ==========================================================================
   Main Section Layout
   ========================================================================== */
.mkdf-riding-style-carousel {
    position: relative !important;
    padding: 100px 0 !important;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #f8f9fa 50%, 
        #ffffff 100%) !important;
    overflow: hidden !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
}

.mkdf-carousel-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Section Header
   ========================================================================== */
.mkdf-carousel-header {
    text-align: center;
    margin-bottom: 80px;
}

.mkdf-riding-style-carousel .mkdf-main-title {
    font-family: "Rajdhani", sans-serif !important;
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    margin: 0 0 20px 0 !important;
    color: #1a1a1a !important;
}

.mkdf-riding-style-carousel .mkdf-title-line {
    display: block !important;
    font-size: 2.5rem !important;
    font-weight: 300 !important;
    color: #333333 !important;
    margin-bottom: 10px !important;
}

.mkdf-riding-style-carousel .mkdf-title-highlight {
    display: block !important;
    font-size: 4rem !important;
    font-weight: 700 !important;
    color: #eeb332 !important;
    text-shadow: 0 2px 4px rgba(238, 179, 50, 0.2) !important;
}

.mkdf-riding-style-carousel .mkdf-subtitle {
    font-size: 1.2rem !important;
    line-height: 1.6 !important;
    color: #333333 !important;
    max-width: 600px !important;
    margin: 0 auto !important;
}

/* ==========================================================================
   3D Carousel Stage
   ========================================================================== */
.mkdf-carousel-3d-stage {
    position: relative;
    height: 600px;
    perspective: var(--carousel-perspective);
    perspective-origin: center center;
    margin-bottom: 60px;
}

.mkdf-carousel-3d-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform var(--carousel-transition);
}

/* ==========================================================================
   Carousel Slides
   ========================================================================== */
.mkdf-carousel-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--carousel-slide-width);
    height: var(--carousel-slide-height);
    transform-style: preserve-3d;
    transition: all var(--carousel-transition);
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Center slide (active) */
.mkdf-carousel-slide.mkdf-center {
    transform: translate(-50%, -50%) translateZ(0) scale(1);
    z-index: 10;
    opacity: 1;
}

/* Left slide */
.mkdf-carousel-slide.mkdf-left {
    transform: translate(-50%, -50%) translateX(-300px) translateZ(-200px) rotateY(35deg) scale(0.8);
    z-index: 5;
    opacity: 0.7;
}

/* Right slide */
.mkdf-carousel-slide.mkdf-right {
    transform: translate(-50%, -50%) translateX(300px) translateZ(-200px) rotateY(-35deg) scale(0.8);
    z-index: 5;
    opacity: 0.7;
}

/* Hidden slides - no longer needed with 3 slides only */

/* ==========================================================================
   Slide Image Container
   ========================================================================== */
.mkdf-slide-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: var(--carousel-white);
}

.mkdf-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--carousel-transition);
}

.mkdf-carousel-slide:hover .mkdf-slide-image {
    transform: scale(1.05);
}

/* Image placeholder */
.mkdf-slide-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--carousel-primary) 0%, var(--carousel-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mkdf-placeholder-content {
    text-align: center;
    color: var(--carousel-white);
}

.mkdf-placeholder-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.mkdf-placeholder-text {
    font-size: 1.1rem;
    font-weight: 500;
}

/* ==========================================================================
   Slide Overlay
   ========================================================================== */
.mkdf-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(26, 26, 26, 0.8));
    color: var(--carousel-white);
    padding: 40px 30px 30px;
    transform: translateY(100%);
    transition: transform var(--carousel-transition);
}

.mkdf-carousel-slide.mkdf-center .mkdf-slide-overlay {
    transform: translateY(0);
}

.mkdf-slide-info {
    text-align: center;
}

.mkdf-slide-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--carousel-white);
}

.mkdf-slide-subtitle {
    font-size: 1rem;
    margin: 0;
    color: var(--carousel-primary);
    font-weight: 500;
}

/* ==========================================================================
   Navigation Arrows
   ========================================================================== */
.mkdf-carousel-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 20;
    pointer-events: none;
}

.mkdf-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: none;
    background: var(--carousel-white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--carousel-black);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.mkdf-riding-style-carousel .mkdf-nav-arrow:hover {
    background: #eeb332 !important;
    color: #ffffff !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 15px 40px rgba(238, 179, 50, 0.3) !important;
}

.mkdf-nav-prev {
    left: -30px;
}

.mkdf-nav-next {
    right: -30px;
}

/* ==========================================================================
   Style Indicators
   ========================================================================== */
.mkdf-style-indicators {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.mkdf-style-indicator {
    padding: 12px 24px;
    border: 2px solid transparent;
    background: var(--carousel-white);
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--carousel-gray-dark);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mkdf-riding-style-carousel .mkdf-style-indicator:hover {
    border-color: #eeb332 !important;
    color: #eeb332 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(238, 179, 50, 0.2) !important;
}

.mkdf-riding-style-carousel .mkdf-style-indicator.mkdf-active {
    background: #eeb332 !important;
    color: #ffffff !important;
    border-color: #eeb332 !important;
    box-shadow: 0 10px 30px rgba(238, 179, 50, 0.3) !important;
}

.mkdf-indicator-label {
    font-weight: 600;
}

/* ==========================================================================
   Call to Action
   ========================================================================== */
.mkdf-carousel-cta {
    text-align: center;
    margin-top: 80px;
    padding: 60px 40px;
    background: var(--carousel-white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.mkdf-cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: var(--carousel-black);
    font-family: "Rajdhani", sans-serif;
}

.mkdf-cta-description {
    font-size: 1.1rem;
    color: var(--carousel-gray-dark);
    margin: 0 0 40px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.mkdf-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.mkdf-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mkdf-riding-style-carousel .mkdf-btn-primary {
    background: #eeb332 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(238, 179, 50, 0.3) !important;
}

.mkdf-riding-style-carousel .mkdf-btn-primary:hover {
    background: #d4a429 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 40px rgba(238, 179, 50, 0.4) !important;
    color: #ffffff !important;
}

.mkdf-riding-style-carousel .mkdf-btn-secondary {
    background: transparent !important;
    color: #1a1a1a !important;
    border: 2px solid #1a1a1a !important;
}

.mkdf-riding-style-carousel .mkdf-btn-secondary:hover {
    background: #1a1a1a !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1200px) {
    :root {
        --carousel-slide-width: 300px;
        --carousel-slide-height: 450px;
        --carousel-spacing: 150px;
    }
    
    .mkdf-carousel-slide.mkdf-left {
        transform: translate(-50%, -50%) translateX(-250px) translateZ(-150px) rotateY(30deg) scale(0.75);
    }
    
    .mkdf-carousel-slide.mkdf-right {
        transform: translate(-50%, -50%) translateX(250px) translateZ(-150px) rotateY(-30deg) scale(0.75);
    }
    
    .mkdf-nav-prev {
        left: -20px;
    }
    
    .mkdf-nav-next {
        right: -20px;
    }
}

@media (max-width: 768px) {
    .mkdf-riding-style-carousel {
        padding: 60px 0;
    }
    
    .mkdf-carousel-container {
        padding: 0 15px;
    }
    
    .mkdf-main-title {
        font-size: 2.5rem;
    }
    
    .mkdf-title-line {
        font-size: 2rem;
    }
    
    .mkdf-title-highlight {
        font-size: 3rem;
    }
    
    .mkdf-carousel-3d-stage {
        height: 500px;
        perspective: 1000px;
    }
    
    :root {
        --carousel-slide-width: 250px;
        --carousel-slide-height: 380px;
    }
    
    /* Hide side slides on mobile, show only center */
    .mkdf-carousel-slide.mkdf-left,
    .mkdf-carousel-slide.mkdf-right,
    .mkdf-carousel-slide.mkdf-hidden-left,
    .mkdf-carousel-slide.mkdf-hidden-right {
        opacity: 0;
        pointer-events: none;
    }
    
    .mkdf-nav-arrow {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .mkdf-style-indicators {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .mkdf-style-indicator {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .mkdf-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .mkdf-cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .mkdf-main-title {
        font-size: 2rem;
    }
    
    .mkdf-title-line {
        font-size: 1.5rem;
    }
    
    .mkdf-title-highlight {
        font-size: 2.5rem;
    }
    
    .mkdf-carousel-3d-stage {
        height: 400px;
    }
    
    :root {
        --carousel-slide-width: 220px;
        --carousel-slide-height: 320px;
    }
    
    .mkdf-carousel-cta {
        padding: 40px 20px;
        margin-top: 60px;
    }
    
    .mkdf-cta-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Performance Optimizations
   ========================================================================== */
.mkdf-carousel-3d-container {
    will-change: transform;
}

.mkdf-carousel-slide {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.mkdf-slide-image {
    will-change: transform;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    :root {
        --carousel-transition: 0.2s ease;
    }
    
    .mkdf-carousel-slide:hover .mkdf-slide-image {
        transform: none;
    }
    
    .mkdf-nav-arrow:hover {
        transform: translateY(-50%);
    }
}

.mkdf-nav-arrow:focus,
.mkdf-style-indicator:focus {
    outline: 2px solid var(--carousel-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   Loading States
   ========================================================================== */
.mkdf-slide-image {
    background: var(--carousel-gray-light);
}

.mkdf-slide-image[src=""] {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%),
                linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}