/* --- gamepage.css (Updated Breakpoint) --- */

/* --- GLOBAL THEME VARIABLES --- */
body[data-page-type="games"] {
    --slideshow-theme-color-solid: #00ff98;
    --slideshow-theme-color-hover: #00e082;
    --slideshow-theme-color-shadow: #00ff98af;
    --slideshow-theme-color-progress: rgba(0, 255, 152, 0.5);
}

body[data-page-type="software"] {
    --slideshow-theme-color-solid: #6c9fff;
    --slideshow-theme-color-hover: #488aff;
    --slideshow-theme-color-shadow: #6c9fffaf;
    --slideshow-theme-color-progress: rgba(108, 159, 255, 0.5);
}

body { 
    color: #e0e0e0; 
    font-family: "Comfortaa", sans-serif;
}

/* --- SLIDESHOW STYLES --- */
.game-slideshow {
    width: 100%;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.game-slideshow .slides-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-color: #000;
    background: rgba(30, 30, 30, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    overflow: hidden;
}
.game-slideshow .slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex; align-items: stretch; justify-content: stretch;
}
.game-slideshow .slide.active { opacity: 1; z-index: 1; }
.game-slideshow .slide iframe { width: 100%; height: 100%; border: none; }
.game-slideshow .slide-navigation {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    gap: 10px;
    background: rgba(30, 30, 30, 0.5);
    backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 1;
    overflow: hidden;
}
.navigation-progress-fill {
    position: absolute; top: 0; left: 0;
    height: 100%; width: 0%;
    background-color: var(--slideshow-theme-color-progress);
    z-index: 0;
}
@keyframes progressBarAnimation { from { width: 0%; } to { width: 100%; } }
.game-slideshow .nav-indicator {
    width: 100px; height: 56.25px;
    border-radius: 10px; overflow: hidden; cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative; z-index: 1; opacity: 0.6;
}
.game-slideshow .nav-indicator:hover,
.game-slideshow .nav-indicator.active {
    border-color: var(--slideshow-theme-color-solid);
    opacity: 1; transform: scale(1.05);
}
.game-slideshow .nav-indicator img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 1000px) {
    .game-slideshow .nav-indicator {
        width: 12px; height: 12px; border-radius: 50%;
        background-color: rgba(255,255,255,0.3); border-color: transparent;
    }
    .game-slideshow .nav-indicator img { display: none; }
    .game-slideshow .nav-indicator.active {
        background-color: var(--slideshow-theme-color-solid);
        border-color: var(--slideshow-theme-color-solid);
    }
     .game-slideshow .nav-indicator:hover {
        background-color: var(--slideshow-theme-color-solid);
        opacity: 0.8;
    }
}

/* --- GAME PAGE LAYOUT STYLES --- */
.game-page-wrapper {
    width: 85%; 
    max-width: 1600px; 
    margin: 50px auto 50px auto; 
    display: flex; 
    gap: 25px;
}
.left-column { flex: 2; display: flex; flex-direction: column; gap: 25px; }
.right-column { flex: 1; display: flex; flex-direction: column; gap: 25px; }
.game-box {
    background: rgba(40, 40, 40, 0.7); backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px;
    padding: 25px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
#game-title-box { padding: 20px 25px; }
#game-name { margin: 0; font-size: 2.5em; font-weight: 500; }
#description-box h2 {
    margin-top: 0; margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 10px;
}
#game-description { margin: 0; line-height: 1.6; color: #c0c0c0; }

#game-logo-box {
    display: flex; justify-content: center; align-items: center;
    background: none; border: none; box-shadow: none; backdrop-filter: none; padding: 0;
}
#game-logo { 
    max-width: 100%; max-height: 350px; 
    border-radius: 15px; transition: border-radius 0.3s ease;
}
#game-logo.logo-is-cover {
    border-radius: 50%; object-fit: cover;
    width: 300px; height: 180px;
}
#download-links-box { padding: 0; background: none; border: none; box-shadow: none; backdrop-filter: none; }

.download-button {
    display: block; width: 100%; padding: 15px; 
    background-color: var(--slideshow-theme-color-solid);
    color: #1a1a1a;
    text-align: center; text-decoration: none;
    font-size: 1.1em; font-weight: 700;
    border-radius: 25px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-sizing: border-box; border: none; box-shadow: none;
}
.download-button:hover {
    background-color: var(--slideshow-theme-color-hover); 
    transform: scale(1.05);
    box-shadow: 0 0 18px var(--slideshow-theme-color-shadow);
}
.download-unavailable {
    background-color: rgba(255, 255, 255, 0.1); color: #777;
    cursor: not-allowed; pointer-events: none; box-shadow: none;
    font-weight: 500;
}
.download-unavailable:hover {
    background-color: rgba(255, 255, 255, 0.1); transform: none; box-shadow: none;
}

.basic-info-table {
    display: grid; grid-template-columns: auto 1fr;
    gap: 6px; width: 100%;
}
.info-label, .info-value {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px 12px; border-radius: 8px; font-size: 0.9em;
    color: white; display: flex; align-items: center;
    min-height: 2.2em; word-break: break-word;
}
.info-label {
    border: 2px solid var(--slideshow-theme-color-solid);
    font-weight: 500; justify-content: flex-start;
}
.info-value {
    border: 2px solid transparent; 
    justify-content: flex-start;
}

/* UPDATED: Breakpoint changed from 1024px to 1400px */
@media (max-width: 1300px) {
    .game-page-wrapper { flex-direction: column; width: 90%; }
}

@media (max-width: 768px) {
    .basic-info-table { grid-template-columns: 1fr; gap: 4px; }
    .info-label, .info-value {
        justify-content: center; font-size: 0.85em; padding: 6px 10px;
    }
    .info-label {
        margin-bottom: -2px; border-bottom-left-radius: 0; border-bottom-right-radius: 0;
    }
    .info-value { border-top-left-radius: 0; border-top-right-radius: 0; }
}
@media (max-width: 600px) {
    .game-page-wrapper { width: 95%; gap: 15px; }
    .game-box { padding: 15px; border-radius: 15px; }
    #game-name { font-size: 2em; }
}