/**
 * GameShare88 Hero Banner Slider - Stylesheet
 * Cyberpunk / Dark Gaming Aesthetic matching the mockup
 */

:root {
    --gs-banner-cyan: #00d2ff;
    --gs-banner-blue: #2563eb;
    --gs-banner-purple: #a855f7;
    --gs-banner-glow-cyan: 0 0 20px rgba(0, 210, 255, 0.45);
    --gs-banner-glow-blue: 0 0 22px rgba(37, 99, 235, 0.55);
    --gs-banner-font-display: 'Rajdhani', 'Outfit', -apple-system, sans-serif;
}

/* ==========================================================================
   Elementor Container Compatibility (Width Auto Theo Cha)
   ========================================================================== */
.elementor-widget-html:has(.gs-banner-wrap),
.elementor-widget-shortcode:has(.gs-banner-wrap),
.elementor-widget:has(.gs-banner-wrap),
.elementor-widget-container:has(.gs-banner-wrap) {
    width: 100% !important;
    max-width: 100% !important;
    flex-grow: 1 !important;
    align-self: stretch !important;
}

/* ==========================================================================
   Banner Container & Carousel Track
   ========================================================================== */
.gs-banner-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-self: stretch;
    flex: 1 1 100%;
    border-radius: 22px;
    overflow: hidden;
    background: #080d1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    user-select: none;
    margin: 0 auto;
}

.gs-banner-wrap *,
.gs-banner-wrap *::before,
.gs-banner-wrap *::after {
    box-sizing: border-box;
}

.gs-banner-slider-track {
    position: relative;
    width: 100%;
    min-height: 480px;
}

/* ==========================================================================
   Individual Slide
   ========================================================================== */
.gs-banner-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 480px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.55s ease;
    z-index: 1;
    display: flex;
    align-items: center;
}

.gs-banner-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    position: relative;
}

/* Artwork Background with Vignette & Gradients */
.gs-banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    z-index: 1;
    transform: scale(1.02);
    transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gs-banner-slide.is-active .gs-banner-bg {
    transform: scale(1);
}

.gs-banner-vignette {
    position: absolute;
    inset: 0;
    background: 
        /* Left gradient to ensure text readability */
        linear-gradient(90deg, rgba(6, 11, 24, 0.98) 0%, rgba(7, 13, 28, 0.88) 45%, rgba(10, 16, 32, 0.35) 75%, rgba(10, 16, 32, 0.1) 100%),
        /* Bottom gradient */
        linear-gradient(0deg, rgba(6, 11, 24, 0.95) 0%, rgba(6, 11, 24, 0) 50%);
}

/* Slide Content Inner */
.gs-banner-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 60px 88px;
    display: flex;
    align-items: center;
}

.gs-banner-content {
    max-width: 580px;
}

/* 1. Badge "GAME MỚI" */
.gs-banner-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #00d2ff 0%, #2563eb 100%);
    box-shadow: var(--gs-banner-glow-cyan);
    margin-bottom: 18px;
}

.gs-badge-text {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #ffffff;
}

/* 2. Title H1 (SHADOW LEGENDS) */
.gs-banner-title {
    font-family: var(--gs-banner-font-display);
    font-size: 54px;
    font-weight: 800;
    font-style: italic;
    line-height: 1.08;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0 0 12px 0;
    color: #ffffff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.gs-neon-text {
    background: linear-gradient(135deg, #00d2ff 0%, #38bdf8 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.4));
}

/* 3. Subtitle */
.gs-banner-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 14px 0;
    letter-spacing: 0.2px;
}

/* 4. Description */
.gs-banner-desc {
    font-size: 14.5px;
    line-height: 1.65;
    color: #94a3b8;
    margin: 0 0 22px 0;
}

/* 5. Platforms */
.gs-banner-platforms {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.gs-platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.gs-platform-pill:hover {
    background: rgba(0, 210, 255, 0.12);
    border-color: rgba(0, 210, 255, 0.4);
    color: #ffffff;
}

/* 6. CTA Actions */
.gs-banner-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.gs-btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Primary CTA: Tải ngay */
.gs-btn-download {
    background: linear-gradient(135deg, #00d2ff 0%, #2563eb 100%);
    color: #ffffff !important;
    border: none;
    box-shadow: var(--gs-banner-glow-blue);
}

.gs-btn-download:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.65), 0 0 15px rgba(0, 210, 255, 0.5);
}

/* Secondary CTA: Xem trailer */
.gs-btn-trailer {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.gs-btn-trailer:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
    color: var(--gs-banner-cyan);
}

.gs-btn-icon-play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    padding-left: 2px;
}

/* ==========================================================================
   Slider Controls (Arrows & Dots)
   ========================================================================== */
.gs-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(8, 13, 26, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

.gs-banner-arrow:hover {
    background: rgba(0, 210, 255, 0.2);
    border-color: var(--gs-banner-cyan);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
    transform: translateY(-50%) scale(1.08);
}

.gs-banner-arrow--prev {
    left: 20px;
}

.gs-banner-arrow--next {
    right: 20px;
}

/* Dots Pagination */
.gs-banner-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.gs-banner-dot {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.gs-dot-pill {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.gs-banner-dot.is-active .gs-dot-pill {
    width: 28px;
    background: linear-gradient(90deg, #00d2ff, #2563eb);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.6);
}

/* ==========================================================================
   Video Trailer Lightbox Modal
   ========================================================================== */
.gs-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gs-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.gs-modal-container {
    position: relative;
    width: 100%;
    max-width: 880px;
    background: #000000;
    border-radius: 16px;
    border: 1px solid rgba(0, 210, 255, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 210, 255, 0.2);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gs-modal-backdrop.is-open .gs-modal-container {
    transform: scale(1);
}

.gs-modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.gs-modal-close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: scale(1.1);
}

.gs-modal-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.gs-modal-video-wrapper iframe,
.gs-modal-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Responsive Breakpoints (Mobile & Tablet <= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .gs-banner-wrap {
        border-radius: 16px;
    }

    .gs-banner-slider-track {
        min-height: 440px;
    }

    .gs-banner-inner {
        padding: 40px 72px;
    }

    .gs-banner-title {
        font-size: 40px;
    }

    .gs-banner-content {
        max-width: 480px;
    }
}

@media (max-width: 768px) {
    .gs-banner-slider-track {
        min-height: 480px;
    }

    .gs-banner-bg {
        background-position: center top;
    }

    .gs-banner-vignette {
        background: 
            /* Heavy dark gradient from bottom for mobile portrait */
            linear-gradient(180deg, rgba(6, 11, 24, 0.3) 0%, rgba(6, 11, 24, 0.75) 50%, rgba(6, 11, 24, 0.98) 85%);
    }

    .gs-banner-inner {
        padding: 30px 20px 48px 20px;
        align-items: flex-end;
        min-height: 480px;
    }

    .gs-banner-content {
        max-width: 100%;
        text-align: center;
    }

    .gs-banner-badge {
        margin: 0 auto 12px auto;
    }

    .gs-banner-title {
        font-size: 30px;
        letter-spacing: 0.3px;
    }

    .gs-banner-subtitle {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .gs-banner-desc {
        display: none; /* Hide long description on small mobile to keep layout compact and clean */
    }

    .gs-banner-platforms {
        justify-content: center;
        margin-bottom: 20px;
        gap: 8px;
    }

    .gs-banner-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .gs-btn-cta {
        width: 100%;
        padding: 13px 20px;
    }

    .gs-banner-arrow {
        display: none !important; /* Touch swipe used on mobile */
    }

    .gs-banner-dots {
        bottom: 12px;
    }
}
