* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Outfit", sans-serif;
    background-color: #111827;
    color: #F8FAFC;
}
a {
    text-decoration: none;
}
ul {
    list-style: none;
}
html::-webkit-scrollbar {
    width: 10px;
}
html::-webkit-scrollbar-track {
    background: #484848;
}
html::-webkit-scrollbar-thumb {
    background: #00E5FF;
    border-radius: 10px;
}
html::-webkit-scrollbar-thumb:hover {
    background: #8B5CF6;
}
/* start navbar */
.navbar {
    padding: 20px 40px;
    width: 100%;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.filters {
    display: flex;
    align-items: center;
    gap: 15px;
}
.search-box input {
    background-color: #243047;
    border: 2px solid transparent;
    color: #F8FAFC;
    border-radius: 12px;
    padding: 12px 18px;
}
.search-box input::placeholder {
    color: #B8C1CC;
}
.search-box input:focus {
    border-color: #00E5FF;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    background-color: #243047;
    color: #F8FAFC;
}
.filters select {
    background-color: #243047;
    color: #F8FAFC;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    min-width: 170px;
}
.filters select:focus {
    border-color: #00E5FF;
    box-shadow: none;
}
.reset-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background-color: #243047;
    color: #F8FAFC;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: .3s;
}
.reset-btn:hover {
    border-color: #00E5FF;
    color: #00E5FF;
    box-shadow: 0 0 12px rgba(0, 229, 255, .3);
}
.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background-color: #243047;
    color: #F8FAFC;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: .3s;
    font-weight: 600;
    white-space: nowrap;
}
.back-btn:hover {
    border-color: #00E5FF;
    color: #00E5FF;
    box-shadow: 0 0 12px rgba(0, 229, 255, .3);
}
/* end navbar */

/* start aside */
.top-bar{
    position:sticky;
    top:0;
    background:#182235;
    padding:20px 20px;
    z-index:100;
    display:flex;
    justify-content:center;
    align-items:center;
}
.logo{
    background:#182235;
    text-align:center;
    z-index:100;
    margin: auto;
}
.menu-btn,
.close-btn{
    position:absolute;
    right:0;
    background:none;
    color:#fff;
    font-size:26px;
    cursor:pointer;
    display:none;
}
.layout {
    display: flex;
}
.sidebar {
    top: 0;
    left: 0;
    position: sticky;
    height: 100vh;
    overflow-y: auto;
    width: 260px;
    background-color: #182235;
    padding: 0 20px 30px;
}
main {
    flex: 1;
}
.logo h2{
    margin:0;
    font-size:32px;
    font-weight:700;
    letter-spacing:1px;
    text-align:center;
}
.logo span {
    color: #00E5FF;
}
.sidebar-menu {
    padding-left: 0;
}
.sidebar-menu>li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: .3s;
}
.sidebar-menu>li:hover {
    background-color: #243047;
}
.sidebar-menu>.active {
    background-color: #00E5FF;
    color: #111827;
    font-weight: 600;
}
.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-top: 20px;
    color: #F8FAFC;
    font-weight: 600;
}
#categories-list {
    margin-top: 8px;
    padding-left: 42px;
}
#categories-list>li {
    color: #B8C1CC;
    padding: 10px 0;
    cursor: pointer;
    transition: .3s;
}
#categories-list li:hover {
    color: #00E5FF;
    transform: translateX(8px);
}
#categories-list li.active {
    color: #00E5FF;
    font-weight: 600;
}
.sidebar::-webkit-scrollbar {
    width: 6px;
}
.sidebar::-webkit-scrollbar-track {
    background: #182235;
}
.sidebar::-webkit-scrollbar-thumb {
    background: #00E5FF;
    border-radius: 10px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
    background: #8B5CF6;
}
/* end aside */

/* start game card */
.games {
    padding: 20px 40px 40px;
}
.game-card {
    background-color: #182235;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    transition: transform .4s ease;
    position: relative;
    z-index: 1;
}
.game-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 0 15px rgba(0, 229, 255, 0.7),
        0 0 35px rgba(139, 92, 246, 0.5),
        0 0 60px rgba(0, 229, 255, 0.25);
}
.game-card:hover .card-image img {
    transform: scale(1.12);
}

.card-image {
    height: 180px;
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}
.card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card-body h3 {
    font-size: 20px;
    margin-bottom: 5px;
    min-height: 30px;
}
.game-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #B8C1CC;
}
.game-desc {
    color: #B8C1CC;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
    overflow: hidden;
}
.status {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
    font-style: italic;
}
.review-btn {
    width: 100%;
    background-color: #00E5FF;
    color: #111827;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 5px;
    transition: .3s;
}
.review-btn:hover {
    background-color: #8B5CF6;
    color: white;
}
.game-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.fav-btn {
    color: #B8C1CC;
    font-size: 22px;
    cursor: pointer;
    transition: .3s;
}
.fav-btn:hover {
    color: #ff4d6d;
}
.fav-active {
    color: #ff4d6d;
}
/* end game card */

/* start game review */
.details {
    padding: 30px 40px;
}
.details-header h2 {
    margin: 0;
    color: #00E5FF;
    font-size: 32px;
    font-weight: 700;
    padding-bottom: 10px;
}
.details-card {
    background: #182235;
    border-radius: 20px;
    padding: 35px;
}
.details-card img {
    width: 100%;
    border-radius: 20px;
}
.details-card h2 {
    font-size: 36px;
    margin-bottom: 20px;
}
.details-card p {
    color: #C5D1DE;
    line-height: 1.8;
}
.details-info {
    margin-top: 30px;
}
.details-info p {
    margin-bottom: 12px;
}
.details-info strong {
    color: #00E5FF;
}
.show-game {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background: #00E5FF;
    color: #111827;
    border-radius: 10px;
    font-weight: 600;
}
.show-game:hover {
    background: #8B5CF6;
    color: white;
}
/* end game review */

/* start loading */
.loading {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .96);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}
.loading-text {
    color: #bedeff;
    font-size: 22px;
    font-weight: 600;
    margin-left: 20px;
    letter-spacing: 2px;
}
.loader {
    --color-1: #00E5FF;
    --color-2: #8B5CF6;
    --size: 2.5px;
    width: calc(48 * var(--size));
    height: calc(48 * var(--size));
    border: calc(3 * var(--size)) solid var(--color-1);
    border-color: var(--color-1) var(--color-1) transparent transparent;
    border-radius: 50%;
    position: relative;
    animation: rotation 1.6s linear infinite;
    filter: drop-shadow(0 0 18px #00E5FF);
}
.loader::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: calc(24 * var(--size));
    height: calc(24 * var(--size));
    border: calc(3 * var(--size)) solid var(--color-2);
    border-color: var(--color-2) transparent var(--color-2) transparent;
    border-radius: 50%;
    animation: rotationBack .9s linear infinite;
    filter: drop-shadow(0 0 15px #8B5CF6);
}
@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
@keyframes rotationBack {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}
/* end loading */

/* start mediaQuery */
@media (max-width:1024px) {
    .layout {
        display: block;
    }
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        overflow: visible;
    }
    .nav-content {
        display: flex;
        align-items: stretch;
        flex-wrap:wrap;
        gap:15px;
    }
    .filters select,
    .reset-btn{
        flex:1;
    }
    .search-box {
        display: flex;
        width:100%;
        flex:0 0 100%;
    }
    .filters {
        width:100%;
        display:flex;
        gap:10px;
    }
    .games,
    .navbar,
    .details {
        padding: 15px;
    }
    .card-body {
        padding: 20px;
    }
    .details-card {
        padding: 20px;
    }
    .close-btn {
        display: block;
        border: none;
    }
    .sidebar.hide .sidebar-content {
        display: none;
    }
    .sidebar.hide .close-btn {
        display: none;
    }
    .sidebar.hide .menu-btn {
        display: block;
        border: none;
    }
}
@media (max-width:760px){
    .navbar{
        padding:15px;
    }
    .nav-content{
        flex-direction:column;
        align-items:stretch;
        gap:15px;
    }
    .filters{
        display:flex;
        gap:10px;
        width:100%;
    }
    .filters select{
        flex:1;
        min-width:0;
    }
    .reset-btn{
        white-space:nowrap;
    }
    .games,
    .details{
        padding:15px;
    }
    .sidebar{
        width:100%;
        padding:0 15px 20px;
    }
    .logo{
        display:flex;
        justify-content:center;
        align-items:center;
    }
}
/* end mediaQuery */