/**
 * Game Page Styles
 * Styles for individual game showcase pages
 */

/* Game Showcase Container */
.game-showcase {
    width: 90%;
    max-width: 875px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.game-logo {
    width: auto;
    height: auto;
    max-width: 100%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Screenshots Section */
.screenshots-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border: 4px solid #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    background-color: #000000;
}

/* Carousel Components */
.carousel {
    width: 565px;
    position: relative;
    overflow: hidden;
    user-select: none;
    margin: 0 auto;
}

.carousel-container {
    display: flex;
    width: 100%;
    transition: transform 0.3s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img {
    max-width: 100%;
    width: auto;
    height: auto;
    border-radius: 8px;
    display: block;
    object-fit: contain;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    position: relative;
    padding-bottom: 15px;
    z-index: 2;
}

.carousel-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #00FF66;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background: #00FF66;
}

/* Carousel Progress Bar */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 108px;
    height: 3px;
    background: rgba(0, 255, 102, 0.2);
    z-index: 1;
}

.carousel-progress-bar {
    width: 0%;
    height: 100%;
    background: #00FF66;
    transition: width linear;
    box-shadow: 0 0 5px rgba(0, 255, 102, 0.5);
}

/* Play Buttons */
.play-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.play-buttons img {
    transition: transform 0.2s ease;
}

.play-buttons img:hover {
    transform: scale(1.05);
}

/* Game Info Grid Layout */
.game-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    width: 100%;
}

/* Common Section Styles */
.game-description {
    grid-column: 1 / -1;
}

.game-description,
.game-features,
.game-review,
.game-accolades,
.game-team {
    background-color: #000000;
    padding: 20px;
    border-radius: 12px;
    border: 4px solid #444444;
}

/* Features Section */
.feature-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, 120px);
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.game-features {
    text-align: center;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 120px;
}

.feature img {
    margin-bottom: 15px;
    width: auto;
    height: auto;
}

.feature span {
    white-space: nowrap;
    color: #fff;
}

/* Review Section */
.game-review {
    text-align: center;
}

.game-review img {
    margin-bottom: 30px;
}

.game-review blockquote {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0;
    padding-bottom: 20px;
}

.game-review blockquote p {
    margin: 0;
    margin-bottom: 15px;
    font-family: 'Schoolbell', cursive;
    font-style: normal;
    font-size: 1.3em;
    line-height: 1.4;
    color: #fff;
}

.game-review blockquote footer {
    font-family: Arial, sans-serif;
    font-style: italic;
    color: #ffffff;
    font-size: 0.9em;
    opacity: 0.8;
}

/* Accolades Section */
.game-accolades {
    margin-bottom: 0;
    text-align: center;
}

.accolades-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, 120px);
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.accolade-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 120px;
}

.accolade-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
}

/* Special case for Soulvester's larger accolades */
.game-showcase:has(img[src*="soulvester"]) .accolade-item {
    width: 200px;
}

.game-showcase:has(img[src*="soulvester"]) .accolade-item img {
    width: 200px;
    height: 200px;
}

.game-showcase:has(img[src*="soulvester"]) .accolades-list {
    grid-template-columns: repeat(auto-fit, 200px);
}

.accolade-item span {
    color: white;
}

/* Team Section */
.game-team {
    margin-top: 0;
    text-align: center;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    justify-content: center;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px;
}

.team-member strong {
    color: #ffffff;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.team-member .responsibilities {
    color: #ffffff;
    font-size: 0.9em;
    opacity: 0.8;
}

/* Game Stats Section */
.game-stats {
    grid-column: 1 / -1;
    background-color: #000000;
    padding: 20px;
    border-radius: 12px;
    border: 4px solid #444444;
    margin-bottom: 0;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 1.5em;
    color: #00FF66;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    color: #ffffff;
    font-size: 0.9em;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 600px) {
    .game-info {
        grid-template-columns: 1fr;
    }

    .game-description,
    .game-features,
    .game-review,
    .game-accolades,
    .game-team,
    .game-stats {
        width: 100%;
    }

    .game-review blockquote {
        padding: 0 10px 20px;
    }

    .screenshots img {
        width: calc(50% - 10px);
    }
    
    .game-logo {
        max-width: 90%;
        height: auto;
    }

    .team-member {
        flex-direction: column;
        text-align: center;
    }

    .team-member img {
        margin-bottom: 8px;
    }

    .carousel {
        width: 100%;
        max-width: 560px;
    }
    
    .screenshots-container {
        padding: 12px;
    }

    .feature-icons {
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .screenshots img {
        width: 100%;
        max-width: 400px;
    }
}

.flex-row-images {
    display: flex;              /* Creates a flexbox row */
    justify-content: center;    /* Centers items horizontally */
    align-items: center;        /* Centers items vertically */
    gap: 20px;                 /* Space between images */
    padding: 20px;             /* Padding around the row */
    width: 100%;               /* Full width */
    max-width: 875px;          /* Maximum width to match other containers */
    position: relative;         /* Added for rollover positioning */
}

.flex-row-images a {
    position: relative;         /* Added for rollover positioning */
    display: block;            /* Ensures proper image containment */
}

.flex-row-images img {
    flex: 1;                   /* Makes images share space equally */
    max-width: 100%;           /* Prevents overflow */
    height: auto;              /* Maintains aspect ratio */
    min-width: 0;             /* Allows images to shrink below content size */
}

/* Border Container */
.border-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.border-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.video-border {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/gamepages/carousel_border.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 1;
}

.video-border iframe {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 0;
}

/* Game Description Metadata */
.game-description .metadata {
    margin: 6px 0 12px 0;
    font-size: 0.9em;
}

.game-description .metadata .label {
    color: #00FF66;
    font-weight: bold;
    margin-right: 4px;
}

.game-description .metadata .value {
    color: #ffffff;
    opacity: 0.8;
}