/* style/casino.css */

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

.page-casino {
  background-color: var(--five88-bg);
  color: var(--five88-text-main);
  font-family: Arial, sans-serif;
}

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

.page-casino__section-title {
  font-size: 2.5em;
  color: var(--five88-text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-casino__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--five88-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.page-casino__card {
  background-color: var(--five88-card-bg);
  border: 1px solid var(--five88-border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: var(--five88-text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino a[class*="button"],
.page-casino a[class*="btn"] {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background: var(--five88-button-gradient);
  color: #ffffff; /* Always white text on dark gradient */
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-casino__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: var(--five88-glow-color);
  border: 2px solid var(--five88-glow-color);
  margin-left: 15px;
}

.page-casino__btn-secondary:hover {
  background-color: var(--five88-glow-color);
  color: var(--five88-bg);
  transform: translateY(-2px);
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 80px 0; /* Small top padding, larger bottom padding */
  overflow: hidden;
  box-sizing: border-box;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Subtle darkening for text contrast, not color change */
}

.page-casino__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  position: relative;
  z-index: 2; /* Ensure content is above image wrapper if any subtle overlap */
}

.page-casino__main-title {
  font-size: 3.5em;
  color: var(--five88-text-main);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
}

.page-casino__description {
  font-size: 1.3em;
  color: var(--five88-text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

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

/* Introduction Section */
.page-casino__introduction-section {
  padding: 80px 0;
  background-color: var(--five88-deep-green);
  text-align: center;
}

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

.page-casino__feature-item {
  background-color: var(--five88-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-casino__feature-icon {
  width: 100%; /* Ensure full width within container */
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__feature-title {
  font-size: 1.5em;
  color: var(--five88-text-main);
  margin-bottom: 15px;
}

.page-casino__feature-description {
  color: var(--five88-text-secondary);
  line-height: 1.6;
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-casino__game-card {
  padding: 0; /* Image takes full width */
  overflow: hidden;
}

.page-casino__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin-bottom: 20px;
  display: block;
}

.page-casino__game-title {
  font-size: 1.4em;
  color: var(--five88-text-main);
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-casino__game-title a {
  color: inherit;
  text-decoration: none;
}

.page-casino__game-title a:hover {
  color: var(--five88-glow-color);
}

.page-casino__game-description {
  color: var(--five88-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 0 20px;
}

.page-casino__game-card .page-casino__btn-secondary {
  margin-top: 10px;
  margin-bottom: 20px;
  margin-left: 0; /* Reset margin for card buttons */
}

/* Promotions Section */
.page-casino__promo-section {
  padding: 80px 0;
  background-color: var(--five88-deep-green);
  text-align: center;
}

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

.page-casino__promo-card {
  padding: 0;
  overflow: hidden;
}

.page-casino__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin-bottom: 20px;
  display: block;
}

.page-casino__promo-title {
  font-size: 1.4em;
  color: var(--five88-text-main);
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-casino__promo-title a {
  color: inherit;
  text-decoration: none;
}

.page-casino__promo-title a:hover {
  color: var(--five88-glow-color);
}

.page-casino__promo-description {
  color: var(--five88-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 0 20px;
}

.page-casino__promo-card .page-casino__btn-primary {
  margin-top: 10px;
  margin-bottom: 20px;
}

.page-casino__cta-center {
  margin-top: 60px;
}

/* How to Play Section */
.page-casino__how-to-play-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-casino__step-item {
  padding: 30px;
}

.page-casino__step-title {
  font-size: 1.5em;
  color: var(--five88-gold-color);
  margin-bottom: 15px;
}

.page-casino__step-description {
  color: var(--five88-text-secondary);
  line-height: 1.6;
  margin-bottom: 25px;
}

.page-casino__step-item .page-casino__btn-primary {
  margin-top: 10px;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: var(--five88-deep-green);
}

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

.page-casino__faq-item {
  margin-bottom: 20px;
  text-align: left;
  padding: 0; /* Reset padding for details element */
  background-color: var(--five88-card-bg);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--five88-text-main);
  cursor: pointer;
  list-style: none; /* For details/summary */
  user-select: none;
}

.page-casino__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--five88-glow-color);
  margin-left: 20px;
  transition: transform 0.3s ease;
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
  transform: rotate(45deg); /* Rotate for minus sign */
}

.page-casino__faq-answer {
  padding: 0 30px 20px 30px;
  color: var(--five88-text-secondary);
  line-height: 1.7;
  font-size: 1.05em;
}

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

.page-casino__faq-answer a {
  color: var(--five88-glow-color);
  text-decoration: underline;
}

.page-casino__faq-answer a:hover {
  color: var(--five88-text-main);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__main-title {
    font-size: 3em;
  }

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

@media (max-width: 768px) {
  .page-casino__container {
    padding: 0 15px;
  }

  .page-casino__hero-section {
    padding: 10px 0 50px 0;
  }

  .page-casino__hero-image-wrapper {
    margin-bottom: 30px;
  }

  .page-casino__hero-content {
    padding: 0 15px;
  }

  .page-casino__main-title {
    font-size: clamp(2em, 8vw, 2.8em); /* Responsive font size */
  }

  .page-casino__description {
    font-size: 1em;
  }

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

  .page-casino__btn-secondary {
    margin-left: 0;
  }

  .page-casino__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-casino__text-block {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  .page-casino__introduction-section,
  .page-casino__games-section,
  .page-casino__promo-section,
  .page-casino__how-to-play-section,
  .page-casino__faq-section {
    padding: 60px 0;
  }

  .page-casino__features-grid,
  .page-casino__games-grid,
  .page-casino__promo-grid,
  .page-casino__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-casino__feature-icon {
    max-width: 150px;
  }

  .page-casino__game-image,
  .page-casino__promo-image {
    height: 180px;
  }

  .page-casino__game-title,
  .page-casino__promo-title {
    font-size: 1.2em;
  }

  .page-casino__game-description,
  .page-casino__promo-description {
    font-size: 0.9em;
  }

  .page-casino__cta-center {
    margin-top: 40px;
  }

  .page-casino__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-casino__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }

  /* Mobile specific image adaptation */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-image-wrapper,
  .page-casino__cta-buttons,
  .page-casino__button-group,
  .page-casino__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-casino__cta-button,
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino a[class*="button"],
  .page-casino a[class*="btn"] {
    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-casino__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
}

/* Ensure content area images are at least 200px */
.page-casino__feature-icon,
.page-casino__game-image,
.page-casino__promo-image {
  min-width: 200px;
  min-height: 200px;
}

/* No CSS filters for images */
.page-casino img {
  filter: none; /* Reset any potential filters */
}

.page-casino__hero-image {
  filter: brightness(0.7); /* Allowed for darkening, not color change */
}