/* style/game-lobby.css */

:root {
  --primary-color: #FFD700;
  --secondary-color: #1A1A2E;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-light: #f8f9fa;
  --background-dark: #1A1A2E;
  --border-color: #e0e0e0;
}

/* Fixed navbar spacing for the first content module after hero */
.page-game-lobby__section--intro {
  padding-top: 120px; /* Desktop */
}

@media (max-width: 768px) {
  .page-game-lobby__section--intro {
    padding-top: 100px; /* Mobile */
  }
}

/* Base styles for the game lobby page */
.page-game-lobby {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Inherited from shared.css, assuming dark */
}

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

.page-game-lobby__section {
  padding: 60px 0;
  text-align: center;
}

.page-game-lobby__section--intro {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-game-lobby__section--quick-access,
.page-game-lobby__section--promotions,
.page-game-lobby__section--faq {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-game-lobby__section--games,
.page-game-lobby__section--security,
.page-game-lobby__section--blog {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-game-lobby__main-title {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-game-lobby__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-game-lobby__text-block {
  font-size: 1.1em;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-lobby__text-block--center {
  text-align: center;
}

.page-game-lobby__btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-game-lobby__btn--primary {
  background-color: var(--primary-color);
  color: var(--text-dark);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.page-game-lobby__btn--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.6);
}

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

.page-game-lobby__btn--secondary:hover {
  background-color: var(--primary-color);
  color: var(--background-dark);
  transform: translateY(-2px);
}

.page-game-lobby__btn--small-faq {
  padding: 8px 20px;
  font-size: 0.9em;
}

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

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

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

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

/* Products Showcase Section */
.page-game-lobby__products-section {
  width: 100%;
  padding: 60px 20px;
  background: var(--background-dark); /* Dark background for products section */
}

.page-game-lobby__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* Desktop: 6 columns (4+2) */
  gap: 20px;
}

.page-game-lobby__products-grid {
  display: grid;
  gap: 20px;
}

.page-game-lobby__products-grid--small {
  grid-template-columns: repeat(4, 1fr);
}

.page-game-lobby__products-grid--large {
  grid-template-columns: repeat(2, 1fr);
}

.page-game-lobby__product-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--background-light);
  border: 3px solid var(--primary-color); /* Golden border */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-game-lobby__product-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

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

/* Quick Access Links */
.page-game-lobby__links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-game-lobby__link-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-light);
  text-align: left;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-game-lobby__link-card:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.page-game-lobby__link-card-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-game-lobby__link-card-desc {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

/* Game Categories */
.page-game-lobby__game-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

.page-game-lobby__game-card {
  display: flex;
  background-color: var(--background-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
  border: 1px solid var(--border-color);
}

.page-game-lobby__game-card-image {
  width: 40%;
  height: auto;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.page-game-lobby__game-card-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-game-lobby__game-card-title {
  font-size: 2em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 15px;
}

.page-game-lobby__game-card-desc {
  font-size: 1.05em;
  color: var(--text-dark);
  margin-bottom: 20px;
}

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

.page-game-lobby__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid rgba(255, 215, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-game-lobby__promo-card:hover {
  transform: translateY(-8px);
}

.page-game-lobby__promo-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-game-lobby__promo-card-content {
  padding: 25px;
}

.page-game-lobby__promo-card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-game-lobby__promo-card-desc {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

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

.page-game-lobby__feature-item {
  background-color: var(--background-light);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-dark);
  transition: transform 0.3s ease;
}

.page-game-lobby__feature-item:hover {
  transform: translateY(-8px);
}

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

.page-game-lobby__feature-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-game-lobby__feature-desc {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 0;
}

/* FAQ Section */
.page-game-lobby__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-lobby__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-game-lobby__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-game-lobby__faq-item.active .page-game-lobby__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 5px 5px;
  color: var(--text-light);
  text-align: left;
}

.page-game-lobby__faq-answer p {
  margin-bottom: 10px;
}

.page-game-lobby__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  text-align: left;
}

.page-game-lobby__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
}

.page-game-lobby__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

.page-game-lobby__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-game-lobby__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--primary-color);
  border-radius: 50%;
}

.page-game-lobby__faq-item.active .page-game-lobby__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

/* Blog Section */
.page-game-lobby__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-lobby__blog-card {
  background-color: var(--background-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.page-game-lobby__blog-card:hover {
  transform: translateY(-8px);
}

.page-game-lobby__blog-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-game-lobby__blog-card-content {
  padding: 25px;
  color: var(--text-dark);
}

.page-game-lobby__blog-card-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-game-lobby__blog-card-title a {
  color: var(--primary-color);
  text-decoration: none;
}

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

.page-game-lobby__blog-card-meta {
  font-size: 0.85em;
  color: #666;
  margin-bottom: 15px;
}

.page-game-lobby__blog-card-excerpt {
  font-size: 0.95em;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.page-game-lobby__view-all-button {
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-lobby__products-container {
    grid-template-columns: 1fr; /* Mobile: two grids stack vertically */
  }
  
  .page-game-lobby__products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-game-lobby__game-card {
    flex-direction: column;
  }

  .page-game-lobby__game-card-image {
    width: 100%;
    height: 250px;
  }

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

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

@media (max-width: 768px) {
  .page-game-lobby__hero-section {
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-game-lobby__hero-image img {
    width: 100% !important;
    height: auto !important;
  }

  /* All images responsive */
  .page-game-lobby img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* All containers with images responsive */
  .page-game-lobby__section,
  .page-game-lobby__card,
  .page-game-lobby__container,
  .page-game-lobby__promo-card,
  .page-game-lobby__feature-item,
  .page-game-lobby__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-lobby__section {
    padding: 40px 0;
  }

  .page-game-lobby__container {
    padding: 0 15px;
  }

  .page-game-lobby__main-title {
    font-size: 2.2em;
  }

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

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

  .page-game-lobby__products-section {
    padding: 40px 15px;
  }
  
  .page-game-lobby__products-container {
    grid-template-columns: 1fr; /* Mobile: two grids stack vertically */
    gap: 15px;
  }
  
  /* Front 4 images - 2x2 grid, square */
  .page-game-lobby__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .page-game-lobby__products-grid--small .page-game-lobby__product-card {
    aspect-ratio: 1 / 1; /* Square */
  }
  
  .page-game-lobby__products-grid--small .page-game-lobby__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1; /* Square */
  }
  
  /* Back 2 large images - each on a new line, square */
  .page-game-lobby__products-grid--large {
    grid-template-columns: 1fr; /* Each card on a new line */
    gap: 15px;
  }
  
  .page-game-lobby__products-grid--large .page-game-lobby__product-card {
    aspect-ratio: 1 / 1; /* Square */
  }
  
  .page-game-lobby__products-grid--large .page-game-lobby__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1; /* Square */
  }

  .page-game-lobby__links-grid,
  .page-game-lobby__promotions-grid,
  .page-game-lobby__features-grid,
  .page-game-lobby__blog-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-game-lobby__game-card-title {
    font-size: 1.5em;
  }

  .page-game-lobby__game-card-desc {
    font-size: 0.9em;
  }

  .page-game-lobby__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-game-lobby__faq-question h3 {
    font-size: 1.1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-game-lobby__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-game-lobby__faq-answer {
    padding: 0 15px;
  }
  
  .page-game-lobby__faq-item.active .page-game-lobby__faq-answer {
    padding: 15px !important;
  }
}