/* style/game-lobby.css */

:root {
  --page-game-lobby-primary-color: #11A84E;
  --page-game-lobby-secondary-color: #22C768;
  --page-game-lobby-bg-color: #08160F;
  --page-game-lobby-card-bg: #11271B;
  --page-game-lobby-text-main: #F2FFF6;
  --page-game-lobby-text-secondary: #A7D9B8;
  --page-game-lobby-border-color: #2E7A4E;
  --page-game-lobby-glow-color: #57E38D;
  --page-game-lobby-gold-color: #F2C14E;
  --page-game-lobby-divider-color: #1E3A2A;
  --page-game-lobby-deep-green: #0A4B2C;
  --page-game-lobby-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-content.page-game-lobby {
  background-color: var(--page-game-lobby-bg-color);
  color: var(--page-game-lobby-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-game-lobby__section-title {
  font-size: 2.5em;
  color: var(--page-game-lobby-gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.page-game-lobby__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--page-game-lobby-text-secondary);
}

.page-game-lobby__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-game-lobby__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the background image for text readability */
}

.page-game-lobby__hero-content {
  position: relative; /* Ensure content is above the image */
  margin-top: -30vh; /* Adjust as needed to position content over the bottom part of the image */
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text readability */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-game-lobby__main-title {
  color: var(--page-game-lobby-gold-color);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.page-game-lobby__hero-description {
  font-size: 1.2em;
  color: var(--page-game-lobby-text-main);
  margin-bottom: 30px;
  line-height: 1.7;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.page-game-lobby__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-game-lobby__btn-primary,
.page-game-lobby__btn-secondary,
.page-game-lobby__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-game-lobby__btn-primary {
  background: var(--page-game-lobby-btn-gradient);
  color: #ffffff; /* White text for contrast */
  border: 2px solid var(--page-game-lobby-primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-game-lobby__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-game-lobby__btn-secondary {
  background: var(--page-game-lobby-card-bg);
  color: var(--page-game-lobby-text-main);
  border: 2px solid var(--page-game-lobby-border-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-game-lobby__btn-secondary:hover {
  background: var(--page-game-lobby-primary-color);
  border-color: var(--page-game-lobby-secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-game-lobby__btn-link {
  background: transparent;
  color: var(--page-game-lobby-gold-color);
  border: 1px solid var(--page-game-lobby-gold-color);
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-game-lobby__btn-link:hover {
  background: var(--page-game-lobby-gold-color);
  color: var(--page-game-lobby-bg-color);
}

.page-game-lobby__introduction-section,
.page-game-lobby__why-choose-section,
.page-game-lobby__faq-section {
  padding: 80px 0;
  background-color: var(--page-game-lobby-card-bg);
}

.page-game-lobby__game-categories-section,
.page-game-lobby__how-to-join-section,
.page-game-lobby__conclusion-section {
  padding: 80px 0;
  background-color: var(--page-game-lobby-bg-color);
}

.page-game-lobby__game-grid,
.page-game-lobby__features-grid,
.page-game-lobby__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-game-lobby__game-card,
.page-game-lobby__card {
  background-color: var(--page-game-lobby-card-bg);
  border: 1px solid var(--page-game-lobby-border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--page-game-lobby-text-secondary);
}

.page-game-lobby__game-card:hover,
.page-game-lobby__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-game-lobby__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--page-game-lobby-deep-green);
}

.page-game-lobby__card-title {
  font-size: 1.5em;
  color: var(--page-game-lobby-gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-lobby__card-title a {
  color: var(--page-game-lobby-gold-color);
  text-decoration: none;
}

.page-game-lobby__card-title a:hover {
  color: var(--page-game-lobby-secondary-color);
}

.page-game-lobby__card-description {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-lobby__feature-item {
  text-align: center;
  padding: 20px;
  background-color: var(--page-game-lobby-deep-green);
  border-radius: 10px;
  border: 1px solid var(--page-game-lobby-border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-game-lobby__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px var(--page-game-lobby-glow-color));
}

.page-game-lobby__feature-title {
  font-size: 1.3em;
  color: var(--page-game-lobby-gold-color);
  margin-bottom: 10px;
}

.page-game-lobby__feature-description {
  font-size: 0.95em;
  color: var(--page-game-lobby-text-secondary);
}

.page-game-lobby__step-item {
  background-color: var(--page-game-lobby-card-bg);
  padding: 30px;
}

.page-game-lobby__step-number {
  font-size: 3em;
  color: var(--page-game-lobby-primary-color);
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.page-game-lobby__step-title {
  font-size: 1.6em;
  color: var(--page-game-lobby-gold-color);
  margin-bottom: 15px;
}

.page-game-lobby__step-description {
  font-size: 1em;
  line-height: 1.7;
  color: var(--page-game-lobby-text-secondary);
  margin-bottom: 20px;
}

.page-game-lobby__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-game-lobby__faq-item {
  background-color: var(--page-game-lobby-deep-green);
  border: 1px solid var(--page-game-lobby-border-color);
  border-radius: 10px;
  overflow: hidden;
  color: var(--page-game-lobby-text-main);
}

.page-game-lobby__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--page-game-lobby-card-bg);
  color: var(--page-game-lobby-gold-color);
  font-weight: bold;
  font-size: 1.2em;
  border-bottom: 1px solid var(--page-game-lobby-border-color);
}

.page-game-lobby__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-game-lobby__faq-qtext {
  flex-grow: 1;
}

.page-game-lobby__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--page-game-lobby-primary-color);
}

.page-game-lobby__faq-item[open] .page-game-lobby__faq-toggle {
  content: "−";
}

.page-game-lobby__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--page-game-lobby-text-secondary);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-lobby__hero-content {
    margin-top: -20vh;
  }
  .page-game-lobby__section-title {
    font-size: 2em;
  }
  .page-game-lobby__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-game-lobby__hero-content {
    margin-top: -15vh;
    padding: 15px;
    border-radius: 8px;
  }
  .page-game-lobby__main-title {
    font-size: 2em;
  }
  .page-game-lobby__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-game-lobby__hero-description,
  .page-game-lobby__text-block {
    font-size: 1em;
  }
  .page-game-lobby__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-game-lobby__btn-primary,
  .page-game-lobby__btn-secondary,
  .page-game-lobby__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-lobby__game-grid,
  .page-game-lobby__features-grid,
  .page-game-lobby__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-lobby__introduction-section,
  .page-game-lobby__game-categories-section,
  .page-game-lobby__why-choose-section,
  .page-game-lobby__how-to-join-section,
  .page-game-lobby__faq-section,
  .page-game-lobby__conclusion-section {
    padding: 40px 0;
  }
  .page-game-lobby__container {
    padding: 0 15px;
  }
  /* Mobile image responsiveness */
  .page-game-lobby img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-game-lobby__hero-image,
  .page-game-lobby__card-image,
  .page-game-lobby__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: auto !important; /* Ensure images scale proportionally */
  }
  .page-game-lobby__section,
  .page-game-lobby__card,
  .page-game-lobby__container,
  .page-game-lobby__hero-section,
  .page-game-lobby__introduction-section,
  .page-game-lobby__game-categories-section,
  .page-game-lobby__why-choose-section,
  .page-game-lobby__how-to-join-section,
  .page-game-lobby__faq-section,
  .page-game-lobby__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-lobby__hero-section {
    padding-top: 10px !important; /* body already has padding-top */
  }
  .page-game-lobby__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-game-lobby__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-game-lobby__main-title {
    font-size: 1.8em;
  }
  .page-game-lobby__hero-description {
    font-size: 0.9em;
  }
  .page-game-lobby__btn-primary,
  .page-game-lobby__btn-secondary {
    padding: 12px 20px;
    font-size: 0.9em;
  }
  .page-game-lobby__section-title {
    font-size: 1.5em;
  }
  .page-game-lobby__card-title {
    font-size: 1.3em;
  }
  .page-game-lobby__faq-item summary {
    font-size: 1em;
  }
}