/* style/arcade-games.css */

/* Variables for colors */
:root {
  --plus777-primary: #F2C14E;
  --plus777-secondary: #FFD36B;
  --plus777-card-bg: #111111;
  --plus777-bg: #0A0A0A;
  --plus777-text-main: #FFF6D6;
  --plus777-border: #3A2A12;
  --plus777-glow: #FFD36B;
  --btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  /* Shared header offset for padding-top */
  --header-offset: 100px; /* Default for desktop, adjusted in shared.css for mobile */
}

.page-arcade-games {
  font-family: 'Arial', sans-serif;
  color: var(--plus777-text-main); /* Light text for dark background */
  background-color: var(--plus777-bg);
  line-height: 1.6;
}

/* Hero Section */
.page-arcade-games__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset); /* Ensure content is below fixed header */
  background: var(--plus777-bg); /* Base background for the section */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-arcade-games__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height of the image wrapper */
  overflow: hidden;
  position: relative;
}

.page-arcade-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-arcade-games__hero-content {
  position: relative;
  padding: 40px 20px;
  max-width: 900px;
  z-index: 2;
}

.page-arcade-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: var(--plus777-primary);
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.page-arcade-games__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--plus777-text-main);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade-games__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* General Section Styling */
.page-arcade-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-arcade-games__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--plus777-primary);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-arcade-games__section-description {
  font-size: 1.1rem;
  color: var(--plus777-text-main);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Buttons */
.page-arcade-games__btn-primary,
.page-arcade-games__btn-secondary,
.page-arcade-games__btn-link {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-arcade-games__btn-primary {
  background: var(--btn-gradient);
  color: #0A0A0A; /* Dark text for light button */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-arcade-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-arcade-games__btn-secondary {
  background: transparent;
  color: var(--plus777-primary);
  border: 2px solid var(--plus777-primary);
}

.page-arcade-games__btn-secondary:hover {
  background: var(--plus777-primary);
  color: var(--plus777-bg); /* Dark text for light background */
  transform: translateY(-3px);
}

.page-arcade-games__btn-link {
  background: none;
  border: none;
  color: var(--plus777-primary);
  padding: 0;
  text-decoration: underline;
  font-size: 0.95rem;
}

.page-arcade-games__btn-link:hover {
  color: var(--plus777-secondary);
}

/* Introduction Section */
.page-arcade-games__introduction-section {
  padding: 60px 0;
  background-color: var(--plus777-bg);
}

.page-arcade-games__expandable-content {
  max-height: 400px; /* Initial height for visible content */
  overflow: hidden;
  transition: max-height 0.7s ease-out;
  margin-bottom: 20px;
  position: relative;
}

.page-arcade-games__expandable-content.collapsed {
  max-height: 200px; /* Collapsed height */
}

.page-arcade-games__expandable-content p {
  margin-bottom: 15px;
  color: var(--plus777-text-main);
  text-align: justify;
}

.page-arcade-games__load-less-button {
  display: block;
  margin: 20px auto 0 auto;
  background: var(--btn-gradient);
  color: #0A0A0A;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.3);
}

.page-arcade-games__load-less-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(242, 193, 78, 0.5);
}

.page-arcade-games__load-less-icon {
  margin-left: 8px;
}

/* Categories Section */
.page-arcade-games__categories-section {
  padding: 60px 0;
  background-color: var(--plus777-bg);
}

.page-arcade-games__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-arcade-games__category-card {
  background-color: var(--plus777-card-bg);
  border: 1px solid var(--plus777-border);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade-games__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-arcade-games__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-arcade-games__category-title {
  font-size: 1.5rem;
  color: var(--plus777-primary);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-arcade-games__category-text {
  font-size: 0.95rem;
  color: var(--plus777-text-main);
  padding: 0 15px;
  margin-bottom: 20px;
}

/* Why Choose Section */
.page-arcade-games__why-choose-section {
  padding: 60px 0;
  background-color: var(--plus777-bg);
}

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

.page-arcade-games__feature-item {
  background-color: var(--plus777-card-bg);
  border: 1px solid var(--plus777-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-arcade-games__feature-title {
  font-size: 1.4rem;
  color: var(--plus777-primary);
  margin-bottom: 10px;
}

.page-arcade-games__feature-text {
  font-size: 1rem;
  color: var(--plus777-text-main);
}

/* Get Started Section */
.page-arcade-games__get-started-section {
  padding: 60px 0;
  background-color: var(--plus777-bg);
}

.page-arcade-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-arcade-games__step-card {
  background-color: var(--plus777-card-bg);
  border: 1px solid var(--plus777-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-arcade-games__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--plus777-secondary);
  margin-bottom: 15px;
}

.page-arcade-games__step-title {
  font-size: 1.5rem;
  color: var(--plus777-primary);
  margin-bottom: 10px;
}

.page-arcade-games__step-text {
  font-size: 0.95rem;
  color: var(--plus777-text-main);
  margin-bottom: 25px;
}

/* Featured Games Section */
.page-arcade-games__featured-games-section {
  padding: 60px 0;
  background-color: var(--plus777-bg);
}

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

.page-arcade-games__game-card {
  background-color: var(--plus777-card-bg);
  border: 1px solid var(--plus777-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-arcade-games__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-arcade-games__game-title {
  font-size: 1.6rem;
  color: var(--plus777-primary);
  margin: 20px 15px 10px 15px;
}

.page-arcade-games__game-description {
  font-size: 0.95rem;
  color: var(--plus777-text-main);
  padding: 0 15px;
  margin-bottom: 25px;
}

.page-arcade-games__game-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 0 15px 20px 15px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-arcade-games__faq-section {
  padding: 60px 0;
  background-color: var(--plus777-bg);
}

.page-arcade-games__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-arcade-games__faq-item {
  background-color: var(--plus777-card-bg);
  border: 1px solid var(--plus777-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-arcade-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: var(--plus777-primary);
  font-size: 1.15rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-arcade-games__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.page-arcade-games__faq-title {
  margin: 0;
  font-size: 1.15rem;
  color: var(--plus777-primary);
}

.page-arcade-games__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--plus777-secondary);
}

.page-arcade-games__faq-item.active .page-arcade-games__faq-toggle {
  transform: rotate(45deg);
}

.page-arcade-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  color: var(--plus777-text-main);
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-arcade-games__faq-item.active .page-arcade-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 20px 25px;
}

.page-arcade-games__faq-answer p {
  margin-bottom: 0;
}

/* Call to Action Section */
.page-arcade-games__cta-section {
  padding: 60px 0;
  background-color: var(--plus777-bg);
  text-align: center;
}

.page-arcade-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* General Image Styles (for all images not explicitly styled) */
.page-arcade-games img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-arcade-games__hero-content {
    padding: 30px 15px;
  }
  .page-arcade-games__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-arcade-games__hero-description {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  /* Ensure hero padding-top is correct for mobile */
  .page-arcade-games__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-arcade-games__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 10px;
  }
  .page-arcade-games__hero-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .page-arcade-games__hero-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-arcade-games__btn-primary,
  .page-arcade-games__btn-secondary,
  .page-arcade-games__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .page-arcade-games__categories-grid,
  .page-arcade-games__features-grid,
  .page-arcade-games__steps-grid,
  .page-arcade-games__featured-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-arcade-games__category-image,
  .page-arcade-games__game-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-arcade-games__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 15px;
  }

  .page-arcade-games__section-description {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }

  .page-arcade-games__container {
    padding: 30px 15px;
  }
  
  /* Mobile image responsiveness */
  .page-arcade-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-arcade-games__section,
  .page-arcade-games__card,
  .page-arcade-games__container,
  .page-arcade-games__game-card,
  .page-arcade-games__category-card,
  .page-arcade-games__feature-item,
  .page-arcade-games__step-card,
  .page-arcade-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-arcade-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-arcade-games__hero-image-wrapper {
    max-height: 300px;
  }
  .page-arcade-games__main-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  .page-arcade-games__hero-description {
    font-size: 0.85rem;
  }
  .page-arcade-games__btn-primary,
  .page-arcade-games__btn-secondary {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}