* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #0f0f0f;
}

.container {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 12px;
    margin-top: 8px;
    color: white;
}

.badge.hot {
    background: linear-gradient(45deg, #ff512f, #dd2476);
}

header {
    background: radial-gradient(circle at top, #111827, #000);
    padding: 24px 10px;
    text-align: center;
    position: relative;
    border-bottom: 2px solid #22c55e;
}

header::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #22c55e, transparent);
}

header h1 {
    font-size: 34px;
    color: #22c55e;
    text-shadow: 0 0 12px rgba(34,197,94,0.8);
    letter-spacing: 3px;
}

nav {
    background: #020617;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav ul li a {
    color: #cbd5f5;
    text-decoration: none;
    padding: 12px 0;
    position: relative;
    font-weight: 500;
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #22c55e;
    transition: 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: #22c55e;
}


/* MAIN */
.container {
    display: flex;
    gap: 20px;
    padding: 20px;
}

/* GAME GRID */
.games {
    width: 70%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* GAME CARD */
.game-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}


/* IMAGE FIX – CHÌA KHÓA */
.game-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
}

.game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* TEXT */
.game-card h3 {
    margin-top: 10px;
    font-size: 18px;
}

.game-card p {
    font-size: 14px;
    color: black;
    margin: 5px 0;
}

/* BUTTON */
.game-card button {
    margin-top: 10px;
    padding: 8px 14px;
    background: #0aa36c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.game-card button:hover {
    background: #087a51;
}

/* SIDEBAR */
aside {
    width: 30%;
    background: black;
    color: white;
    padding: 20px;
    border-radius: 10px;
}

/* FOOTER */
footer {
    display: flex;
    background: black;
    color: white;
    margin-top: 20px;
}

footer div {
    width: 33.33%;
    padding: 15px;
    text-align: center;
}
