/* ========================================
   SwaraPlace Banner Slider Styles v1.1
   Fixed slide logic + subtle animations
   ======================================== */

.swaraplace-banner-wrapper {
    margin-bottom: var(--swaraplace-space-8, 2rem);
    position: relative;
    overflow: hidden;
    border-radius: var(--swaraplace-radius-lg, 12px);
    box-shadow: var(--swaraplace-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.1));
}

.swaraplace-banner-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: inherit;
}

/* FIXED: Banner Slides Container */
.banner-slides {
    position: relative;
    width: 100%; /* Will be set by JS based on slide count */
    height: 100%;
    display: flex;
    transition: transform 0.3s ease-in-out; /* Reduced from 0.5s for smoother feel */
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* REMOVED: Excessive hover transform */
    transition: none; /* Keep images static for content visibility */
}

/* REMOVED: Image scale on hover for better content visibility */
/* .swaraplace-banner-slider:hover .banner-slide img { transform: scale(1.02); } */

/* Navigation Dots */
.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.2s ease; /* Reduced duration */
    padding: 0;
}

.banner-dot:hover,
.banner-dot.active {
    background-color: var(--swaraplace-white, #ffffff);
    border-color: var(--swaraplace-white, #ffffff);
    transform: scale(1.1); /* Subtle scale, not removed */
}

.banner-dot:focus {
    outline: 2px solid var(--swaraplace-primary, #ee4d2d);
    outline-offset: 2px;
}

/* Navigation Arrows - Simplified Hover Effects */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: var(--swaraplace-gray-700, #374151);
    cursor: pointer;
    transition: all 0.2s ease; /* Reduced duration */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
}

.swaraplace-banner-slider:hover .banner-arrow {
    opacity: 1;
    visibility: visible;
}

/* SIMPLIFIED: Remove excessive scale animation */
.banner-arrow:hover {
    background-color: var(--swaraplace-white, #ffffff);
    color: var(--swaraplace-primary, #ee4d2d);
    /* REMOVED: transform: translateY(-50%) scale(1.1); */
}

.banner-arrow:focus {
    outline: 2px solid var(--swaraplace-primary, #ee4d2d);
    outline-offset: 2px;
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

.banner-arrow svg {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

/* SIMPLIFIED: Loading State */
.banner-slide.loading {
    background: #f0f0f0; /* Simple background instead of animated shimmer */
}

/* REMOVED: Excessive shimmer animation */
/* @keyframes shimmer { ... } */

/* REMOVED: Fade Animation Classes - using transform only */
.banner-slide {
    /* No opacity transitions to avoid content visibility issues */
}

.banner-slide.active {
    /* Active state handled by transform positioning */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .swaraplace-banner-slider {
        height: 300px;
    }
    
    .banner-arrow {
        width: 40px;
        height: 40px;
        opacity: 1; /* Always visible on mobile */
        visibility: visible;
    }
    
    .banner-arrow svg {
        width: 20px;
        height: 20px;
    }
    
    .banner-prev {
        left: 15px;
    }
    
    .banner-next {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .swaraplace-banner-slider {
        height: 250px;
    }
    
    .swaraplace-banner-wrapper {
        margin-bottom: var(--swaraplace-space-6, 1.5rem);
        border-radius: var(--swaraplace-radius, 8px);
    }
    
    .banner-dots {
        bottom: 15px;
        gap: 6px;
    }
    
    .banner-dot {
        width: 10px;
        height: 10px;
    }
    
    .banner-arrow {
        width: 36px;
        height: 36px;
    }
    
    .banner-arrow svg {
        width: 18px;
        height: 18px;
    }
    
    .banner-prev {
        left: 10px;
    }
    
    .banner-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .swaraplace-banner-slider {
        height: 200px;
    }
    
    .banner-dots {
        bottom: 10px;
    }
    
    .banner-arrow {
        width: 32px;
        height: 32px;
    }
    
    .banner-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .banner-slides,
    .banner-slide,
    .banner-slide img,
    .banner-dot,
    .banner-arrow {
        transition: none;
    }
    
    /* REMOVED: Image transform since we already removed it */
    
    .loading {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .banner-dot {
        border-width: 3px;
    }
    
    .banner-arrow {
        background-color: var(--swaraplace-white, #ffffff);
        border: 2px solid var(--swaraplace-gray-900, #111827);
    }
}

/* Print Styles */
@media print {
    .swaraplace-banner-wrapper {
        break-inside: avoid;
        box-shadow: none;
    }
    
    .banner-dots,
    .banner-arrow {
        display: none;
    }
    
    .banner-slide:not(.active) {
        display: none;
    }
}

/* RTL Support */
[dir="rtl"] .banner-prev {
    right: 20px;
    left: auto;
}

[dir="rtl"] .banner-next {
    left: 20px;
    right: auto;
}

[dir="rtl"] .banner-prev svg {
    transform: scaleX(-1);
}

[dir="rtl"] .banner-next svg {
    transform: scaleX(-1);
}