/* =====================================
   GAME DETAILS PAGE
===================================== */

.game-details {

    padding: 80px 8%;

    background:
        radial-gradient(
            circle at 75% 30%,
            #4c1d95,
            transparent 35%
        );

    border-bottom: 1px solid #222;

}


.game-details-container {

    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 70px;

    align-items: center;

}


/* GAME PREVIEW */

.game-preview {

    height: 420px;

    border-radius: 20px;

    display: flex;

    justify-content: center;

    align-items: center;

    background:
        linear-gradient(
            135deg,
            #064e3b,
            #16a34a
        );

    border: 1px solid #333;

    box-shadow:
        0 30px 80px
        rgba(0,0,0,.4);

}


.preview-icon {

    font-size: 130px;

    filter:
        drop-shadow(
            0 20px 25px
            rgba(0,0,0,.35)
        );

}


/* INFORMATION */

.game-category {

    color: #a78bfa;

    font-size: 12px;

    letter-spacing: 2px;

    font-weight: bold;

}


.game-information h1 {

    font-size:
        clamp(
            50px,
            7vw,
            80px
        );

    line-height: 1;

    margin: 15px 0 10px;

}


.game-tagline {

    color: #aaa;

    font-size: 20px;

}


.game-stats {

    display: flex;

    flex-wrap: wrap;

    gap: 15px;

    margin: 25px 0;

}


.game-stats span {

    padding: 9px 14px;

    border-radius: 8px;

    background: #18181b;

    border: 1px solid #29292c;

    color: #aaa;

    font-size: 13px;

}


.game-stats strong {

    color: white;

}


.game-description {

    max-width: 550px;

    color: #999;

    line-height: 1.7;

}


.main-play-btn {

    display: inline-block;

    margin-top: 30px;

    padding: 16px 30px;

    background: #7c3aed;

    border-radius: 10px;

    color: white;

    text-decoration: none;

    font-weight: bold;

    transition: .25s;

}


.main-play-btn:hover {

    background: #8b5cf6;

    transform:
        translateY(-2px);

}


/* =====================================
   PLAY AREA
===================================== */

.play-section {

    max-width: 1200px;

    margin: auto;

    padding: 80px 20px;

}


.play-header {

    display: flex;

    justify-content: space-between;

    align-items: end;

    margin-bottom: 25px;

}


.play-header span {

    color: #8b5cf6;

    font-size: 11px;

    letter-spacing: 2px;

    font-weight: bold;

}


.play-header h2 {

    font-size: 35px;

    margin-top: 8px;

}


.fullscreen-btn {

    padding: 11px 18px;

    background: #18181b;

    border: 1px solid #333;

    border-radius: 8px;

    color: white;

    cursor: pointer;

}


.game-frame {

    width: 100%;

    height: 650px;

    background: #000;

    border-radius: 15px;

    overflow: hidden;

    border: 1px solid #29292c;

}


.game-frame iframe {

    width: 100%;

    height: 100%;

    border: none;

}


/* =====================================
   INFO
===================================== */

.game-info-section {

    padding: 20px 8% 80px;

}


.info-grid {

    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 25px;

}


.info-box {

    padding: 30px;

    background: #111113;

    border: 1px solid #242426;

    border-radius: 15px;

}


.info-box h2 {

    margin-bottom: 18px;

}


.info-box p,

.info-box li {

    color: #999;

    line-height: 1.7;

}


.info-box ul {

    padding-left: 20px;

}


/* =====================================
   RELATED
===================================== */

.related-section {

    padding: 80px 8%;

    background: #0d0d0f;

}


.related-heading {

    max-width: 1200px;

    margin: auto auto 30px;

}


.related-heading span {

    color: #8b5cf6;

    font-size: 11px;

    letter-spacing: 2px;

}


.related-heading h2 {

    font-size: 35px;

    margin-top: 8px;

}


.related-grid {

    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

}


.related-card {

    display: flex;

    align-items: center;

    gap: 18px;

    padding: 15px;

    background: #111113;

    border: 1px solid #242426;

    border-radius: 12px;

    text-decoration: none;

    color: white;

    transition: .25s;

}


.related-card:hover {

    border-color: #7c3aed;

    transform:
        translateY(-4px);

}


.related-image {

    width: 75px;

    height: 75px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    font-size: 35px;

}


.memory-bg {

    background:
        linear-gradient(
            135deg,
            #312e81,
            #7c3aed
        );

}


.game2048-bg {

    background:
        linear-gradient(
            135deg,
            #92400e,
            #f59e0b
        );

}


.space-bg {

    background:
        linear-gradient(
            135deg,
            #172554,
            #2563eb
        );

}


.related-card h3 {

    margin-bottom: 5px;

}


.related-card p {

    color: #777;

    font-size: 13px;

}


/* =====================================
   RESPONSIVE
===================================== */

@media(max-width: 850px) {

    .game-details-container {

        grid-template-columns: 1fr;

        gap: 40px;

    }


    .game-preview {

        height: 300px;

    }


    .info-grid {

        grid-template-columns: 1fr;

    }


    .related-grid {

        grid-template-columns: 1fr;

    }


    .game-frame {

        height: 600px;

    }

}


@media(max-width: 550px) {

    .game-details {

        padding: 50px 5%;

    }


    .game-preview {

        height: 250px;

    }


    .preview-icon {

        font-size: 90px;

    }


    .play-section {

        padding: 50px 10px;

    }


    .play-header {

        align-items: center;

    }


    .play-header h2 {

        font-size: 27px;

    }


    .game-frame {

        height: 550px;

        border-radius: 10px;

    }

}