/* style/casino.css */

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

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

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

.page-casino__dark-bg {
  background-color: var(--page-casino-bg);
  color: var(--page-casino-text-main);
}

.page-casino__light-bg {
  background-color: #ffffff; /* Default light background for contrast */
  color: var(--page-casino-light-bg-text);
}

.page-casino__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  color: var(--page-casino-text-main);
}

.page-casino__light-bg .page-casino__section-title {
  color: var(--page-casino-light-bg-text);
}

.page-casino__section-text {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--page-casino-text-secondary);
}

.page-casino__light-bg .page-casino__section-text {
  color: var(--page-casino-light-bg-text);
}

.page-casino__highlight {
  color: var(--page-casino-gold);
  font-weight: bold;
}

/* Buttons */
.page-casino__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.page-casino__btn-primary {
  background: var(--page-casino-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: var(--page-casino-gold);
  border: 2px solid var(--page-casino-gold);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__btn-secondary:hover {
  background-color: var(--page-casino-gold);
  color: var(--page-casino-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 10px 20px 60px; /* body handles padding-top, this is for visual space */
  overflow: hidden;
  text-align: center;
}

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

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  border-radius: 15px;
  background: rgba(17, 39, 27, 0.85); /* Card BG with transparency */
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(87, 227, 141, 0.3);
  margin-top: -80px; /* Overlap with image slightly */
}

.page-casino__hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--page-casino-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 1.2rem;
  color: var(--page-casino-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* About Section */
.page-casino__about-section, .page-casino__guide-section, .page-casino__payment-section, .page-casino__support-section {
  padding: 80px 0;
  text-align: center;
}

.page-casino__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  max-width: 1000px;
  margin: 40px auto 0;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Games Section */
.page-casino__games-section, .page-casino__promotions-section, .page-casino__mobile-section, .page-casino__faq-section, .page-casino__cta-final-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-casino__game-card {
  background-color: var(--page-casino-card-bg);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  border: 1px solid var(--page-casino-border);
  display: flex;
  flex-direction: column;
}

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

.page-casino__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-casino__card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-casino__card-title a {
  color: var(--page-casino-gold);
  text-decoration: none;
}

.page-casino__card-title a:hover {
  text-decoration: underline;
}

.page-casino__card-text {
  font-size: 1rem;
  color: var(--page-casino-text-secondary);
  line-height: 1.5;
  flex-grow: 1;
}

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

.page-casino__guide-step {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  color: var(--page-casino-light-bg-text);
}

.page-casino__step-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--page-casino-deep-green);
}

.page-casino__guide-step p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-casino-light-bg-text);
}

.page-casino__guide-cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

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

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

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

.page-casino__promo-card .page-casino__card-title {
  color: var(--page-casino-text-main);
}

.page-casino__promo-card .page-casino__card-title a {
  color: var(--page-casino-gold);
}

.page-casino__view-all-promos {
  margin-top: 40px;
}

/* Payment Section */
.page-casino__payment-methods-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 600px;
  text-align: center;
}

.page-casino__payment-methods-list li {
  background-color: #ffffff;
  color: var(--page-casino-light-bg-text);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.1rem;
  border-left: 5px solid var(--page-casino-deep-green);
}

/* Mobile Section */
.page-casino__app-download-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.page-casino__qr-code {
  width: 200px;
  height: 200px;
  border: 5px solid #ffffff;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure it's treated as a block for responsive sizing */
}

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

/* Support Section */
.page-casino__support-channels {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 700px;
  text-align: center;
}

.page-casino__support-channels li {
  background-color: #ffffff;
  color: var(--page-casino-light-bg-text);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.1rem;
  border-left: 5px solid var(--page-casino-deep-green);
}

.page-casino__support-channels li a {
  color: var(--page-casino-deep-green);
  text-decoration: none;
  font-weight: bold;
}

.page-casino__support-channels li a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-casino__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-casino__faq-item {
  background-color: var(--page-casino-card-bg);
  border: 1px solid var(--page-casino-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--page-casino-text-main);
  cursor: pointer;
  background-color: var(--page-casino-deep-green);
  border-radius: 10px 10px 0 0;
}

.page-casino__faq-item[open] .page-casino__faq-question {
  border-bottom: 1px solid var(--page-casino-border);
}

.page-casino__faq-qtext {
  flex-grow: 1;
}

.page-casino__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-casino-gold);
}

.page-casino__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-casino-text-secondary);
}

.page-casino__faq-item:not([open]) .page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding-bottom: 0;
  transition: max-height 0.3s ease-out, padding-bottom 0.3s ease-out;
}

.page-casino__faq-item[open] .page-casino__faq-answer {
  max-height: 2000px; /* Large enough to show content */
  transition: max-height 0.5s ease-in, padding-bottom 0.5s ease-in;
}

.page-casino__view-all-faq {
  margin-top: 40px;
}

/* Final CTA Section */
.page-casino__cta-final-section {
  padding: 100px 0;
  background-color: var(--page-casino-deep-green);
  border-top: 5px solid var(--page-casino-gold);
}

.page-casino__final-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Global Image/Video/Button Responsive Rules */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

.page-casino video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

.page-casino__video-container, .page-casino__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__cta-buttons, .page-casino__button-group, .page-casino__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
  .page-casino__container {
    padding: 0 15px;
  }

  .page-casino__section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .page-casino__section-text {
    font-size: 1rem;
  }

  .page-casino__hero-section {
    padding: 10px 15px 40px;
    min-height: auto;
  }

  .page-casino__hero-content {
    margin-top: -60px;
    padding: 15px;
  }

  .page-casino__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-casino__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .page-casino__cta-button {
    width: 100%;
    padding: 10px 15px;
  }

  .page-casino__game-categories, .page-casino__guide-steps, .page-casino__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__about-section, .page-casino__games-section, .page-casino__guide-section, .page-casino__promotions-section, .page-casino__payment-section, .page-casino__mobile-section, .page-casino__support-section, .page-casino__faq-section, .page-casino__cta-final-section {
    padding: 50px 0;
  }

  .page-casino__card-image {
    height: 180px;
  }

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

  .page-casino__app-buttons {
    flex-direction: column;
    gap: 10px;
  }

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

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

  /* Mobile responsive overrides with !important */
  .page-casino img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important; /* Allow natural width within max-width */
    display: block !important;
  }
  
  .page-casino video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-casino__section, .page-casino__card, .page-casino__container, .page-casino__game-card, .page-casino__promo-card, .page-casino__guide-step, .page-casino__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__video-section {
    padding-top: 10px !important;
  }

  .page-casino__video-container, .page-casino__video-wrapper {
    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, .page-casino__button-group, .page-casino__btn-container,
  .page-casino__hero-cta-buttons, .page-casino__guide-cta, .page-casino__app-buttons, .page-casino__final-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Ensure vertical stacking for multiple buttons */
    gap: 10px !important;
    overflow: hidden !important;
  }
}

/* Ensure min image size in content areas */
.page-casino__game-card img, .page-casino__promo-card img, .page-casino__qr-code {
    min-width: 200px;
    min-height: 200px;
}

.page-casino__image-full-width {
    min-width: 200px;
    min-height: 200px;
}

/* No filter on images */
.page-casino img {
    filter: none;
}