/* === CÀI ĐẶT CHUNG === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #1e1e2f;
  color: #f5f5f5;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}
/* === HIỆU ỨNG CHUNG === */
.hover-glow {
  transition: 0.3s;
}

/* Khi hover vào phần tử */
.hover-glow:hover {
  transform: translateY(-5px);
  border-color: #ff7b00 !important;
  box-shadow: 0 0 15px #ff7b00;
}

/* === HEADER & MENU === */
header {
  background: linear-gradient(90deg, #5d26c1, #a17fe0);
  color: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  color: #ffb347;
  font-weight: 700;
  font-size: 26px;
}


nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: 0.3s;
  font-weight: 500;
}

nav a:hover,
nav a.active {
  background: #ffb347;
  color: #1e1e2f;
}

/* === HERO (Banner) === */
.hero {
  background: linear-gradient(120deg, #3a0ca3, #7209b7);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
  color: #ffb347;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.hero p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #f1f1f1;
}

/* === NÚT === */
.btn {
  display: inline-block;
  background: #ff7b00;
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  transition: 0.3s;
  text-decoration: none;
  font-weight: 600;
}

.btn:hover {
  background: #ffb347;
  color: #1e1e2f;
}

/* === DANH SÁCH GAME === */
.featured-games {
  padding: 40px 0;
}

.featured-games h2 {
  text-align: center;
  color: #ffb347;
  margin-bottom: 25px;
  font-size: 28px;
}

.game-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.game-card {
  background: #2a2a3d;
  border: 1px solid #444;
  border-radius: 8px;
  text-align: center;
  width: 300px;
  padding: 15px;
  transition: 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: #ff7b00;
  box-shadow: 0 0 12px #ff7b00;
}

.game-card img {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
}

/* === FORM (Đăng nhập, đăng ký) === */
.form-container {
  background: #2a2a3d;
  padding: 25px;
  margin: 40px auto;
  border: 1px solid #444;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.form-container h2 {
  text-align: center;
  color: #ffb347;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #ffb347;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #666;
  border-radius: 5px;
  background: #1e1e2f;
  color: #fff;
  transition: 0.3s;
}

.form-group input:focus {
  border-color: #ff7b00;
  outline: none;
}

/* === GIỚI THIỆU === */
.about-section {
  background: #2a2a3d;
  padding: 25px;
  margin: 40px auto;
  border: 1px solid #444;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.about-section img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #ff7b00;
  object-fit: cover;
}

.about-info h3 {
  color: #ffb347;
}

/* === FOOTER === */
footer {
  background: linear-gradient(90deg, #3a0ca3, #7209b7);
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
  font-size: 14px;
  border-top: 2px solid #ff7b00;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .about-section {
    flex-direction: column;
    text-align: center;
  }

  .game-grid {
    flex-direction: column;
    align-items: center;
  }
}
