/* 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: var(--dark-bg-1); /* Assuming --dark-bg-1 is dark */
}

/* Fixed header spacing for the first content section */
.page-casino__hero-banner {
  padding-top: 120px; /* Desktop: Adjust to clear fixed header */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #FFD700, #8B0000); /* Brand colors for hero */
  color: #ffffff;
}

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

.page-casino__hero-title {
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-casino__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-casino__btn-primary {
  background: #FFD700;
  color: #8B0000; /* Ensuring contrast on primary button */
  border: 2px solid #FFD700;
}

.page-casino__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-casino__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700; /* Highlighted with brand color */
}

.page-casino__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
}

.page-casino__text-block a {
  color: #FFD700;
  text-decoration: underline;
}

.page-casino__text-block a:hover {
  color: #e6c200;
}

/* Section specific styles */
.page-casino__introduction-section,
.page-casino__why-choose-section,
.page-casino__faq-section {
  padding: 80px 0;
  background-color: #f8f9fa; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-casino__introduction-section .page-casino__section-title,
.page-casino__why-choose-section .page-casino__section-title,
.page-casino__faq-section .page-casino__section-title {
  color: #8B0000; /* Darker brand color on light background */
}

.page-casino__game-types-section,
.page-casino__promotions-section,
.page-casino__contact-section {
  padding: 80px 0;
  background-color: var(--dark-bg-1); /* Dark background */
  color: #ffffff; /* Light text */
}

/* Game Grid */
.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: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-casino__game-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  flex-grow: 1;
}

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

.page-casino__game-card-title {
  font-size: 20px;
  font-weight: bold;
  padding: 15px 15px 5px;
  color: #FFD700; /* Brand color for titles */
  text-align: center;
}

.page-casino__game-card-description {
  font-size: 14px;
  padding: 0 15px 15px;
  color: #f0f0f0;
  text-align: center;
}

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

.page-casino__feature-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-casino__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-casino__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-casino__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #8B0000; /* Darker brand color */
}

.page-casino__feature-description {
  font-size: 15px;
  color: #555555;
}

/* Promotions List */
.page-casino__promotion-list {
  list-style: disc inside;
  margin: 40px auto;
  max-width: 800px;
  font-size: 16px;
  line-height: 1.8;
  padding-left: 20px;
  color: #f0f0f0;
}

.page-casino__promotion-list li {
  margin-bottom: 10px;
}

.page-casino__promotion-list strong {
  color: #FFD700;
}

.page-casino__center-button {
  text-align: center;
  margin-top: 40px;
}

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

.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-casino__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-casino__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-casino__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #8B0000;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #fcfcfc;
  color: #555555;
  border-radius: 0 0 8px 8px;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
  border: 1px solid #e0e0e0;
  border-top: none;
}

.page-casino__faq-item.active .page-casino__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  color: #FFD700;
  transform: rotate(45deg); /* Change to X or rotate */
}

/* Contact Section */
.page-casino__contact-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 600px;
  font-size: 18px;
  line-height: 2;
  text-align: center;
}

.page-casino__contact-list li strong {
  color: #FFD700;
  margin-right: 10px;
}

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

  .page-casino__section-title {
    font-size: 32px;
  }

  .page-casino__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .page-casino__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .page-casino__game-card-image {
    height: 180px;
  }

  .page-casino__game-card-title {
    font-size: 18px;
  }

  .page-casino__feature-item {
    padding: 25px;
  }

  .page-casino__faq-question h3 {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-banner {
    padding-top: 100px; /* Mobile: Adjust to clear fixed header */
    padding-bottom: 40px;
  }

  .page-casino__hero-title {
    font-size: 32px;
  }

  .page-casino__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-casino__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-casino__introduction-section,
  .page-casino__game-types-section,
  .page-casino__why-choose-section,
  .page-casino__promotions-section,
  .page-casino__faq-section,
  .page-casino__contact-section {
    padding: 50px 0;
  }

  .page-casino__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

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

  .page-casino__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }

  .page-casino__game-card-image {
    height: 120px;
  }

  .page-casino__game-card-title {
    font-size: 16px;
    padding: 10px 10px 5px;
  }

  .page-casino__game-card-description {
    font-size: 12px;
    padding: 0 10px 10px;
  }

  .page-casino__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__feature-item {
    padding: 20px;
  }

  .page-casino__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .page-casino__feature-title {
    font-size: 18px;
  }

  .page-casino__promotion-list {
    font-size: 15px;
    margin: 30px auto;
    padding-left: 15px;
  }

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

  .page-casino__faq-question h3 {
    font-size: 15px;
  }

  .page-casino__faq-toggle {
    font-size: 24px;
    width: 26px;
    height: 26px;
  }

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

  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px 20px !important;
  }

  .page-casino__contact-list {
    font-size: 16px;
  }

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

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

/* Ensure contrast for specific elements if needed on unknown body bg */
.page-casino__dark-bg {
  color: #ffffff; /* Deep background, light text */
}

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

.page-casino p,
.page-casino li {
  color: inherit; /* Inherit from parent, which will be set by dark/light bg */
}

.page-casino__btn-primary {
  background: #FFD700;
  color: #8B0000; /* Ensuring contrast */
}

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

/* Override specific element colors for contrast if needed */
.page-casino__introduction-section a,
.page-casino__why-choose-section a,
.page-casino__faq-section a {
  color: #8B0000; /* Ensure links are visible on light background */
}

.page-casino__introduction-section a:hover,
.page-casino__why-choose-section a:hover,
.page-casino__faq-section a:hover {
  color: #FFD700;
}