/* style/casino.css */

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

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

.page-casino__section {
  padding: 80px 0;
  text-align: center;
}

.page-casino__dark-bg {
  background-color: #050505; /* Matches body background for consistency */
  color: #ffffff;
}

.page-casino__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast sections */
  color: #ffffff;
}

.page-casino__section-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand primary color for titles */
  font-weight: bold;
}

.page-casino__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__text-center {
  text-align: center;
}

.page-casino a {
  color: #26A9E0;
  text-decoration: none;
}

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

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-small {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow word breaking */
  box-sizing: border-box;
  max-width: 100%;
}

.page-casino__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

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

.page-casino__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
  background-color: #EA7C07; /* Login color for small buttons */
  color: #ffffff;
  border: none;
}

.page-casino__btn-small:hover {
  background-color: #c96706;
}

/* Hero Section */
.page-casino__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  position: relative;
  overflow: hidden;
}

.page-casino__hero-content {
  z-index: 1;
  position: relative;
  padding: 20px;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-casino__main-title {
  font-size: 4.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-casino__intro-text {
  font-size: 1.4em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-casino__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

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

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

.page-casino__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 450px;
  box-sizing: border-box;
}

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

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

.page-casino__card-title a {
  color: #ffffff;
  text-decoration: none;
}

.page-casino__card-title a:hover {
  color: #26A9E0;
}

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

/* Promotions Section */
.page-casino__promo-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
  text-align: left;
}

.page-casino__promo-list li {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-left: 5px solid #26A9E0;
  border-radius: 5px;
  font-size: 1.1em;
}

.page-casino__promo-banner {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 30px;
  display: block;
}

.page-casino__image-text-block {
  margin-top: 40px;
}

/* Download Section */
.page-casino__download-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-casino__download-step-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 8px;
  text-align: left;
}

.page-casino__step-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-casino__download-image-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.page-casino__download-image {
  max-width: 400px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Security Section */
.page-casino__security-features {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
  text-align: left;
}

.page-casino__security-features li {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-left: 5px solid #EA7C07; /* Orange for security highlights */
  border-radius: 5px;
  font-size: 1.1em;
}

.page-casino__security-image-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.page-casino__security-image {
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* Support Section */
.page-casino__contact-methods {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
  text-align: left;
}

.page-casino__contact-methods li {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-left: 5px solid #26A9E0;
  border-radius: 5px;
  font-size: 1.1em;
}

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

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

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  transform: rotate(45deg);
}

.page-casino__faq-answer {
  max-height: 0; /* Initial state: collapsed */
  overflow: hidden;
  padding: 0 20px; /* Adjust padding for visual appeal */
  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; /* Ensure it expands sufficiently */
  padding: 20px; /* Expanded padding */
}

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

/* Call to Action Section (CTA) */
.page-casino__cta {
  padding: 100px 0;
}

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

@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-casino__hero-section {
    min-height: 60vh;
    padding-top: var(--header-offset, 120px) !important; /* Ensure offset is applied */
  }
  .page-casino__main-title {
    font-size: 2.5em;
  }
  .page-casino__intro-text {
    font-size: 1.2em;
  }
  .page-casino__section {
    padding: 60px 0;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__container {
    padding: 20px 15px;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-small {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  /* Responsive image containers */
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-image-wrapper,
  .page-casino__download-image-wrapper,
  .page-casino__security-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-casino__game-card {
    min-height: unset;
  }

  /* Ensure content area images are not tiny */
  .page-casino img:not(.shared-header img):not(.shared-footer img) {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}

@media (max-width: 480px) {
  .page-casino__main-title {
    font-size: 2em;
  }
  .page-casino__intro-text {
    font-size: 1em;
  }
  .page-casino__section-title {
    font-size: 1.8em;
  }
  .page-casino__faq-question {
    font-size: 1.1em;
  }
}