/* Styles for the game page template */

/* Color Variables */
:root {
    --primary-color: #C90000;
    --secondary-color: #565656;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hover-shadow-color: rgba(0, 0, 0, 0.2);
}

/* Container for the whole game page */
.game-page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    color: var(--secondary-color); /* Use the secondary color for text */
    font-family: 'Corrigan Bold', sans-serif; /* Set default font for content */
}

/* Top section with game image, title, release date, etc. */
.game-page-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    background-color: #f4f4f4;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
}

/* Cover image styling */
.game-page-top .cover img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}

/* Right side of the top section with game details */
.game-page-details {
    flex: 1;
    margin-left: 20px;
}

/* Game title styling */
.game-page-details h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #000000; /* Use black for the title */
    font-family: 'Corrigan ExtraBold', sans-serif; /* Font from other plugin */
}

/* General spacing for game details (release date, platforms, etc.) */
.game-page-details p {
    margin-bottom: 10px;
    color: var(--secondary-color); /* Use the secondary color */
    font-family: 'Corrigan Bold', sans-serif; /* Font from other plugin */
}

/* Bottom section for description and video */
.game-page-bottom {
    width: 100%;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
}

/* Styling for the "Overview" title */
.game-page-bottom h2 {
    font-family: 'Corrigan Bold', sans-serif; /* Correct font */
    font-size: 24px;
    margin-bottom: 15px;
    color: #000000; /* Set color to black to avoid red */
}

/* Styling for the game description text */
.game-page-bottom p {
    font-family: 'Corrigan Bold', sans-serif; /* Ensure description uses the correct font */
    font-size: 16px;
    color: #000000; /* Set description text color to black */
}

/* Styling for the gameplay video */
.game-page-bottom iframe {
    display: block;
    width: 100%;
    max-width: 560px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Image Gallery Styles */
.game-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Swiper Container */
.swiper {
    width: 100%;
    height: auto;
    margin-top: 20px;
}

/* Swiper Slides */
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Swiper Main Slider */
.mySwiper {
    width: 100%;
    height: auto;
    margin-top: 20px;
}

/* Swiper Thumbnail Slider */
.mySwiperThumbs {
    width: 100%;
    margin-top: 10px;
}

.mySwiperThumbs .swiper-slide {
    width: 80px;
    height: auto;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.mySwiperThumbs .swiper-slide:hover,
.mySwiperThumbs .swiper-slide-thumb-active {
    opacity: 1;
}

/* Swiper Navigation Arrows */
.swiper-button-next,
.swiper-button-prev {
    color: #C90000 !important;
}

/* Swiper Pagination Dots */
.swiper-pagination .swiper-pagination-bullet {
    background: #C90000 !important;
}

.swiper-pagination .swiper-pagination-bullet-active {
    background: #C90000 !important;
}

/* Fancybox Styling */
.fancybox__thumbs {
    background: rgba(0, 0, 0, 0.8); /* Dark background for thumbnails */
}

.fancybox__thumbs img {
    border-radius: 5px;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    /* Stack the image and details vertically */
    .game-page-top {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    /* Make the cover image fill the width of the screen */
    .game-page-top .cover img {
        max-width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    /* Center game details and remove left margin */
    .game-page-details {
        margin-left: 0;
        text-align: center;
    }

    /* Adjust title font size for mobile */
    .game-page-details h1 {
        font-size: 22px;
    }

    /* Adjust paragraph spacing for mobile */
    .game-page-details p {
        font-size: 16px;
        margin-bottom: 15px;
    }
}
