/* style/index.css */

/* Cấu trúc chung */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Màu chữ mặc định cho nền tối */
  background-color: var(--dark-bg-1);
}

.page-index__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Padding cho phần tử đầu tiên sau header cố định */
.page-index__hero-section {
  padding-top: 0; /* HERO section không cần padding-top vì nó là ảnh full-width */
}

/* Nền tối cho các section */
.page-index__dark-section {
  background-color: var(--dark-bg-1);
  color: #f0f0f0;
  padding: 60px 0;
}

/* Nền sáng cho các section (để tạo độ tương phản) */
.page-index__light-bg {
  background-color: #1a1a1a; /* Một màu nền tối hơn một chút để tạo sự khác biệt với body */
  color: #f0f0f0;
  padding: 60px 0;
}

.page-index__light-bg h2, .page-index__light-bg h3 {
  color: #FFD700;
}

/* Tiêu đề chung */
.page-index h2 {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700; /* Màu vàng thương hiệu */
}

.page-index h3 {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
}

.page-index p {
  font-size: 16px;
  margin-bottom: 15px;
}

/* Nút chung */
.page-index__btn-primary,
.page-index__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  font-size: 16px;
}

.page-index__btn-primary {
  background-color: #FFD700;
  color: #1a1a1a;
  border: 2px solid #FFD700;
}

.page-index__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-index__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-index__btn-secondary:hover {
  background-color: #FFD700;
  color: #1a1a1a;
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
}

.page-index__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-index__hero-image {
  width: 100%;
  margin: 0;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* Logo Carousel Section */
.page-index__logo-carousel-section {
  width: 100%;
  padding: 40px 20px;
  background: #0d0d0d; /* Nền tối cho carousel */
}

.page-index__logo-carousel-container {
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.page-index__logo-carousel {
  display: flex;
  gap: 20px;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.page-index__logo-carousel::-webkit-scrollbar {
  display: none;
}

.page-index__logo-item {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  background: #2a2a2a; /* Nền tối hơn cho logo */
  border: 1px solid #3a3a3a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto;
}

.page-index__logo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.page-index__logo-item a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 15px;
  box-sizing: border-box;
  pointer-events: auto;
}

.page-index__logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Games Section */
.page-index__games-section {
  width: 100%;
  padding: 60px 20px;
  background: var(--dark-bg-1);
}

.page-index__games-container {
  max-width: 1400px;
  margin: 0 auto;
}

.page-index__games-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  align-items: start;
}

.page-index__featured-game-area {
  width: 100%;
}

.page-index__featured-game-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 20px 0;
  color: #FFD700;
  text-align: left;
}

.page-index__featured-game {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__featured-game:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.page-index__featured-game-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-index__featured-game-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.page-index__featured-game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-index__games-grid-area {
  width: 100%;
}

.page-index__games-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
}

.page-index__games-tab {
  background: none;
  border: none;
  padding: 0;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #999999;
  transition: color 0.3s ease;
  text-decoration: none;
  position: relative;
}

.page-index__games-tab:hover {
  color: #ffffff;
}

.page-index__games-tab.active {
  color: #FFD700;
  text-decoration: underline;
}

.page-index__games-tab.active + .page-index__games-tab {
  color: #ffffff;
}

.page-index__games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  display: none;
}

.page-index__games-grid.active {
  display: grid;
}

.page-index__game-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-index__game-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-index__game-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.page-index__game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-index__game-card-title {
  font-size: 14px;
  font-weight: 500;
  margin: 10px 0 10px 0;
  padding: 0 5px;
  color: #f0f0f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

/* Introduction Section */
.page-index__introduction-section {
  text-align: center;
  padding: 60px 0;
}

.page-index__introduction-title {
  margin-bottom: 20px;
}

.page-index__introduction-text {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: 17px;
  color: #e0e0e0;
}

.page-index__cta-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Quick Access Section */
.page-index__quick-access-section {
  padding: 60px 0;
  text-align: center;
}

.page-index__quick-access-title {
  margin-bottom: 20px;
}

.page-index__quick-access-description {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 17px;
  color: #e0e0e0;
}

.page-index__quick-access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.page-index__access-card {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  padding: 30px;
  text-decoration: none;
  color: #f0f0f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-index__access-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-index__access-card-title {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-index__access-card-text {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 0;
}

/* Core Games Section */
.page-index__core-games-section {
  padding: 60px 0;
}

.page-index__core-games-intro {
  max-width: 900px;
  margin: 0 auto 50px auto;
  text-align: center;
  font-size: 17px;
  color: #e0e0e0;
}

.page-index__game-category {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-index__game-category.reverse {
  flex-direction: row-reverse;
}

.page-index__game-category-image {
  flex: 1;
  max-width: 50%;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__game-category-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.page-index__game-category-content {
  flex: 1;
  max-width: 50%;
}
}