/*
|--------------------------------------------------------------------------
| Main Games Page
|--------------------------------------------------------------------------
*/

.hg-main-games-page {
    width: 100%;
    overflow: hidden;
    background: #071a2b;
    color: #ffffff;
}


/*
|--------------------------------------------------------------------------
| Main Games Header
|--------------------------------------------------------------------------
*/

.hg-games-main-header {
    position: relative;
    width: 100%;
    min-height: 560px;
    overflow: hidden;
}

.hg-games-main-header img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

/*
|--------------------------------------------------------------------------
| Search Over Header Image
|--------------------------------------------------------------------------
*/

.hg-games-main-header .hg-games-search-wrap {
    position: absolute;
    left: 50%;
    bottom: 10%;
    transform: translateX(-50%);
    width: 98%;
    max-width: 665px;
    margin: 0;
    z-index: 5;
}

.hg-games-search-box {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 66px;
    padding: 5px;
    box-sizing: border-box;
    border-radius: 36px;
    background: #ffffff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
}

.hg-games-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    flex-shrink: 0;
    font-size: 23px;
}

#hg-games-search {
    width: 100%;
    min-width: 0;
    height: 56px;
    padding: 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #13243a;
    font-size: 18px;
}

#hg-games-search::placeholder {
    color: #77869a;
}

#hg-games-search-button {
    height: 56px;
    min-width: 135px;
    padding: 0 28px;
    border: 0;
    border-radius: 30px;
    background: linear-gradient(
        135deg,
        #f7d96b,
        #e9b93f
    );
    color: #172238;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

#hg-games-search-button:hover {
    transform: scale(1.03);
    filter: brightness(1.06);
}


/*
|--------------------------------------------------------------------------
| Feature Strip
|--------------------------------------------------------------------------
*/

.hg-games-features {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    min-height: 130px;
    padding: 25px 35px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #071a2b;
}

.hg-games-feature {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hg-games-feature-icon {
    color: #f3ca54;
    font-size: 40px;
    line-height: 1;
}

.hg-games-feature-text {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hg-games-feature-divider {
    width: 1px;
    height: 48px;
    background: rgba(239, 199, 78, 0.65);
}


/*
|--------------------------------------------------------------------------
| Games Content
|--------------------------------------------------------------------------
*/

.hg-games-content {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 35px 80px;
    box-sizing: border-box;
}


/*
|--------------------------------------------------------------------------
| Games Grid
|--------------------------------------------------------------------------
*/

.hg-games-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}


/*
|--------------------------------------------------------------------------
| Game Card
|--------------------------------------------------------------------------
*/

.hg-game-card {
    overflow: hidden;
    border-radius: 16px;
    background: #f2f4f7;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.hg-game-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}


/*
|--------------------------------------------------------------------------
| Game Card Image
|--------------------------------------------------------------------------
*/

.hg-game-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #173957;
}

.hg-game-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hg-game-card:hover .hg-game-card-image img {
    transform: scale(1.05);
}


/*
|--------------------------------------------------------------------------
| Game Card Bottom
|--------------------------------------------------------------------------
*/

.hg-game-card-bottom {
    position: relative;
    min-height: 185px;
    padding: 22px 22px 22px 96px;
    box-sizing: border-box;
    background: #f4f5f7;
}


/*
|--------------------------------------------------------------------------
| Game Icon
|--------------------------------------------------------------------------
*/

.hg-game-card-icon {
    position: absolute;
    top: -38px;
    left: 20px;
    width: 76px;
    height: 76px;
    border: 5px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hg-game-icon-orange {
    background: #ff9c35;
}

.hg-game-icon-green {
    background: #8fc84a;
}

.hg-game-icon-purple {
    background: #bd78e6;
}

.hg-game-icon-blue {
    background: #54b4e8;
}

.hg-game-icon-red {
    background: #f05a5a;
}

.hg-game-icon-teal {
    background: #36aeb3;
}


/*
|--------------------------------------------------------------------------
| Game Card Information
|--------------------------------------------------------------------------
*/

.hg-game-card-info h2 {
    margin: 0 0 5px;
    color: #18283a;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 900;
    text-transform: uppercase;
}

.hg-game-card-info p {
    margin: 0 0 18px;
    color: #435466;
    font-size: 15px;
    line-height: 1.4;
}


/*
|--------------------------------------------------------------------------
| View Game Button
|--------------------------------------------------------------------------
*/

.hg-game-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 150px;
    height: 40px;
    padding: 0 20px;
    box-sizing: border-box;
    border: 2px solid #173957;
    border-radius: 10px;
    color: #173957;
    background: transparent;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.hg-game-card-button:hover {
    background: #173957;
    color: #ffffff;
    transform: translateY(-2px);
}

.hg-game-card-button span {
    font-size: 20px;
    line-height: 1;
}


/*
|--------------------------------------------------------------------------
| No Results
|--------------------------------------------------------------------------
*/

.hg-games-no-results {
    grid-column: 1 / -1;
    padding: 80px 20px;
    text-align: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
}

.hg-games-no-results-icon {
    margin-bottom: 15px;
    font-size: 46px;
}

.hg-games-no-results h2 {
    margin: 0 0 10px;
    color: #ffffff;
}

.hg-games-no-results p {
    margin: 0;
    color: #b9c7d4;
}


/*
|--------------------------------------------------------------------------
| Bottom Message
|--------------------------------------------------------------------------
*/

.hg-games-bottom-message {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    min-height: 190px;
    padding: 35px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #071a2b;
}

.hg-games-bottom-side {
    width: 180px;
    color: #f3ca54;
    font-size: 24px;
    line-height: 1.05;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
}

.hg-games-bottom-right {
    text-align: right;
}

.hg-games-bottom-center {
    flex: 1;
    text-align: center;
}

.hg-games-bottom-center h2 {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: 30px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hg-games-bottom-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hg-games-bottom-line i {
    display: block;
    width: 2px;
    height: 22px;
    background: #f3ca54;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media screen and (max-width: 1000px) {

    .hg-games-hero {
        min-height: 500px;
    }

    .hg-games-hero-content {
        min-height: 500px;
    }

    .hg-games-hero-text h1 {
        font-size: 70px;
    }

    .hg-games-results {
        grid-template-columns: repeat(2, 1fr);
    }

    .hg-games-features {
        flex-wrap: wrap;
        justify-content: center;
        gap: 25px;
    }

    .hg-games-feature-divider {
        display: none;
    }

}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media screen and (max-width: 700px) {

    .hg-games-hero {
        min-height: 600px;
    }

    .hg-games-hero-background {
        background-position: 58% center;
    }

    .hg-games-hero-content {
        min-height: 600px;
        padding: 50px 20px 30px;
    }

    .hg-games-hero-text {
        max-width: 100%;
    }

    .hg-games-hero-text h1 {
        font-size: 56px;
        letter-spacing: -2px;
    }

    .hg-games-hero-text h2 {
        margin-top: 18px;
        font-size: 26px;
    }

    .hg-games-hero-text p {
        font-size: 17px;
    }

    .hg-games-search-box {
        min-height: 58px;
    }

    .hg-games-search-icon {
        width: 45px;
        font-size: 18px;
    }

    #hg-games-search {
        height: 48px;
        font-size: 16px;
    }

    #hg-games-search-button {
        height: 48px;
        min-width: 100px;
        padding: 0 15px;
        font-size: 15px;
    }

    .hg-games-features {
        padding: 28px 20px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 15px;
    }

    .hg-games-feature {
        gap: 10px;
    }

    .hg-games-feature-icon {
        font-size: 30px;
    }

    .hg-games-feature-text {
        font-size: 13px;
    }

    .hg-games-content {
        padding: 10px 18px 55px;
    }

    .hg-games-results {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .hg-game-card-image {
        height: 230px;
    }

    .hg-games-bottom-message {
        padding: 45px 20px;
        flex-direction: column;
        gap: 30px;
    }

    .hg-games-bottom-side {
        width: 100%;
        text-align: center;
        font-size: 20px;
    }

    .hg-games-bottom-right {
        text-align: center;
    }

    .hg-games-bottom-center h2 {
        font-size: 23px;
        letter-spacing: 2px;
    }

    .hg-games-bottom-line {
        flex-wrap: wrap;
        gap: 12px;
        font-size: 12px;
        letter-spacing: 1px;
    }

}