/* Insta Slider - FIFA #WEAREBOSTON Style */

.insta-slider-section {
    background-color: #1a1a2e;
    padding: 60px 0;
    overflow: hidden;
}

.insta-slider-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.insta-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.insta-slider-hashtag {
    display: flex;
    align-items: center;
    gap: 12px;
}

.insta-slider-instagram-icon {
    width: 32px;
    height: 32px;
    color: #fff;
}

.insta-slider-hashtag-text {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.insta-slider-nav {
    display: flex;
    gap: 10px;
}

.insta-slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.insta-slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.insta-slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.insta-slider-btn svg {
    width: 24px;
    height: 24px;
}

/* Swiper Styles */
.insta-slider-swiper {
    overflow: visible;
    padding: 10px 0;
}

.insta-slider-swiper .swiper-wrapper {
    align-items: stretch;
}

.insta-slider-swiper .swiper-slide {
    width: 280px;
    height: auto;
}

.insta-slider-item {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background-color: #0f0f1a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insta-slider-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.insta-slider-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

.insta-slider-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.insta-slider-item:hover .insta-slider-image-wrapper img {
    transform: scale(1.05);
}

/* Video/Carousel Indicators */
.insta-slider-video-indicator,
.insta-slider-carousel-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 2;
}

.insta-slider-video-indicator svg,
.insta-slider-carousel-indicator svg {
    width: 14px;
    height: 14px;
}

/* Hover Overlay */
.insta-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(138, 58, 185, 0.0) 0%,
        rgba(138, 58, 185, 0.7) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insta-slider-item:hover .insta-slider-overlay {
    opacity: 1;
}

.insta-slider-overlay-icon {
    width: 48px;
    height: 48px;
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Error State */
.insta-slider-error {
    background-color: #1a1a2e;
    color: #ff6b6b;
    padding: 40px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    border-radius: 12px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .insta-slider-swiper .swiper-slide {
        width: 260px;
    }
}

@media (max-width: 992px) {
    .insta-slider-section {
        padding: 40px 0;
    }
    
    .insta-slider-hashtag-text {
        font-size: 24px;
    }
    
    .insta-slider-swiper .swiper-slide {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .insta-slider-container {
        padding: 0 15px;
    }
    
    .insta-slider-header {
        margin-bottom: 20px;
    }
    
    .insta-slider-hashtag-text {
        font-size: 20px;
    }
    
    .insta-slider-instagram-icon {
        width: 26px;
        height: 26px;
    }
    
    .insta-slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .insta-slider-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .insta-slider-swiper .swiper-slide {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .insta-slider-section {
        padding: 30px 0;
    }
    
    .insta-slider-hashtag-text {
        font-size: 18px;
    }
    
    .insta-slider-hashtag {
        gap: 8px;
    }
    
    .insta-slider-nav {
        gap: 6px;
    }
    
    .insta-slider-btn {
        width: 36px;
        height: 36px;
    }
    
    .insta-slider-swiper .swiper-slide {
        width: 160px;
    }
    
    .insta-slider-overlay-icon {
        width: 36px;
        height: 36px;
    }
}

/* Swiper Navigation Override */
.insta-slider-swiper .swiper-button-next,
.insta-slider-swiper .swiper-button-prev {
    display: none;
}

/* Loading State */
.insta-slider-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #fff;
}

.insta-slider-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: insta-slider-spin 0.8s linear infinite;
}

@keyframes insta-slider-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Gradient border effect on hover */
.insta-slider-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insta-slider-item:hover::before {
    opacity: 1;
}

/* Ensure proper z-index stacking */
.insta-slider-item {
    position: relative;
    z-index: 1;
}

/* Swiper Pagination Styles */
.insta-slider-swiper .swiper-pagination {
    position: relative;
    margin-top: 20px;
    bottom: auto;
}

.insta-slider-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    transition: all 0.3s ease;
}

.insta-slider-swiper .swiper-pagination-bullet-active {
    background: #fff;
    transform: scale(1.2);
}

.insta-slider-swiper .swiper-pagination-fraction {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.insta-slider-swiper .swiper-pagination-progressbar {
    background: rgba(255, 255, 255, 0.2);
    height: 3px;
    position: relative;
    top: auto;
    margin-top: 20px;
}

.insta-slider-swiper .swiper-pagination-progressbar-fill {
    background: linear-gradient(90deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* Aspect ratio support for older browsers */
.insta-slider-image-wrapper[style*="aspect-ratio"] {
    padding-top: 0 !important;
}

/* Hover effects */
.insta-slider-item.hover-zoom:hover {
    transform: scale(1.05);
}

.insta-slider-item.hover-glow:hover {
    box-shadow: 0 0 30px rgba(138, 58, 185, 0.6);
}

.insta-slider-item.hover-tilt:hover {
    transform: perspective(1000px) rotateY(5deg);
}

/* Block wrapper styles */
.wp-block-insta-slider-slider {
    margin: 0;
    padding: 0;
}

.insta-slider-block {
    width: 100%;
}
