/* style/game-lobby.css */

/* Variables for colors */
:root {
  --xn88-primary-dark: #0A192F;
  --xn88-accent-gold: #FFD700;
  --xn88-text-light: #FFFFFF;
  --xn88-text-dark: #0A192F;
  --xn88-background-light: #F0F2F5; /* A lighter neutral background for contrast */
  --xn88-button-hover: #E0B500; /* Slightly darker gold for hover */
}

.page-game-lobby {
  font-family: 'Arial', sans-serif;
  color: var(--xn88-text-dark); /* Default text color for light backgrounds */
  line-height: 1.6;
}

.page-game-lobby__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-game-lobby__section-title {
  font-size: 2.5em;
  color: var(--xn88-primary-dark);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-game-lobby__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--xn88-accent-gold);
  border-radius: 2px;
}

.page-game-lobby__section-title--light {
  color: var(--xn88-text-light);
}

.page-game-lobby__section-title--light::after {
  background-color: var(--xn88-text-light);
}

.page-game-lobby__text-content {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-lobby__text-content--light {
  color: var(--xn88-text-light);
}

.page-game-lobby__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1em;
  text-align: center;
  cursor: pointer;
}

.page-game-lobby__btn--primary {
  background-color: var(--xn88-accent-gold);
  color: var(--xn88-primary-dark);
  border: 2px solid var(--xn88-accent-gold);
}

.page-game-lobby__btn--primary:hover {
  background-color: var(--xn88-button-hover);
  border-color: var(--xn88-button-hover);
}

.page-game-lobby__btn--secondary {
  background-color: transparent;
  color: var(--xn88-accent-gold);
  border: 2px solid var(--xn88-accent-gold);
}

.page-game-lobby__btn--secondary:hover {
  background-color: var(--xn88-accent-gold);
  color: var(--xn88-primary-dark);
}

.page-game-lobby__btn--detail, .page-game-lobby__btn--small {
  padding: 8px 18px;
  font-size: 0.9em;
  background-color: var(--xn88-primary-dark);
  color: var(--xn88-accent-gold);
  border: 1px solid var(--xn88-primary-dark);
}

.page-game-lobby__btn--detail:hover, .page-game-lobby__btn--small:hover {
  background-color: #1A314A; /* Slightly lighter dark blue */
  color: var(--xn88-accent-gold);
}

.page-game-lobby__btn--play {
  padding: 8px 18px;
  font-size: 0.9em;
  background-color: var(--xn88-accent-gold);
  color: var(--xn88-primary-dark);
  border: 1px solid var(--xn88-accent-gold);
  margin-left: 10px;
}

.page-game-lobby__btn--play:hover {
  background-color: var(--xn88-button-hover);
  border-color: var(--xn88-button-hover);
}

.page-game-lobby__btn--download {
  background-color: var(--xn88-accent-gold);
  color: var(--xn88-primary-dark);
  border: 2px solid var(--xn88-accent-gold);
  padding: 15px 30px;
  font-size: 1.1em;
}

.page-game-lobby__btn--download:hover {
  background-color: var(--xn88-button-hover);
  border-color: var(--xn88-button-hover);
}

.page-game-lobby__btn--outline {
  background-color: transparent;
  color: var(--xn88-primary-dark);
  border: 2px solid var(--xn88-primary-dark);
}

.page-game-lobby__btn--outline:hover {
  background-color: var(--xn88-primary-dark);
  color: var(--xn88-text-light);
}

/* Hero Section */
.page-game-lobby__hero {
  background-color: var(--xn88-primary-dark);
  color: var(--xn88-text-light);
  padding: 100px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap-reverse; /* Image on right for desktop, top for mobile */
}

.page-game-lobby__hero-content {
  max-width: 600px;
  text-align: left;
  padding: 20px;
}

.page-game-lobby__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--xn88-accent-gold);
}

.page-game-lobby__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-game-lobby__hero-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
}

.page-game-lobby__hero-image-wrapper {
  flex-shrink: 0;
  max-width: 500px;
}

.page-game-lobby__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Introduction Section */
.page-game-lobby__introduction {
  padding: 80px 0;
  background-color: var(--xn88-background-light);
}

/* Game Categories Section */
.page-game-lobby__game-categories {
  padding: 80px 0;
  background-color: var(--xn88-primary-dark);
  color: var(--xn88-text-light);
}

.page-game-lobby__game-categories .page-game-lobby__section-title {
  color: var(--xn88-text-light);
}

.page-game-lobby__game-categories .page-game-lobby__text-content {
  color: var(--xn88-text-light);
}

.page-game-lobby__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-game-lobby__category-item {
  background-color: #1A314A; /* Slightly lighter dark blue for card backgrounds */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-game-lobby__category-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

.page-game-lobby__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-game-lobby__category-title {
  font-size: 1.5em;
  color: var(--xn88-accent-gold);
  margin-bottom: 15px;
}

.page-game-lobby__category-description {
  font-size: 0.95em;
  color: var(--xn88-text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Why Choose Section */
.page-game-lobby__why-choose {
  padding: 80px 0;
  background-color: var(--xn88-background-light);
}

.page-game-lobby__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-game-lobby__feature-item {
  background-color: var(--xn88-text-light);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-game-lobby__feature-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-game-lobby__feature-title {
  font-size: 1.4em;
  color: var(--xn88-primary-dark);
  margin-bottom: 10px;
}

.page-game-lobby__feature-description {
  font-size: 0.95em;
  color: #555;
}

/* CTA Download Section */
.page-game-lobby__cta-download {
  background-color: var(--xn88-primary-dark);
  color: var(--xn88-text-light);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-game-lobby__cta-download .page-game-lobby__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.page-game-lobby__download-image {
  max-width: 350px;
  width: 100%;
  height: auto;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Responsible Gambling Section */
.page-game-lobby__responsible-gambling {
  padding: 80px 0;
  background-color: var(--xn88-background-light);
}

/* Detail Pages Section */
.page-game-lobby__detail-pages {
  padding: 80px 0;
  background-color: var(--xn88-primary-dark);
  color: var(--xn88-text-light);
}

.page-game-lobby__detail-pages .page-game-lobby__section-title {
  color: var(--xn88-text-light);
}

.page-game-lobby__detail-pages .page-game-lobby__text-content {
  color: var(--xn88-text-light);
}

.page-game-lobby__detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-game-lobby__detail-item {
  background-color: #1A314A;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-game-lobby__detail-title {
  font-size: 1.3em;
  color: var(--xn88-accent-gold);
  margin-bottom: 15px;
}

.page-game-lobby__detail-title a {
  color: var(--xn88-accent-gold);
  text-decoration: none;
}

.page-game-lobby__detail-title a:hover {
  text-decoration: underline;
}

.page-game-lobby__detail-description {
  font-size: 0.95em;
  color: var(--xn88-text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-game-lobby__hero {
    flex-direction: column-reverse;
    padding: 60px 0;
    text-align: center;
  }

  .page-game-lobby__hero-content {
    max-width: 100%;
    text-align: center;
  }

  .page-game-lobby__hero-title {
    font-size: 2.8em;
  }

  .page-game-lobby__hero-actions {
    justify-content: center;
  }

  .page-game-lobby__hero-image-wrapper {
    max-width: 400px;
    margin-bottom: 30px;
  }

  .page-game-lobby__section-title {
    font-size: 2em;
  }

  .page-game-lobby__text-content {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-game-lobby__hero-title {
    font-size: 2.2em;
  }

  .page-game-lobby__hero-description {
    font-size: 1em;
  }

  .page-game-lobby__hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .page-game-lobby__btn {
    width: 100%;
    max-width: 300px;
  }

  .page-game-lobby__btn--play {
    margin-left: 0;
    margin-top: 10px;
  }

  .page-game-lobby__category-item, .page-game-lobby__feature-item, .page-game-lobby__detail-item {
    padding: 20px;
  }

  .page-game-lobby__category-title, .page-game-lobby__feature-title, .page-game-lobby__detail-title {
    font-size: 1.3em;
  }
}

@media (max-width: 480px) {
  .page-game-lobby__hero-title {
    font-size: 1.8em;
  }

  .page-game-lobby__section-title {
    font-size: 1.8em;
  }

  .page-game-lobby__hero-image-wrapper {
    max-width: 90%;
  }
}