/* Hero Banner Component Styles - Modernized */

.hero-section {
    position: relative;
    width: 100%;
    height: var(--hero-height);
    overflow: hidden;
    background: var(--color-bg-dark);
    aspect-ratio: 16 / 5;
    max-width: 2000px;
    margin: 0 auto;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
    z-index: 0;
    transform: scale(1.05);
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
    transform: scale(1);
}

/* Gradient overlay for depth and readability */
.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero-overlay);
    z-index: 1;
    pointer-events: none;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 16 / 5;
    animation: subtle-zoom 20s ease-in-out infinite alternate;
}

/* Subtle zoom animation for dynamic feel */
@keyframes subtle-zoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

/* Slider Indicators - Modern Progress Bar Style */
.slider-indicators {
    position: absolute;
    bottom: 0.2rem;
    left: 0.2rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs-2);
    z-index: 10;
    background: var(--glass-bg-dark);
    backdrop-filter: var(--glass-blur);
    padding: var(--spacing-xs-2) var(--spacing-sm);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--glass-border);
}

.indicator {
    background: rgba(255, 255, 255, 0.3);
    width: 0.32rem;
    height: 0.04rem;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-medium) var(--ease-smooth);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--gradient-border);
    border-radius: var(--border-radius-sm);
    transition: width var(--transition-medium) var(--ease-smooth);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

.indicator.active {
    background: rgba(255, 255, 255, 0.4);
}

.indicator.active::before {
    width: 100%;
    animation: progress 5s linear;
}

@keyframes progress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* Loading skeleton */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: -1;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.hero-slide.loaded::before {
    display: none;
}

/* Mobile Action Buttons - Glassmorphism Style */
.mobile-action-buttons {
    display: none;
    width: 100%;
    background: var(--color-white);
    padding: 0;
    gap: var(--spacing-xs-2);
    position: relative;
    z-index: 5;
}

@media (max-width: 768px) {
    .mobile-action-buttons {
        display: flex;
        padding: var(--spacing-sm);
        background: linear-gradient(180deg, #ffffff 0%, #f9f9f9 100%);
    }

    .mobile-btn {
        flex: 1;
        height: 0.5rem;
        font-size: 0.16rem;
        font-weight: 700;
        border-radius: var(--border-radius-lg);
        border: none;
        cursor: pointer;
        transition: all var(--transition-fast) var(--ease-smooth);
        text-transform: uppercase;
        font-family: var(--font-family-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        letter-spacing: 0.01rem;
        position: relative;
        overflow: hidden;
    }

    .mobile-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .mobile-btn:active::before {
        width: 300px;
        height: 300px;
    }

    .mobile-btn-join {
        background: var(--gradient-hero);
        color: #FFFFFF;
        box-shadow: var(--shadow-primary);
    }

    .mobile-btn-join:active {
        transform: scale(var(--scale-active));
    }

    .mobile-btn-login {
        background: var(--color-white);
        color: var(--color-primary);
        border: 2px solid var(--color-primary);
    }

    .mobile-btn-login:active {
        transform: scale(var(--scale-active));
    }
}

/* Responsive Adjustments */
@media (max-width: 1280px) {
    .slider-indicators {
        left: auto;
        right: 0.2rem;
    }
}

/* Use aspect-ratio for responsive scaling - maintain 16:5 ratio across all sizes */
@media (max-width: 992px) {
    .hero-section {
        height: auto;
        /* Let aspect-ratio control height */
        aspect-ratio: 16 / 5;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        /* Maintain 16:5 ratio to prevent side cropping */
        aspect-ratio: 16 / 5;
    }

    .indicator {
        width: 0.24rem;
        height: 0.03rem;
    }

    .slider-indicators {
        bottom: 0.12rem;
        right: 0.12rem;
        padding: var(--spacing-xs) var(--spacing-xs-2);
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: auto;
        /* Maintain 16:5 ratio to prevent side cropping */
        aspect-ratio: 16 / 5;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: opacity 0.3s ease;
        transform: none !important;
    }

    .hero-image {
        animation: none;
    }

    @keyframes loading {

        0%,
        100% {
            background-position: 0 0;
        }
    }

    @keyframes progress {
        from {
            width: 0%;
        }

        to {
            width: 100%;
        }
    }
}