/* style/casino.css */

/* Base styles for the casino page content */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg-1); /* Inherit from shared.css, assumed dark */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.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: #ffc107;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-casino__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.page-casino__dark-bg {
  background-color: #007bff; /* Primary brand color for dark sections */
  color: #ffffff; /* White text for contrast */
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  overflow: hidden;
  min-height: 600px;
}

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

.page-casino__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability, no color change */
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #ffffff;
}

.page-casino__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffc107;
  font-weight: bold;
}

.page-casino__hero-description {
  font-size: 1.5em;
  margin-bottom: 40px;
  line-height: 1.4;
  color: #f0f0f0;
}

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

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background-color: #ffc107;
  color: #000000; /* Black text for contrast on yellow */
  border: 2px solid #ffc107;
}

.page-casino__btn-primary:hover {
  background-color: #e0a800;
  border-color: #e0a800;
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: #ffc107;
  border: 2px solid #ffc107;
}

.page-casino__btn-secondary:hover {
  background-color: #ffc107;
  color: #000000;
}

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

/* About Section */
.page-casino__about-section {
  background-color: var(--dark-bg-1);
  padding: 80px 0;
}

.page-casino__about-content p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
  text-align: justify;
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: #007bff;
}

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

.page-casino__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-casino__game-card:hover {
  transform: translateY(-10px);
}

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

.page-casino__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__card-title {
  font-size: 1.8em;
  color: #ffc107;
  margin-bottom: 15px;
}

.page-casino__card-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Promotions Section */
.page-casino__promotions-section {
  background-color: var(--dark-bg-1);
  padding: 80px 0;
}

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

.page-casino__promo-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

/* Security Section */
.page-casino__security-section {
  padding: 80px 0;
  background-color: #007bff;
}

.page-casino__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-casino__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
}

.page-casino__feature-title {
  font-size: 1.5em;
  color: #ffc107;
  margin-bottom: 10px;
}

.page-casino__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Guide Section */
.page-casino__guide-section {
  background-color: var(--dark-bg-1);
  padding: 80px 0;
}

.page-casino__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-casino__step-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  position: relative;
  padding-top: 60px; /* Space for number */
}

.page-casino__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffc107;
  color: #000000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 3px solid #007bff;
}

.page-casino__step-title {
  font-size: 1.6em;
  color: #ffc107;
  margin-bottom: 15px;
}

.page-casino__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Support Section */
.page-casino__support-section {
  padding: 80px 0;
  background-color: #007bff;
}

.page-casino__support-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-casino__method-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__method-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  object-fit: contain;
  display: block;
}

.page-casino__method-title {
  font-size: 1.4em;
  color: #ffc107;
  margin-bottom: 10px;
}

.page-casino__method-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* App Section */
.page-casino__app-section {
  background-color: var(--dark-bg-1);
  padding: 80px 0;
}

.page-casino__app-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.page-casino__qr-code {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border: 5px solid #ffc107;
  border-radius: 10px;
  display: block;
}

.page-casino__app-info p {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: #007bff;
}

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

.page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-casino__faq-q-text {
  font-size: 1.2em;
  color: #ffc107;
  margin: 0;
  flex-grow: 1;
}

.page-casino__faq-toggle {
  font-size: 1.8em;
  color: #ffc107;
  font-weight: bold;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

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

.page-casino__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #f0f0f0;
}

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

  .page-casino__hero-description {
    font-size: 1.3em;
  }

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

  .page-casino__game-grid,
  .page-casino__promo-grid,
  .page-casino__security-features,
  .page-casino__guide-steps,
  .page-casino__support-methods {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-casino__container {
    padding: 0 15px;
  }

  .page-casino__hero-section {
    padding: 60px 15px;
    min-height: 500px;
  }

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

  .page-casino__hero-description {
    font-size: 1.1em;
  }

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

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

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

  .page-casino__section-description {
    font-size: 1em;
    margin-bottom: 40px;
  }

  .page-casino__game-grid,
  .page-casino__promo-grid,
  .page-casino__security-features,
  .page-casino__guide-steps,
  .page-casino__support-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__feature-item,
  .page-casino__step-item,
  .page-casino__method-item,
  .page-casino__app-download {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-casino img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-casino__qr-code {
    width: 150px;
    height: 150px;
  }

  .page-casino__app-download {
    flex-direction: column;
  }

  .page-casino__faq-question {
    padding: 15px;
  }

  .page-casino__faq-q-text {
    font-size: 1.1em;
  }

  .page-casino__faq-answer {
    padding: 0 15px;
  }

  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px 15px;
  }

  /* Content area images CSS size lower bound enforcement */
  .page-casino__game-image, 
  .page-casino__promo-image, 
  .page-casino__feature-icon, 
  .page-casino__method-icon, 
  .page-casino__qr-code {
    min-width: 200px !important; /* Enforce min 200px for content images */
    min-height: 200px !important;
    width: auto !important;
    height: auto !important;
  }
  /* Specific overrides for smaller icons in the layout that are part of content */
  .page-casino__feature-icon, .page-casino__method-icon {
    width: 80px !important; /* These are decorative icons, but need to be at least 200px if they are 'content images' */
    height: 80px !important;
    min-width: unset !important; /* Override min-width for these specific icons, if they are NOT content images */
    min-height: unset !important;
    max-width: 100% !important; /* Ensure they are still responsive */
    height: auto !important;
  }
  /* Re-evaluating the icon size based on rules: "Any width or height less than 200 pixels" is forbidden. */
  /* So feature-icon and method-icon should be >= 200px as well if they are treated as content images. */
  /* If they are decorative and small, they violate the rule. I will make them larger to comply. */
  .page-casino__feature-icon, .page-casino__method-icon {
    width: 200px !important; 
    height: 200px !important;
    margin-bottom: 20px;
  }
}