
/* ================================
   GLOBAL
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #1b2838;
    color: #c7d5e0;
    font-family: "Open Sans", Arial, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}


/* ================================
   HEADER
================================ */

.site-header {
    width: 100%;
}

.topbar {
    background: #171a21;
}

.header-inner {
    max-width: 940px;
    height: 104px;
    margin: auto;

    display: flex;
    align-items: center;
    gap: 40px;
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #66c0f4;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 1px;

    transition: color 0.2s;
}

.logo:hover {
    color: white;
}

.logo-icon {
    width: 36px;
    height: 36px;
}


/* MAIN NAV */

.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: #b8b6b4;
    font-size: 13px;
    font-weight: 700;
    transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: white;
}


/* ACCOUNT */

.account-links {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 11px;
}

.account-links a {
    color: #b8b6b4;
}

.account-links a:first-child {
    background: #5c7e10;
    color: white;
    padding: 5px 9px;
}

.account-links a:hover {
    color: white;
}


/* ================================
   STORE BAR
================================ */

.storebar {
    background: linear-gradient(
        90deg,
        #1e4260,
        #245477
    );
}

.store-inner {
    max-width: 940px;
    min-height: 48px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.browse-nav {
    display: flex;
    gap: 17px;
}

.browse-nav a {
    color: #e5f2f9;
    font-size: 12px;
}

.browse-nav a span {
    color: #a8d5ed;
}

.browse-nav a:hover {
    color: white;
}


/* SEARCH */

.search-container {
    width: 180px;
    height: 30px;

    background: #316282;
    border: 1px solid #1a3b50;
    border-radius: 3px;

    display: flex;
    align-items: center;
    padding: 0 8px;
}

.search-container input {
    width: 100%;
    border: none;
    outline: none;

    background: transparent;
    color: white;
    font-size: 12px;
}

.search-container input::placeholder {
    color: #c7d5e0;
}

.search-icon {
    color: #c7d5e0;
    font-size: 21px;
}


/* ================================
   MAIN CONTENT
================================ */

.main-content {
    max-width: 940px;
    margin: 42px auto;
}


/* ================================
   FEATURED BANNER
================================ */

.welcome-banner {
    min-height: 310px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    overflow: hidden;
    position: relative;

    padding: 38px 42px;

    background: linear-gradient(
        110deg,
        #162b3d,
        #23445e
    );

    border: 1px solid #34546b;
}

.welcome-content {
    max-width: 450px;
    position: relative;
    z-index: 2;
}

.eyebrow {
    color: #8ebbd5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.welcome-content h1 {
    margin-top: 13px;

    color: white;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.welcome-content p {
    max-width: 370px;
    margin-top: 13px;

    color: #b7c7d3;
    font-size: 13px;
    line-height: 1.7;
}

.discover-button {
    display: inline-block;

    margin-top: 23px;
    padding: 11px 16px;

    background: #66a8ce;
    border-radius: 2px;

    color: #102638;
    font-size: 11px;
    font-weight: 700;

    transition: background 0.2s;
}

.discover-button:hover {
    background: #8bc5e7;
}


/* ================================
   FEATURED ARTWORK
================================ */

.featured-art {
    width: 330px;
    height: 240px;

    position: relative;
    flex-shrink: 0;
}

.featured-art-main {
    position: absolute;

    width: 185px;
    height: 215px;

    right: 75px;
    top: 12px;

    background:
        linear-gradient(
            145deg,
            rgba(113, 156, 179, 0.85),
            rgba(30, 55, 76, 0.9)
        );

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;

    transform: rotate(-7deg);
}

.featured-art-side {
    position: absolute;

    width: 145px;
    height: 185px;

    right: 15px;
    top: 32px;

    background:
        linear-gradient(
            145deg,
            #718e9e,
            #263d4d
        );

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;

    transform: rotate(8deg);
}


/* ================================
   SECTION HEADINGS
================================ */

.category-section,
.library-section {
    margin-top: 43px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-eyebrow {
    color: #7eabc7;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.section-heading h2 {
    margin-top: 5px;

    color: white;
    font-size: 21px;
    font-weight: 500;
}

.coming-soon {
    color: #8b9baa;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}


/* ================================
   CATEGORY GRID
================================ */

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.category-card {
    min-height: 83px;
    padding: 16px;

    display: flex;
    align-items: center;
    gap: 15px;

    background: #16202d;
    border: 1px solid #293b4b;

    transition:
        background 0.2s,
        border-color 0.2s;
}

.category-card:hover {
    background: #203448;
    border-color: #456b85;
}

.category-number {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #22374a;
    border-radius: 2px;

    color: #80b6d5;
    font-size: 12px;
    font-weight: 700;
}

.category-info h3 {
    color: #e5eaf0;
    font-size: 13px;
    font-weight: 600;
}

.category-info p {
    margin-top: 5px;

    color: #8f9eaa;
    font-size: 11px;
}

.category-arrow {
    margin-left: auto;

    color: #8aabbf;
    font-size: 22px;

    transition: transform 0.2s;
}

.category-card:hover .category-arrow {
    transform: translateX(3px);
}


/* ================================
   EMPTY GAME LIBRARY
================================ */

.empty-library {
    min-height: 205px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: #16202d;
    border: 1px solid #293b4b;

    text-align: center;
}

.empty-library-line {
    width: 36px;
    height: 2px;

    margin-bottom: 18px;

    background: #66a8ce;
}

.empty-library h3 {
    color: #e5eaf0;
    font-size: 15px;
    font-weight: 600;
}

.empty-library p {
    max-width: 350px;
    margin-top: 8px;

    color: #8f9eaa;
    font-size: 12px;
    line-height: 1.7;
}


/* ================================
   FOOTER
================================ */

.site-footer {
    margin-top: 55px;
    padding: 23px 0;

    border-top: 1px solid #304355;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #66c0f4;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-mark {
    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #66c0f4;
    border-radius: 3px;

    color: #171a21;
    font-size: 15px;
    font-weight: 700;
}

.site-footer p,
.copyright {
    color: #758594;
    font-size: 9px;
    letter-spacing: 0.7px;
}


/* ================================
   RESPONSIVE
================================ */

@media (max-width: 1000px) {

    .header-inner,
    .store-inner,
    .main-content {
        width: 92%;
    }

}

@media (max-width: 760px) {

    .header-inner {
        height: auto;
        min-height: 104px;

        flex-wrap: wrap;
        gap: 15px;

        padding: 18px 0;
    }

    .account-links {
        margin-left: 0;
    }

    .store-inner {
        flex-wrap: wrap;
        gap: 12px;
        padding: 10px 0;
    }

    .browse-nav {
        flex-wrap: wrap;
    }

    .welcome-banner {
        padding: 30px;
    }

    .featured-art {
        width: 220px;
        transform: scale(0.8);
    }

}

@media (max-width: 550px) {

    .main-nav {
        gap: 12px;
    }

    .account-links {
        flex-wrap: wrap;
    }

    .welcome-banner {
        padding: 28px 22px;
    }

    .welcome-content h1 {
        font-size: 29px;
    }

    .featured-art {
        display: none;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

}
/* ================================
   ROUNDED DESIGN
================================ */

.welcome-banner {
    border-radius: 14px;
}

.featured-art-main,
.featured-art-side {
    border-radius: 12px;
}

.discover-button {
    border-radius: 7px;
}

.search-container {
    border-radius: 8px;
}

.category-card {
    border-radius: 10px;
}

.category-number {
    border-radius: 8px;
}

.empty-library {
    border-radius: 12px;
}

.account-links a:first-child {
    border-radius: 5px;
}

.footer-mark {
    border-radius: 7px;
}

/* ================================
   STEAM-STYLE BLURRED BACKGROUND
================================ */

body {
    position: relative;
    isolation: isolate;
    background: #101923;
}

body::before {
    content: "";
    position: fixed;
    inset: -30px;
    z-index: -2;

    background-image: url("background.jpg");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;

    filter: blur(22px);
    opacity: 0.35;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    background: linear-gradient(
        to bottom,
        rgba(13, 25, 38, 0.55),
        rgba(13, 25, 38, 0.88) 55%,
        #101923 100%
    );

    pointer-events: none;
}

/* ================================
   PLATFORM CATEGORY CARDS
================================ */

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.category-card {
    min-height: 110px;
    padding: 12px;

    display: flex;
    align-items: center;
    gap: 16px;

    background: rgba(15, 25, 38, 0.85);
    border: 1px solid rgba(120, 160, 190, 0.15);
    border-radius: 12px;

    transition: 0.2s ease;
}

.category-card:hover {
    background: rgba(35, 55, 75, 0.95);
    border-color: #66a8ce;
    transform: translateY(-3px);
}

.platform-art {
    width: 115px;
    height: 82px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
}

.platform-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-info h3 {
    color: white;
    font-size: 14px;
}

.category-info p {
    margin-top: 6px;
    color: #9baebe;
    font-size: 11px;
}

.category-arrow {
    margin-left: auto;
    color: #8aabbf;
    font-size: 24px;
}

@media (max-width: 550px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}
/* FEATURED GAME CARD IMAGES */

.featured-art-main,
.featured-art-side {
    overflow: hidden;
}

.featured-art-main img,
.featured-art-side img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}
/* FORCE PS1 CARD IMAGE SIZING */

.ps1-featured-art {
    position: relative !important;
    width: 360px !important;
    height: 260px !important;
    flex: 0 0 360px !important;
    overflow: hidden !important;
}

.ps1-art-card {
    position: absolute !important;
    width: 145px !important;
    height: 210px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.ps1-art-card img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}
/* ROUNDED PS1 GAME CARDS */

.ps1-art-card {
    border-radius: 14px !important;
}

.ps1-art-card img {
    border-radius: 12px !important;
}
/* FIX PS1 CARD VISIBILITY */

.ps1-featured-art {
    overflow: visible !important;
}

.ps1-art-back {
    right: 0 !important;
    top: 20px !important;
    z-index: 1 !important;
}

.ps1-art-middle {
    right: 95px !important;
    top: 35px !important;
    z-index: 2 !important;
}

.ps1-art-front {
    right: 190px !important;
    top: 20px !important;
    z-index: 3 !important;
}
/* PS1 CARD DEPTH AND SHADOWS */

.ps1-art-card {
    box-shadow:
        0 8px 15px rgba(0, 0, 0, 0.35),
        0 18px 35px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.12) !important;

    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

/* Slight highlight around the artwork */

.ps1-art-card img {
    filter: brightness(0.95) contrast(1.05);
}
/* =================================
   PS1 CARD HOVER ANIMATIONS
================================= */

.ps1-art-card {
    cursor: pointer;
    transition:
        transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.35s ease,
        filter 0.35s ease;

    will-change: transform;
}

/* Keep the cards in their original order */

.ps1-art-back {
    z-index: 1;
}

.ps1-art-middle {
    z-index: 2;
}

.ps1-art-front {
    z-index: 3;
}

/* Bring hovered card above everything */

.ps1-art-card:hover {
    z-index: 20 !important;
    box-shadow:
        0 18px 30px rgba(0, 0, 0, 0.5),
        0 30px 55px rgba(0, 0, 0, 0.55),
        0 0 0 2px rgba(102, 192, 244, 0.6);
    filter: brightness(1.12);
}

/* Individual hover movement */

.ps1-art-back:hover {
    transform: translateY(-18px) scale(1.12) rotate(12deg);
}

.ps1-art-middle:hover {
    transform: translateY(-18px) scale(1.12) rotate(-7deg);
}

.ps1-art-front:hover {
    transform: translateY(-18px) scale(1.12) rotate(-15deg);
}
/* =================================
   HOMEPAGE FEATURED CARD ANIMATIONS
================================= */

.featured-art-main,
.featured-art-side {
    cursor: pointer;
    transition:
        transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.35s ease,
        filter 0.35s ease;

    will-change: transform;
}

/* Bring hovered card forward */

.featured-art-main:hover,
.featured-art-side:hover {
    z-index: 20 !important;
    filter: brightness(1.12);

    box-shadow:
        0 18px 30px rgba(0, 0, 0, 0.5),
        0 30px 55px rgba(0, 0, 0, 0.55),
        0 0 0 2px rgba(102, 192, 244, 0.6);
}

/* Crash Bandicoot */

.featured-art-main:hover {
    transform: translateY(-18px) scale(1.12);
}

/* Super Mario 64 */

.featured-art-side:hover {
    transform: translateY(-18px) scale(1.12);
}

/* =================================
   PS1 GAME LIBRARY
================================= */

.ps1-game-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 25px;
}

.ps1-game-card {
    min-width: 0;
    overflow: hidden;
    background: rgba(15, 25, 38, 0.92);
    border: 1px solid rgba(120, 160, 190, 0.18);
    border-radius: 12px;
    transition: transform 0.25s ease, border-color 0.25s ease,
                box-shadow 0.25s ease;
}

.ps1-game-card:hover {
    transform: translateY(-6px);
    border-color: #66c0f4;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.ps1-game-cover {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #111c29;
}

.ps1-game-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.ps1-game-card:hover .ps1-game-cover img {
    transform: scale(1.05);
}

.ps1-game-info {
    padding: 15px;
}

.ps1-game-info h3 {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 6px;
}

.ps1-game-info span {
    display: block;
    color: #9baebe;
    font-size: 11px;
    margin-bottom: 15px;
}

