/* style/arcade-games.css */

:root {
  --niceph-primary-color: #FFD700;
  --niceph-secondary-color: #1A1A1A;
  --niceph-text-light: #ffffff;
  --niceph-text-dark: #333333;
  --niceph-bg-light: #f5f5f5;
  --niceph-bg-dark: #1A1A1A;
  --niceph-border-color: #e0e0e0;
  --header-offset: 120px; /* Default for desktop */
}

/* Base styles for the page */
.page-arcade-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--niceph-text-dark); /* Default text color for light backgrounds */
  background-color: var(--niceph-bg-light); /* Default light background */
  padding-top: var(--header-offset); /* Ensure content is not hidden by fixed header */
}

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

/* Typography */
.page-arcade-games__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--niceph-text-light);
  text-align: center;
  margin-bottom: 15px;
}

.page-arcade-games__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--niceph-primary-color);
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.page-arcade-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--niceph-primary-color);
  border-radius: 2px;
}

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

.page-arcade-games__hero-description {
  font-size: 1.2em;
  text-align: center;
  color: var(--niceph-text-light);
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-arcade-games__btn-primary:hover {
  background-color: darken(var(--niceph-primary-color), 10%);
  border-color: darken(var(--niceph-primary-color), 10%);
  color: var(--niceph-text-light);
}

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

.page-arcade-games__btn-secondary:hover {
  background-color: var(--niceph-primary-color);
  color: var(--niceph-secondary-color);
}

.page-arcade-games__btn-link {
  color: var(--niceph-primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-arcade-games__btn-link:hover {
  color: darken(var(--niceph-primary-color), 10%);
}

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

/* Hero Section */
.page-arcade-games__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: var(--niceph-text-light);
  padding: 50px 0;
  background-color: var(--niceph-secondary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px; /* Ensure sufficient height */
}

.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;
  filter: brightness(0.5); /* Darken image for text readability */
}

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

/* About Section */
.page-arcade-games__about-section {
  padding: 80px 0;
  background-color: var(--niceph-bg-light);
}

/* Categories Section */
.page-arcade-games__categories-section {
  padding: 80px 0;
  background-color: var(--niceph-secondary-color);
  color: var(--niceph-text-light);
}

.page-arcade-games__categories-section .page-arcade-games__section-title {
  color: var(--niceph-primary-color);
}

.page-arcade-games__categories-section .page-arcade-games__section-title::after {
  background-color: var(--niceph-primary-color);
}

.page-arcade-games__categories-section .page-arcade-games__section-text {
  color: var(--niceph-text-light);
}

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

.page-arcade-games__category-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-arcade-games__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 20px;
  filter: invert(1) brightness(1.5); /* Adjust icon color for dark background */
}

.page-arcade-games__category-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--niceph-primary-color);
  margin-bottom: 15px;
}

.page-arcade-games__category-description {
  color: var(--niceph-text-light);
  margin-bottom: 20px;
}

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

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

.page-arcade-games__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-arcade-games__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-arcade-games__game-card h3 {
  font-size: 1.4em;
  color: var(--niceph-secondary-color);
  margin: 20px 20px 10px;
}

.page-arcade-games__game-provider {
  font-size: 0.9em;
  color: #666;
  margin: 0 20px 15px;
}

.page-arcade-games__btn-play {
  display: block;
  background-color: var(--niceph-primary-color);
  color: var(--niceph-secondary-color);
  padding: 12px 20px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  transition: background-color 0.3s ease;
  margin-top: auto;
}

.page-arcade-games__btn-play:hover {
  background-color: darken(var(--niceph-primary-color), 10%);
}

.page-arcade-games__view-all-wrapper {
  text-align: center;
  margin-top: 60px;
}

/* How to Play Section */
.page-arcade-games__how-to-play-section {
  padding: 80px 0;
  background-color: var(--niceph-secondary-color);
  color: var(--niceph-text-light);
}

.page-arcade-games__how-to-play-section .page-arcade-games__section-title {
  color: var(--niceph-primary-color);
}

.page-arcade-games__how-to-play-section .page-arcade-games__section-title::after {
  background-color: var(--niceph-primary-color);
}

.page-arcade-games__how-to-play-section .page-arcade-games__section-text {
  color: var(--niceph-text-light);
}

.page-arcade-games__step-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.page-arcade-games__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-arcade-games__step-title {
  font-size: 1.8em;
  color: var(--niceph-primary-color);
  margin-bottom: 15px;
}

.page-arcade-games__step-description {
  color: var(--niceph-text-light);
}

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

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

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

.page-arcade-games__feature-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade-games__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-arcade-games__feature-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 20px;
}

.page-arcade-games__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--niceph-secondary-color);
  margin-bottom: 15px;
}

.page-arcade-games__feature-description {
  color: var(--niceph-text-dark);
}

/* Game Providers Section */
.page-arcade-games__game-providers-section {
  padding: 80px 0;
  background-color: var(--niceph-secondary-color);
  color: var(--niceph-text-light);
}

.page-arcade-games__game-providers-section .page-arcade-games__section-title {
  color: var(--niceph-primary-color);
}

.page-arcade-games__game-providers-section .page-arcade-games__section-title::after {
  background-color: var(--niceph-primary-color);
}

.page-arcade-games__game-providers-section .page-arcade-games__section-text {
  color: var(--niceph-text-light);
}

.page-arcade-games__providers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columns for desktop */
  gap: 20px;
  margin-top: 50px;
  justify-items: center;
  align-items: center;
}

.page-arcade-games__provider-item {
  width: 100%;
  max-width: 167px; /* Fixed width for game provider logos */
  height: 127px; /* Fixed height for game provider logos */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.page-arcade-games__provider-item:hover {
  transform: scale(1.05);
}

.page-arcade-games__provider-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px; /* Internal padding for logos */
  filter: brightness(0.9) grayscale(0.2); /* Slight desaturation for integration */
}

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

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

.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 25px;
  cursor: pointer;
  background-color: var(--niceph-primary-color);
  color: var(--niceph-secondary-color);
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-arcade-games__faq-question:hover {
  background-color: darken(var(--niceph-primary-color), 5%);
}

.page-arcade-games__faq-title {
  margin: 0;
  font-size: 1.1em;
  color: var(--niceph-secondary-color);
}

.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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #fcfcfc;
  color: var(--niceph-text-dark);
}

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

.page-arcade-games__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: var(--niceph-text-dark);
}

/* CTA Banner Section */
.page-arcade-games__cta-banner-section {
  padding: 80px 0;
  background-color: var(--niceph-primary-color);
  color: var(--niceph-secondary-color);
  text-align: center;
}

.page-arcade-games__cta-banner-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-arcade-games__cta-banner-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--niceph-secondary-color);
}

.page-arcade-games__cta-banner-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: var(--niceph-secondary-color);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-arcade-games__providers-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 columns on tablets */
  }
}

@media (max-width: 768px) {
  :root {
    --header-offset: 100px; /* Adjust for mobile header height */
  }
  .page-arcade-games {
    font-size: 15px;
  }

  .page-arcade-games__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

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

  .page-arcade-games__hero-description,
  .page-arcade-games__section-text,
  .page-arcade-games__cta-banner-description {
    font-size: 1em;
  }

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

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

  .page-arcade-games__hero-section {
    padding: 30px 0;
    min-height: 500px;
  }

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

  .page-arcade-games__about-section,
  .page-arcade-games__categories-section,
  .page-arcade-games__featured-games-section,
  .page-arcade-games__how-to-play-section,
  .page-arcade-games__why-choose-section,
  .page-arcade-games__game-providers-section,
  .page-arcade-games__faq-section,
  .page-arcade-games__cta-banner-section {
    padding: 50px 0;
  }

  .page-arcade-games__category-grid,
  .page-arcade-games__game-grid,
  .page-arcade-games__step-list,
  .page-arcade-games__feature-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-arcade-games__providers-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
  }

  .page-arcade-games__provider-item {
    max-width: 100%;
    width: 100%;
  }

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

  /* Mobile image and container responsiveness */
  .page-arcade-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-arcade-games__container,
  .page-arcade-games__category-card,
  .page-arcade-games__game-card,
  .page-arcade-games__step-item,
  .page-arcade-games__feature-card,
  .page-arcade-games__provider-item,
  .page-arcade-games__faq-item,
  .page-arcade-games__cta-banner-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-arcade-games__hero-section {
    padding-top: var(--header-offset, 100px) !important; 
  }
}

@media (max-width: 480px) {
  .page-arcade-games__providers-grid {
    grid-template-columns: 1fr; /* 1 column on smaller mobiles */
  }
}

/* Contrast Fixes */
.page-arcade-games__dark-bg {
  color: var(--niceph-text-light);
  background: var(--niceph-secondary-color);
}

.page-arcade-games__light-bg {
  color: var(--niceph-text-dark);
  background: var(--niceph-bg-light);
}

.page-arcade-games__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-arcade-games__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}