/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

/* Container for consistent spacing */
.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section base styles */
.page-casino__section-title {
  font-size: 2.5em;
  color: #ffffff; /* Light text for dark sections */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-casino__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #f0f0f0; /* Slightly off-white for readability */
}

/* --- Hero Section --- */
.page-casino__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 600px;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
  background-color: #0a0a0a; /* Explicitly dark background for hero to match body */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Desktop header offset */
}

.page-casino__hero-content {
  flex: 1;
  padding-right: 40px;
  text-align: left;
}

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

.page-casino__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-casino__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  margin-top: 30px;
}

.page-casino__cta-buttons--center {
  justify-content: center;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Ensure padding doesn't push width */
  text-align: center;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-casino__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

.page-casino__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font color for secondary */
  border: 2px solid #C30808; /* Register/Login color for border */
}

.page-casino__btn-secondary:hover {
  background-color: #C30808;
  color: #ffffff;
}

.page-casino__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-casino__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- Intro Section --- */
.page-casino__intro-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-casino__intro-section .page-casino__section-title {
  color: #017439; /* Brand color for title on light background */
}

.page-casino__intro-section .page-casino__text-block {
  color: #333333;
}

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

.page-casino__game-category {
  margin-bottom: 60px;
}

.page-casino__game-title {
  font-size: 2em;
  color: #017439; /* Brand color */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

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

.page-casino__card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-casino__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-casino__card-heading {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439; /* Brand color */
}

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

.page-casino__card-link {
  display: inline-block;
  background-color: #C30808;
  color: #FFFF00;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__card-link:hover {
  background-color: #e00a0a;
  color: #ffffff;
}

/* --- Promotions Section --- */
.page-casino__promotions-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Light background */
  color: #333333;
}

.page-casino__promotions-section .page-casino__section-title {
  color: #017439;
}

.page-casino__promotions-section .page-casino__text-block {
  color: #333333;
}

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

.page-casino__promo-card {
  background-color: #017439; /* Brand color background for promo cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff; /* White text on brand color background */
  display: flex;
  flex-direction: column;
}

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

.page-casino__promo-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-casino__promo-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-casino__promo-description {
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* --- Guide Section --- */
.page-casino__guide-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

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

.page-casino__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__step-title {
  font-size: 1.4em;
  color: #017439; /* Brand color */
  margin-bottom: 15px;
}

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

/* --- Payments Section --- */
.page-casino__payments-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Light background */
  color: #333333;
}

.page-casino__payments-section .page-casino__section-title {
  color: #017439;
}

.page-casino__payments-section .page-casino__text-block {
  color: #333333;
}

.page-casino__payment-methods-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__payment-method-card {
  background-color: #017439; /* Brand color background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  text-align: center;
}

.page-casino__payment-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-casino__payment-image {
  max-width: 100%;
  height: 150px; /* Fixed height for payment icons */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-casino__payment-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-casino__payment-list li {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #f0f0f0;
}

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

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

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

.page-casino__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-casino__feature-title {
  font-size: 1.6em;
  color: #017439; /* Brand color */
  margin-bottom: 15px;
}

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

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

.page-casino__faq-section .page-casino__section-title {
  color: #017439;
}

.page-casino__faq-list {
  margin-top: 40px;
}

.page-casino__faq-item {
  background-color: rgba(1, 116, 57, 0.05); /* Light transparent brand color */
  border: 1px solid rgba(1, 116, 57, 0.2);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439; /* Brand color for question */
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid rgba(1, 116, 57, 0.1);
}

.page-casino__faq-item[open] .page-casino__faq-question {
  border-bottom: 1px solid rgba(1, 116, 57, 0.3);
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-casino__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: #333333;
  background-color: #ffffff;
}

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

/* Hide default details marker */
.page-casino__faq-item summary {
  list-style: none;
}
.page-casino__faq-item summary::-webkit-details-marker {
  display: none;
}

/* --- Conclusion Section --- */
.page-casino__conclusion-section {
  padding: 80px 0;
  background-color: #017439; /* Brand color background for conclusion */
  color: #ffffff;
  text-align: center;
}

.page-casino__conclusion-section .page-casino__section-title {
  color: #ffffff;
}

.page-casino__conclusion-section .page-casino__text-block {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

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

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

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

  .page-casino__hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    padding-bottom: 40px;
  }

  .page-casino__hero-content {
    padding-right: 0;
    margin-bottom: 40px;
  }

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

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

  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
    width: 100%; /* Ensure buttons take full width */
  }

  .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,
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-casino__hero-image-wrapper {
    width: 100%;
  }

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

  .page-casino__text-block {
    font-size: 0.95em;
  }

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

  .page-casino__card-image,
  .page-casino__promo-image,
  .page-casino__payment-image {
    height: auto;
    min-height: 200px; /* Ensure minimum size */
  }

  /* Force all images to be responsive */
  .page-casino img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all image containers are responsive */
  .page-casino__hero-image-wrapper,
  .page-casino__card,
  .page-casino__promo-card,
  .page-casino__payment-method-card,
  .page-casino__step-item,
  .page-casino__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}