/* ============================================
   HERO SLIDER - Swiper.js Integration
   Production-grade CSS with full responsiveness
   ============================================ */

/* Hero Section with Slider Active */
.hero-section.hero-slider-active {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    background: #1a1a1a;
}

/* Base Hero Slider Container */
.hero-swiper-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-swiper-container.swiper {
    height: 100%;
}

.swiper-wrapper {
    height: 100%;
}

.hero-slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    will-change: background-image;
}

/* Hero Content Overlay - Z-index positioning */
.hero-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.hero-content-overlay .container {
    pointer-events: auto;
}

.hero-content-overlay .hero-content {
    position: relative;
    z-index: 3;
}

/* Swiper Navigation Buttons */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    font-size: 18px;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.swiper-button-prev:active,
.swiper-button-next:active {
    transform: translateY(-50%) scale(0.95);
}

.swiper-button-prev {
    left: 20px;
}

.swiper-button-next {
    right: 20px;
}

/* Remove default Swiper arrow styles */
.swiper-button-prev::after,
.swiper-button-next::after {
    content: none !important;
}

/* Swiper Pagination (Dots) */
.swiper-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    width: 12px;
    height: 12px;
    margin: 0 8px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.swiper-pagination-bullet:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.swiper-pagination-bullet.swiper-pagination-bullet-active {
    background-color: white;
    border-color: white;
    width: 16px;
    height: 16px;
    margin: 0 8px;
}

/* Hero Section Variants */
.hero-section.hero-slider-active {
    min-height: 100vh;
    position: relative;
}

.hero-section.hero-has-image {
    background-size: cover;
    background-position: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .swiper-button-prev,
    .swiper-button-next {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .swiper-button-prev {
        left: 10px;
    }

    .swiper-button-next {
        right: 10px;
    }

    .swiper-pagination {
        bottom: 20px;
    }

    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 6px;
    }

    .swiper-pagination-bullet.swiper-pagination-bullet-active {
        width: 14px;
        height: 14px;
        margin: 0 6px;
    }
}

@media (max-width: 576px) {
    .swiper-button-prev,
    .swiper-button-next {
        width: 36px;
        height: 36px;
        font-size: 12px;
        border-width: 1px;
    }

    .swiper-button-prev {
        left: 8px;
    }

    .swiper-button-next {
        right: 8px;
    }

    .swiper-pagination {
        bottom: 15px;
    }

    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }

    .swiper-pagination-bullet.swiper-pagination-bullet-active {
        width: 12px;
        height: 12px;
        margin: 0 4px;
    }
}

/* Accessibility - Focus states */
.swiper-button-prev:focus,
.swiper-button-next:focus,
.swiper-pagination-bullet:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Keyboard navigation support */
.swiper-button-prev:focus-visible,
.swiper-button-next:focus-visible,
.swiper-pagination-bullet:focus-visible {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

/* Smooth transitions for image changes */
.swiper-slide {
    transition: opacity 0.8s ease-in-out;
}

.swiper-slide-active .hero-slide-background {
    animation: slideInBackground 0.8s ease-in-out;
}

@keyframes slideInBackground {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Print styles */
@media print {
    .swiper-button-prev,
    .swiper-button-next,
    .swiper-pagination {
        display: none !important;
    }
}
