/* Import base styles for common elements and fonts */
@import url('../base.css');
@import url('https://fonts.googleapis.com/css?family=Fira+Sans:400,500,600,700,800');

/* Section Base Styles */
.gameinfo-section {
    background-color: rgba(18, 20, 25, 0.9);
    padding-top: 2rem;
    padding-bottom: 2rem;
    display: flex;
    align-items: start;
    justify-content: center;
    min-height: 500px;
}

/* Slider Base Styles */
.gameinfo-section .gameinfo-slider {
    width: 95%;
    position: relative;
    max-width: 800px;
    margin: auto;
    background: #3ab54a; /* Default green color from inline styles */
    box-shadow: 0px 14px 80px rgba(34, 35, 58, 0.2);
    padding: 25px;
    border-radius: 25px;
    height: 400px;
    transition: all .3s;
}

.gameinfo-section .gameinfo-slider__item {
    display: flex;
    align-items: center;
}

.gameinfo-section .gameinfo-slider__item.swiper-slide-active .gameinfo-slider__img img {
    opacity: 1;
    transition-delay: .3s;
}

.gameinfo-section .gameinfo-slider__img {
    width: 300px;
    flex-shrink: 0;
    height: 300px;
    background-image: linear-gradient(147deg, #fe8a39 0%, #fd3838 74%);
    box-shadow: 4px 13px 30px 1px rgba(252, 56, 56, 0.2);
    border-radius: 20px;
    transform: translateX(-80px);
    overflow: hidden;
}

.gameinfo-section .gameinfo-slider__img:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(147deg, #fe8a39 0%, #fd3838 74%);
    border-radius: 20px;
    opacity: 0.3;
}

.gameinfo-section .gameinfo-slider__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    border-radius: 20px;
    transition: all .3s;
}

.gameinfo-section .gameinfo-slider__content {
    padding-right: 25px;
}

.gameinfo-section .gameinfo-slider__content > * {
    opacity: 0;
    transform: translateY(25px);
    transition: all .4s;
}

.gameinfo-section .gameinfo-slider__item.swiper-slide-active .gameinfo-slider__content > * {
    opacity: 1;
    transform: none;
}

.gameinfo-section .gameinfo-slider__code {
    color: #7b7992;
    margin-bottom: 15px;
    display: block;
    font-weight: 500;
}

.gameinfo-section .gameinfo-slider__title {
    font-size: 24px;
    font-weight: 700;
    color: #0d0925;
    margin-bottom: 20px;
}

.gameinfo-section .gameinfo-slider__text {
    color: #4e4a67;
    margin-bottom: 30px;
    line-height: 1.5em;
}

.gameinfo-section .gameinfo-slider__button {
    display: inline-flex;
    background-image: linear-gradient(147deg, #fe8a39 0%, #fd3838 74%);
    padding: 15px 35px;
    border-radius: 50px;
    color: #fff;
    box-shadow: 0px 14px 80px rgba(252, 56, 56, 0.4);
    text-decoration: none;
    font-weight: 500;
    justify-content: center;
    text-align: center;
    letter-spacing: 1px;
}

.gameinfo-section .gameinfo-slider__pagination {
    position: absolute;
    z-index: 21;
    right: 20px;
    width: 11px!important;
    text-align: center;
    left: auto!important;
    top: 50%;
    bottom: auto!important;
    transform: translateY(-50%);
}

.gameinfo-section .gameinfo-slider__pagination .swiper-pagination-bullet {
    width: 11px;
    height: 11px;
    display: block;
    border-radius: 10px;
    background: #062744;
    opacity: 0.2;
    transition: all .3s;
    margin: 8px 0;
}

.gameinfo-section .gameinfo-slider__pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: #fd3838;
    height: 30px;
    box-shadow: 0px 0px 20px rgba(252, 56, 56, 0.3);
}

/* Media Queries using Bootstrap breakpoints */

/* Large devices (laptops/desktops, 992px - 1199px) */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .gameinfo-section .gameinfo-slider {
        max-width: 680px;
        height: 400px;
    }
}

/* Medium devices (tablets, 768px - 991px) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .gameinfo-section .gameinfo-slider {
        max-width: 680px;
        height: 400px;
    }
    
    /* Center button using flexbox */
    .gameinfo-section .gameinfo-slider__button {
        display: flex;
        margin: 0 auto;
        justify-content: center;
    }
}

/* Small devices (large phones, 576px - 767px) */
@media only screen and (min-width: 576px) and (max-width: 767px) {
    .gameinfo-section .gameinfo-slider {
        min-height: 500px;
        height: auto;
        margin: 0px auto;
    }

    .gameinfo-section .gameinfo-slider__item {
        flex-direction: column;
    }

    .gameinfo-section .gameinfo-slider__img {
        transform: translateY(-50%);
        width: 90%;
    }

    .gameinfo-section .gameinfo-slider__content {
        margin-top: -80px;
        text-align: center;
        padding: 0 30px;
    }
    
    /* Center button using flexbox */
    .gameinfo-section .gameinfo-slider__button {
        display: flex;
        margin: 0 auto;
        justify-content: center;
        width: auto;
        min-width: 180px;
    }

    .gameinfo-section .gameinfo-slider__pagination {
        transform: translateX(-50%);
        left: 50%!important;
        top: 205px;
        width: 100%!important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .gameinfo-section .gameinfo-slider__pagination .swiper-pagination-bullet {
        margin: 0 5px;
    }

    .gameinfo-section .gameinfo-slider__pagination .swiper-pagination-bullet-active {
        height: 11px;
        width: 30px;
    }
}

/* Extra small devices (phones, up to 575px) */
@media only screen and (max-width: 575px) {
    .gameinfo-section .gameinfo-slider {
        min-height: 500px;
        height: auto;
        margin: 0px auto;
    }

    .gameinfo-section .gameinfo-slider__item {
        flex-direction: column;
    }

    .gameinfo-section .gameinfo-slider__img {
        transform: translateY(-50%);
        width: 95%;
    }

    .gameinfo-section .gameinfo-slider__content {
        margin-top: -80px;
        text-align: center;
        padding: 0;
    }

    .gameinfo-section .gameinfo-slider__button {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .gameinfo-section .gameinfo-slider__pagination {
        transform: translateX(-50%);
        left: 50%!important;
        top: 205px;
        width: 100%!important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .gameinfo-section .gameinfo-slider__pagination .swiper-pagination-bullet {
        margin: 0 5px;
    }

    .gameinfo-section .gameinfo-slider__pagination .swiper-pagination-bullet-active {
        height: 11px;
        width: 30px;
    }
}

/* Add Swiper-specific overrides to ensure they only apply within our component */
.gameinfo-section .swiper-container,
.gameinfo-section .swiper-wrapper,
.gameinfo-section .swiper-slide {
    position: relative;
}

/* Override any global slider styles that might conflict */
.gameinfo-section .swiper-slide {
    height: auto;
    box-sizing: border-box;
}

/* Make sure pagination is styled correctly */
.gameinfo-section .swiper-pagination {
    position: absolute;
}

/* For backwards compatibility */
@media (max-width: 992px) {
    /* These styles are now handled by the Bootstrap breakpoints above */
}

@media (max-width: 768px) {
    /* These styles are now handled by the Bootstrap breakpoints above */
}

@media (max-width: 576px) {
    /* These styles are now handled by the Bootstrap breakpoints above */
}
