/* style/game-hall.css */

/* Custom Variables based on provided palette */
:root {
  --page-game-hall-bg: #08160F;
  --page-game-hall-card-bg: #11271B;
  --page-game-hall-text-main: #F2FFF6;
  --page-game-hall-text-secondary: #A7D9B8;
  --page-game-hall-border: #2E7A4E;
  --page-game-hall-glow: #57E38D;
  --page-game-hall-gold: #F2C14E;
  --page-game-hall-divider: #1E3A2A;
  --page-game-hall-deep-green: #0A4B2C;
  --page-game-hall-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page content */
.page-game-hall {
  background-color: var(--page-game-hall-bg);
  color: var(--page-game-hall-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 50px; /* Add some padding at the bottom */
}

/* Section styling */
.page-game-hall__hero-section,
.page-game-hall__video-section,
.page-game-hall__game-showcase,
.page-game-hall__guide-section,
.page-game-hall__promotions-section,
.page-game-hall__why-choose-section,
.page-game-hall__faq-section,
.page-game-hall__cta-final {
  padding: 60px 20px;
  max-width: 1400px; /* Max width for content */
  margin: 0 auto;
  box-sizing: border-box;
}

/* Specific padding for sections */
.page-game-hall__hero-section {
  padding-top: 10px; /* body handles --header-offset, this is for visual spacing */
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden; /* For any potential overflow from glow effects */
}

.page-game-hall__hero-image {
  width: 100%;
  max-width: 1920px; /* Actual display width can be smaller, but request size is large */
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-game-hall__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-game-hall__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: bold;
  color: var(--page-game-hall-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Subtle gold glow */
}

.page-game-hall__hero-description {
  font-size: 1.2rem;
  color: var(--page-game-hall-text-secondary);
  margin-bottom: 40px;
}

.page-game-hall__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--page-game-hall-gold);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-game-hall__section-subtitle {
  font-size: 1.1rem;
  color: var(--page-game-hall-text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-game-hall__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-game-hall__btn-primary,
.page-game-hall__btn-secondary,
.page-game-hall__btn-small,
.page-game-hall__btn-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap; /* Prevent text wrapping by default */
  word-wrap: normal;
  box-sizing: border-box;
}

.page-game-hall__btn-primary {
  background: var(--page-game-hall-btn-gradient);
  color: var(--page-game-hall-text-main); /* White text on dark button */
  border: none;
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-game-hall__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
  opacity: 0.9;
}

.page-game-hall__btn-secondary {
  background: transparent;
  color: var(--page-game-hall-gold); /* Gold text on transparent button */
  border: 2px solid var(--page-game-hall-gold);
}

.page-game-hall__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-3px);
  color: var(--page-game-hall-gold);
}

.page-game-hall__btn-small {
  background: var(--page-game-hall-btn-gradient);
  color: var(--page-game-hall-text-main);
  border: none;
  padding: 10px 20px;
  font-size: 0.95rem;
  border-radius: 6px;
  white-space: normal; /* Allow wrapping for small buttons */
  word-wrap: break-word;
}

.page-game-hall__btn-small:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-game-hall__btn-inline {
  background: transparent;
  color: var(--page-game-hall-glow); /* Greenish glow text for inline links */
  border: 1px solid var(--page-game-hall-glow);
  padding: 8px 15px;
  font-size: 0.9rem;
  border-radius: 5px;
  margin-top: 10px;
  display: inline-block;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-hall__btn-inline:hover {
  background: rgba(87, 227, 141, 0.1);
  color: var(--page-game-hall-text-main);
}

/* Video Section */
.page-game-hall__video-section {
  text-align: center;
  padding-top: 10px; /* Small top padding as body handles header offset */
}

.page-game-hall__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  width: 100%; /* Explicitly set width to 100% for desktop and mobile */
  background: var(--page-game-hall-card-bg);
  border-radius: 10px;
  margin: 0 auto 30px auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--page-game-hall-border);
}

.page-game-hall__video-wrapper .page-game-hall__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block; /* Make the whole area clickable */
  cursor: pointer;
}

.page-game-hall__video-wrapper .page-game-hall__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px; /* Ensure video itself has rounded corners */
}

.page-game-hall__video-description {
  color: var(--page-game-hall-text-secondary);
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Game Showcase */
.page-game-hall__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}