/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color */
  background-color: #0A0A0A; /* Page background color */
}

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

.page-casino__section-padding {
  padding: 60px 0;
}

.page-casino__section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #F2C14E; /* Main brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-casino__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__dark-section {
  background-color: #111111; /* Card BG for dark sections */
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for light button */
  border: 2px solid transparent;
}

.page-casino__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-casino__btn-secondary {
  background: transparent;
  color: #FFD36B; /* Glow color for text */
  border: 2px solid #3A2A12; /* Border color */
}

.page-casino__btn-secondary:hover {
  background: #3A2A12; /* Border color as hover background */
  color: #FFF6D6;
  transform: translateY(-2px);
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

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

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-casino__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-casino__hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  color: #F2C14E; /* Main brand color for H1 */
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-casino__hero-description {
  font-size: 20px;
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino__feature-card,
.page-casino__promo-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__feature-icon,
.page-casino__promo-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-casino__feature-title,
.page-casino__promo-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFD36B; /* Glow color for titles */
  margin-bottom: 15px;
}

.page-casino__feature-description,
.page-casino__promo-description {
  font-size: 16px;
  color: #FFF6D6;
}

/* Game Categories */
.page-casino__game-category {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__game-category-title {
  font-size: 32px;
  font-weight: 700;
  color: #F2C14E;
  margin-bottom: 25px;
}

.page-casino__game-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 30px;
  object-fit: cover;
}

.page-casino__game-category-description {
  font-size: 17px;
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile Section */
.page-casino__mobile-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-casino__mobile-text {
  flex: 1;
  text-align: left;
}

.page-casino__mobile-text .page-casino__text-block {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-casino__mobile-text .page-casino__cta-buttons {
  justify-content: flex-start;
}

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

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

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

.page-casino__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #111111;
  color: #FFF6D6;
  font-size: 19px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
  background-color: #1A1A1A;
}

.page-casino__faq-toggle {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #F2C14E;
}

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

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

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

.page-casino__faq-answer .page-casino__text-block {
  text-align: left;
  font-size: 16px;
  color: #FFF6D6;
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-casino__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-casino__hero-title {
    font-size: clamp(32px, 4.5vw, 56px);
  }
  .page-casino__hero-description {
    font-size: 18px;
  }
  .page-casino__mobile-content {
    flex-direction: column;
    text-align: center;
  }
  .page-casino__mobile-text {
    text-align: center;
  }
  .page-casino__mobile-text .page-casino__text-block {
    text-align: center;
  }
  .page-casino__mobile-text .page-casino__cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-casino__section-padding {
    padding: 40px 0;
  }
  .page-casino__container {
    padding: 0 15px;
  }
  .page-casino__hero-section {
    padding-bottom: 40px;
  }
  .page-casino__hero-image-wrapper {
    margin-bottom: 15px;
  }
  .page-casino__hero-title {
    font-size: clamp(28px, 6vw, 40px);
    margin-bottom: 15px;
  }
  .page-casino__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-casino__section-title {
    font-size: clamp(24px, 5vw, 36px);
    margin-bottom: 30px;
  }
  .page-casino__text-block {
    font-size: 15px;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

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

  /* Ensure containers with images are responsive */
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__game-category,
  .page-casino__feature-card,
  .page-casino__promo-card,
  .page-casino__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific adjustments for sections that have padding 0 on desktop */
  .page-casino__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-casino__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-casino__hero-image-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-casino__faq-question,
  .page-casino__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  /* Ensure no horizontal scroll for any content */
  .page-casino {
    overflow-x: hidden;
  }
  .page-casino__mobile-image-wrapper {
    padding: 0 15px;
  }

  .page-casino__game-category,
  .page-casino__feature-card,
  .page-casino__promo-card {
    padding: 25px 15px;
  }
  .page-casino__game-category-title {
    font-size: 26px;
    margin-bottom: 20px;
  }
  .page-casino__feature-title,
  .page-casino__promo-title {
    font-size: 20px;
  }
  .page-casino__faq-question {
    font-size: 17px;
  }
}