/**
 * Hero Slider — Frontend Swiper Styles
 *
 * Integrates with the industrial-precision theme design system.
 * Uses CSS variables from the theme for colors and spacing.
 */

/* ========================================
   Slider Container
   ======================================== */

.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

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

/* ========================================
   Individual Slide
   ======================================== */

.hero-slide {
    position: relative;
    min-height: 1184px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-header-bg, #1a2332);
}

.hero-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 35, 50, 0.45) 0%,
        rgba(74, 111, 165, 0.3) 100%
    );
    display: flex;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.hero-slide__overlay .container,
.hero-slide__overlay .hero-slide__content,
.hero-slide__overlay .hero-slide__buttons,
.hero-slide__overlay a {
    pointer-events: auto;
}

.hero-slide__content {
    position: relative;
    z-index: 3;
    max-width: 680px;
    color: #ffffff;
    user-select: text;
    -webkit-user-select: text;
}

.hero-slide__title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg, 1.5rem);
    color: #ffffff;
}

.hero-slide__subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--spacing-xl, 2rem);
}

.hero-slide__buttons {
    display: flex;
    gap: var(--spacing-md, 1rem);
    flex-wrap: wrap;
}

.hero-slide__buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md, 8px);
    text-decoration: none;
    transition: all 0.2s ease;
}

.hero-slide__buttons .btn--primary {
    background: var(--color-primary, #2c5aa0);
    color: #ffffff;
    border: none;
}

.hero-slide__buttons .btn--primary:hover {
    background: var(--color-highlight, #3d7bd9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-slide__buttons .btn--primary svg {
    transition: transform 0.2s ease;
}

.hero-slide__buttons .btn--primary:hover svg {
    transform: translateX(3px);
}

/* ========================================
   Navigation — Arrows
   ======================================== */

.hero-slider__prev,
.hero-slider__next {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.hero-slider__prev::after,
.hero-slider__next::after {
    font-size: 18px;
    font-weight: 700;
}

.hero-slider__prev:hover,
.hero-slider__next:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* ========================================
   Navigation — Dots
   ======================================== */

.hero-slider__pagination {
    bottom: 24px !important;
}

.hero-slider__pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.2s ease;
}

.hero-slider__pagination .swiper-pagination-bullet-active {
    background: #ffffff;
    width: 28px;
    border-radius: 5px;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
    .hero-slide {
        min-height: 800px;
    }

    .hero-slide__title {
        font-size: 2.25rem;
    }

    .hero-slide__subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-slide {
        min-height: 600px;
    }

    .hero-slide__title {
        font-size: 1.75rem;
    }

    .hero-slide__subtitle {
        font-size: 0.9375rem;
        margin-bottom: var(--spacing-lg, 1.5rem);
    }

    .hero-slide__buttons .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    .hero-slider__prev,
    .hero-slider__next {
        width: 40px;
        height: 40px;
    }

    .hero-slider__prev::after,
    .hero-slider__next::after {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-slide {
        min-height: 500px;
    }

    .hero-slide__title {
        font-size: 1.5rem;
    }

    .hero-slide__buttons {
        flex-direction: column;
    }

    .hero-slide__buttons .btn {
        width: 100%;
        justify-content: center;
    }
}
