/* ================================
   GAME PAGE — GENERAL STYLES
================================ */

.gamePage {
    background-color: #ffffff;
    width: 100%;
}

/* -------------------------------
   INTRO SECTION
-------------------------------- */
.gamePage .gameIntro {
    display: flex;
    flex-direction: column;
    padding: 6rem 3rem;
    position: relative;
    background: #ffffff;
}

@media (min-width: 770px) {
    .gamePage .gameIntro {
        flex-direction: row;
        justify-content: center;
        padding: 6rem;
    }
}

.gamePage .gameIntro:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(#ffffff 0%, #fafafa 100%);
    opacity: 1;
}

/* INTRO TEXT */
.gamePage .gameIntro .gameInfo {
    color: #222;
    position: relative;
    text-align: left;
    max-width: 40rem;
}

.gamePage .gameIntro .gameInfo > *:not(:last-child) {
    margin-bottom: 1.5rem;
}

.gamePage .gameIntro .gameInfo h2 {
    margin-bottom: 1rem;
    max-width: 30rem;
    color: #5a3aa3;
}

.gamePage .gameIntro .gameInfo p {
    max-width: 30rem;
    color: #444;
}

/* SOCIAL ICONS */
.gamePage .gameIntro .social a {
    margin-right: 25px;
}

/* -------------------------------
   GAME HEADER
-------------------------------- */
.gameInfo .gameHeader {
    display: flex;
    align-items: center;
    flex-direction: row;
}

.gameInfo .gameHeader > :first-child {
    margin-right: 1rem;
}

@media (min-width: 770px) {
    .gameInfo .gameHeader > :first-child {
        margin-right: 0;
    }
}

.gameInfo .gameHeader img {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0px 3px 14px rgba(0, 0, 0, .15));
}

@media (min-width: 770px) {
    .gameInfo .gameHeader img {
        width: 120px;
        height: 120px;
    }
}

.gameInfo .gameHeader .gameMeta {
    margin-left: 1rem;
}

.gameInfo .gameHeader .gameMeta .gameType {
    color: #5a3aa3;
    font-size: .85rem;
    font-weight: 700;
}

/* -------------------------------
   GAME FEATURES
-------------------------------- */
.gamePage .gameFeatures {
    padding: 4rem 2rem;
    position: relative;
    color: #fff;
    background: #3a246a;
}

@media (min-width: 770px) {
    .gamePage .gameFeatures {
        padding: 6rem 10rem;
    }
}

.gamePage .gameFeatures:before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.gamePage .gameFeatures > * {
    position: relative;
    z-index: 2;
}

.gamePage .gameFeatures h1,
.gamePage .gameFeatures p {
    max-width: 50ch;
}

.gamePage .gameFeatures p {
    font-weight: 300;
    margin-bottom: 1rem;
}

/* -------------------------------
   DOWNLOAD LINKS
-------------------------------- */
.gameLinks {
    display: flex;
    width: 100%;
    justify-content: flex-start;
}

.gameLinks a:not(:last-child) {
    margin-right: 1rem;
}

.gameLinks img {
    height: 3rem;
}

/* -------------------------
   GAME OUTRO
------------------------- */
.gameOutro {
    align-items: center;
    display: flex;
    flex-direction: column;
    padding-bottom: 3rem;
    position: relative;
    background: #ffffff;
}

@media screen and (min-width:770px) {
    .gameOutro {
        padding-bottom: 4rem;
    }
}

.gameOutro > * {
    margin-bottom: 1.5rem;
}

.gameOutro .gameLinks {
    justify-content: center;
}

.gameOutro > img:first-child {
    filter: drop-shadow(0px 4px 14px rgba(0, 0, 0, .15));
    height: 100px;
    width: 100px;
}

@media screen and (min-width:770px) {
    .gameOutro > img:first-child {
        height: 120px;
        width: 120px;
    }
}

.gameOutro ul li {
    display: inline-block;
}

.gameOutro ul li a {
    color: #5a3aa3;
    font-size: 20px;
    text-decoration: none;
    margin-right: 25px;
    font-weight: 700;
}

.gameOutro ul li a:hover {
    color: #ff5f08;
}

/* ================================
   GALLERY GRID (FANCYBOX)
================================ */
.gallery {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    justify-items: center;
    padding: 10px 0;
}

.gallery a {
    display: block;
    width: 140px;
}

.gallery a img {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    border-radius: 16px;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.gallery a img:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 16px;
    }
    .gallery a {
        width: 120px;
    }
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .gallery a {
        width: 100%;
        max-width: 180px;
    }
    .gallery a img {
        border-radius: 12px;
    }
}

/* ===================================================
   LANDSCAPE GALLERY (Used for Warriors Adventure)
=================================================== */

.landscape-gallery .gallery {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    justify-items: center;
    padding: 10px 0;
}

.landscape-gallery .gallery a {
    display: block;
    width: 220px;
}

.landscape-gallery .gallery a img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.landscape-gallery .gallery a img:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

/* TABLET */
@media (max-width: 900px) {
    .landscape-gallery .gallery {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }
    .landscape-gallery .gallery a {
        width: 180px;
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .landscape-gallery .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .landscape-gallery .gallery a {
        width: 100%;
        max-width: 200px;
    }
    .landscape-gallery .gallery a img {
        border-radius: 10px;
    }
}

/* Fancybox thumbs for landscape */
.fancybox__thumbs img {
    aspect-ratio: 16 / 9 !important;
    object-fit: cover;
    border-radius: 8px;
}


.screenshotContainer {
    margin-top: 60px;
}

/* ===========================================
   FANCYBOX — Instagram/iOS Styling
=========================================== */

/* BACKGROUND BLUR */
/* Fancybox transparent dark blur - NO BLACK OVERLAY */
.fancybox__container {
    z-index: 2147483647 !important;

    /* fără fundal negru */
    background: transparent !important;

    /* blur foarte fin + întunecare foarte subtilă 
    backdrop-filter: blur(4px) brightness(0.75) contrast(0.95);
    -webkit-backdrop-filter: blur(4px) brightness(0.75) contrast(0.95);*/
}

/* THUMBNAILS */
.fancybox__thumbs .carousel__slide {
    opacity: 0.45;
    transition: opacity .25s ease, transform .25s ease;
}

.fancybox__thumbs .carousel__slide.is-selected {
    opacity: 1;
    transform: scale(1.1);
}

.fancybox__thumbs img {
    border-radius: 1px;
}

/* REMOVE CAPTION */
.fancybox__caption {
    display: none !important;
}

/* SMOOTH ZOOM */
.fancybox__image {
    transition: transform .35s ease-out !important;
}

html.fancybox-enabled,
body.fancybox-enabled {
    overflow: hidden !important;
    touch-action: none !important;
}

