/* style/arcade-games.css */

/* Base styles for the Arcade Games page */
.page-arcade-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #404040; /* Default text color for light background */
  background-color: #F3F3F3; /* Body background from shared */
}

/* Ensure proper spacing for fixed header */
.page-arcade-games__hero-section {
  padding-top: var(--header-offset, 120px);
}

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

.page-arcade-games__section-title {
  font-size: 2.5em;
  color: #025BE8;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-arcade-games__sub-title {
  font-size: 1.8em;
  color: #025BE8;
  margin-bottom: 15px;
}

.page-arcade-games__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #404040;
}

/* Hero Section */
.page-arcade-games__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  background: linear-gradient(135deg, #025BE8, #1266EC);
}

.page-arcade-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-arcade-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

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

.page-arcade-games__main-title {
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
}

.page-arcade-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

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

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

.page-arcade-games__btn-primary {
  background-color: #1266EC; /* Register color */
  color: #ffffff;
  border: 2px solid #1266EC;
}

.page-arcade-games__btn-primary:hover {
  background-color: #0d52c7;
  border-color: #0d52c7;
}

.page-arcade-games__btn-secondary {
  background-color: #E5EEFD; /* Login color */
  color: #1266EC;
  border: 2px solid #E5EEFD;
}

.page-arcade-games__btn-secondary:hover {
  background-color: #d1e0fc;
  border-color: #d1e0fc;
}

/* General Section Styling */
.page-arcade-games__light-bg {
  background-color: #F3F3F3;
  color: #404040;
  padding: 60px 0;
}

.page-arcade-games__dark-bg {
  background-color: #025BE8;
  color: #ffffff;
  padding: 60px 0;
}

.page-arcade-games__dark-bg .page-arcade-games__section-title,
.page-arcade-games__dark-bg .page-arcade-games__sub-title {
  color: #ffffff;
}

.page-arcade-games__dark-bg .page-arcade-games__section-description {
  color: #f0f0f0;
}

.page-arcade-games__dark-bg .page-arcade-games__btn-primary {
  background-color: #ffffff;
  color: #1266EC;
  border-color: #ffffff;
}

.page-arcade-games__dark-bg .page-arcade-games__btn-primary:hover {
  background-color: #e0e0e0;
  border-color: #e0e0e0;
}

.page-arcade-games__dark-bg .page-arcade-games__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-arcade-games__dark-bg .page-arcade-games__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Why Choose PHDream Section */
.page-arcade-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-arcade-games__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-arcade-games__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #025BE8;
}

.page-arcade-games__feature-text {
  font-size: 1em;
  color: #404040;
}

/* Game Categories Section */
.page-arcade-games__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.page-arcade-games__category-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.page-arcade-games__category-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}

.page-arcade-games__category-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: brightness(0) invert(1); /* Ensure icons are white on dark background */
}

.page-arcade-games__category-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-arcade-games__category-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-arcade-games__game-showcase {
  margin-top: 50px;
  text-align: center;
}

.page-arcade-games__game-list {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.page-arcade-games__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 350px;
  text-align: center;
  padding-bottom: 20px;
}

.page-arcade-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-arcade-games__game-name {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-arcade-games__play-button {
  display: inline-block;
  background-color: #1266EC;
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-arcade-games__play-button:hover {
  background-color: #0d52c7;
}

/* How to Play Section */
.page-arcade-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-arcade-games__step-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
  padding-top: 60px;
}

.page-arcade-games__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #025BE8;
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 4px solid #F3F3F3;
}

.page-arcade-games__step-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #025BE8;
}

.page-arcade-games__step-text {
  font-size: 1em;
  color: #404040;
}

.page-arcade-games__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* Mobile Experience Section */
.page-arcade-games__app-showcase {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-top: 40px;
}

.page-arcade-games__app-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-arcade-games__app-features {
  max-width: 500px;
  text-align: left;
}

.page-arcade-games__app-features ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  margin-bottom: 30px;
}

.page-arcade-games__app-features li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 1.1em;
}

/* Responsible Gaming Section */
.page-arcade-games__responsible-gaming-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  justify-content: center;
}

.page-arcade-games__responsible-gaming-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-arcade-games__responsible-gaming-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-arcade-games__responsible-gaming-text p {
  margin-bottom: 15px;
  color: #404040;
}

/* FAQ Section */
.page-arcade-games__faq-list {
  margin-top: 40px;
}

.page-arcade-games__faq-item {
  background-color: #ffffff;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-arcade-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #025BE8;
  border-bottom: 1px solid #eee;
}

.page-arcade-games__faq-question:hover {
  background-color: #f9f9f9;
}

.page-arcade-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #404040;
}

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

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

/* Final CTA Section */
.page-arcade-games__cta-final {
  text-align: center;
  padding: 80px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-arcade-games__container,
  .page-arcade-games__cta-buttons,
  .page-arcade-games__categories-grid,
  .page-arcade-games__game-list,
  .page-arcade-games__app-showcase,
  .page-arcade-games__responsible-gaming-content,
  .page-arcade-games__steps-grid {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Responsive images */
  .page-arcade-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-arcade-games__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Responsive buttons */
  .page-arcade-games__btn-primary,
  .page-arcade-games__btn-secondary,
  .page-arcade-games a[class*="button"],
  .page-arcade-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-arcade-games__section-title {
    font-size: 2em;
  }

  .page-arcade-games__sub-title {
    font-size: 1.5em;
  }

  .page-arcade-games__hero-content {
    padding: 15px;
  }

  .page-arcade-games__app-showcase {
    flex-direction: column;
    gap: 30px;
  }

  .page-arcade-games__app-features {
    text-align: center;
  }

  .page-arcade-games__app-features li {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    max-width: 300px;
  }

  .page-arcade-games__responsible-gaming-content {
    flex-direction: column;
  }

  .page-arcade-games__game-card {
    max-width: 100%;
  }
  .page-arcade-games__game-list {
    gap: 15px;
  }
}

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

  .page-arcade-games__hero-description {
    font-size: 1em;
  }

  .page-arcade-games__feature-item,
  .page-arcade-games__step-item {
    padding: 25px;
  }
}