/* style/casino.css */

/* Body background is white by default from shared.css, so text should be dark */
.page-casino {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
}

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

/* Section spacing and container */
.page-casino__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-casino__section-title {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 20px;
  color: #26A9E0;
  font-weight: bold;
}

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

/* Hero Section */
.page-casino__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #26A9E0, #1a7bb7);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-casino__hero-image {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 100%; /* Ensure img takes full width of its container */
  height: auto;
}

.page-casino__hero-content {
  max-width: 900px;
}

.page-casino__main-title {
  font-size: clamp(32px, 5vw, 48px); /* H1 font size using clamp */
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
}

.page-casino__description {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.7;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.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: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-casino__btn-secondary:hover {
  background: #e0f4ff;
  color: #1a7bb7;
  border-color: #1a7bb7;
}

.page-casino__btn-small {
  padding: 10px 20px;
  font-size: 16px;
}

/* Intro Section */
.page-casino__intro-section {
  background: #ffffff;
  color: #333333;
}

/* Features Section */
.page-casino__features-section {
  background: linear-gradient(135deg, #26A9E0, #1a7bb7);
  color: #ffffff;
}

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

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

.page-casino__feature-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

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

.page-casino__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-casino__card-text {
  font-size: 15px;
  color: #f0f0f0;
}

/* Games List Section */
.page-casino__games-list {
  background: #f5f5f5;
  color: #333333;
}

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

.page-casino__game-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-casino__game-card .page-casino__card-title {
  color: #26A9E0;
}

.page-casino__game-card .page-casino__card-text {
  color: #555555;
  flex-grow: 1;
}

.page-casino__game-image {
  width: 100%;
  height: 220px; /* Fixed height for game images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Guide Section */
.page-casino__guide-section {
  background: linear-gradient(135deg, #1a7bb7, #26A9E0);
  color: #ffffff;
}

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

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

.page-casino__step-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  color: #ffffff;
}

.page-casino__step-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: #EA7C07;
  color: #ffffff;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-casino__step-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-casino__step-text {
  font-size: 15px;
  color: #f0f0f0;
}

/* Mobile App Section */
.page-casino__mobile-app-section {
  background: #ffffff;
  color: #333333;
}

.page-casino__mobile-app-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  text-align: left;
  gap: 40px;
}

.page-casino__mobile-app-text {
  flex: 1;
  min-width: 300px;
}

.page-casino__mobile-app-text .page-casino__section-title {
  text-align: left;
}

.page-casino__mobile-app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 250px;
}

.page-casino__mobile-app-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Security Section */
.page-casino__security-section {
  background: linear-gradient(135deg, #26A9E0, #1a7bb7);
  color: #ffffff;
}

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

.page-casino__security-section .page-casino__text-block {
  color: #f0f0f0;
}

/* Promotions Section */
.page-casino__promotions-section {
  background: #f5f5f5;
  color: #333333;
}

/* FAQ Section */
.page-casino__faq-section {
  background: linear-gradient(135deg, #1a7bb7, #26A9E0);
  color: #ffffff;
}

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

.page-casino__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

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

.page-casino__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  color: #ffffff;
}

.page-casino__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-casino__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-casino__faq-toggle {
  font-size: 24px;
  line-height: 1;
  width: 30px;
  text-align: center;
}

.page-casino__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 16px;
  color: #f0f0f0;
}

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

/* Final CTA Section */
.page-casino__cta-final {
  background: #ffffff;
  color: #333333;
}

.page-casino__cta-final .page-casino__section-title {
  color: #26A9E0;
}

.page-casino__cta-final .page-casino__cta-content {
  max-width: 900px;
}

/* Dark/Light Background Classes for Contrast */
.page-casino__dark-bg {
  color: #ffffff; /* Deep background, light text */
}

.page-casino__light-bg {
  color: #333333; /* Light background, dark text */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-casino__hero-image-wrapper {
    max-width: 900px;
  }
}

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

  .page-casino__hero-section {
    padding: 40px 15px 40px;
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-casino__main-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .page-casino__description {
    font-size: 16px;
  }

  .page-casino__section-title {
    font-size: clamp(24px, 7vw, 32px);
  }

  .page-casino__text-block {
    font-size: 15px;
  }

  .page-casino__cta-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: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-casino__mobile-app-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .page-casino__mobile-app-text .page-casino__section-title {
    text-align: center;
  }

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

  .page-casino__faq-item summary {
    font-size: 16px;
    padding: 15px 20px;
  }

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

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

  /* Ensure all containers are responsive */
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-image-wrapper,
  .page-casino__feature-card,
  .page-casino__game-card,
  .page-casino__step-item,
  .page-casino__mobile-app-content,
  .page-casino__mobile-app-text,
  .page-casino__mobile-app-image-wrapper,
  .page-casino__faq-item,
  .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;
  }
  
  .page-casino__feature-card, .page-casino__game-card, .page-casino__step-item {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Video specific mobile adaptations if any video elements are present */
  .page-casino video,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-casino__video-section,
  .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;
  }
}

@media (max-width: 480px) {
  .page-casino__feature-grid,
  .page-casino__game-cards-grid,
  .page-casino__guide-steps {
    grid-template-columns: 1fr;
  }
}