/* style/casino.css */
.page-casino {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
  padding-top: var(--header-offset, 120px); /* Ensure content clears fixed header */
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}

.page-casino__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.4); /* Darken image for text readability, not changing color */
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #ffffff;
}

.page-casino__hero-title {
  font-size: 3.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFD700; /* Gold accent */
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  opacity: 0.9;
}

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

.page-casino__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.page-casino__button--primary {
  background-color: #FFD700; /* Gold */
  color: #1A202C; /* Dark text on gold */
  border: 2px solid #FFD700;
}

.page-casino__button--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

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

.page-casino__button--secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
  transform: translateY(-2px);
}

.page-casino__button--small {
  padding: 10px 20px;
  font-size: 1em;
}

/* General Section Styling */
.page-casino__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
  font-weight: 700;
}

.page-casino__text-content {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Game Categories Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: rgba(26, 32, 44, 0.7); /* Slightly lighter dark background */
}

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

.page-casino__game-card {
  background-color: #1A202C;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-casino__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-casino__game-card-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-casino__game-card-link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__game-card-link:hover {
  color: #ffffff;
}

.page-casino__game-card-description {
  font-size: 1em;
  line-height: 1.6;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino__game-features-list {
  list-style: none;
  padding: 0 20px;
  margin-bottom: 20px;
  text-align: left;
}

.page-casino__game-features-list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.page-casino__game-features-list li::before {
  content: '⚡'; /* Unicode lightning bolt for feature list */
  position: absolute;
  left: 0;
  color: #FFD700;
}

/* Why Choose Section */
.page-casino__why-choose-section {
  padding: 80px 0;
}

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

.page-casino__feature-card {
  background-color: #1A202C;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-casino__feature-icon {
  width: 150px; /* Min 200px rule applies to content images, not icons/decorative */
  height: 100px;
  object-fit: contain;
  margin-bottom: 25px;
  border-radius: 8px;
}

.page-casino__feature-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-casino__feature-description {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Getting Started Section */
.page-casino__getting-started-section {
  padding: 80px 0;
  background-color: rgba(26, 32, 44, 0.7);
}

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

.page-casino__step-card {
  background-color: #1A202C;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  padding: 30px;
  text-align: center;
  height: 100%;
}

.page-casino__step-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-casino__step-description {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming-section {
  padding: 80px 0;
  text-align: center;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: rgba(26, 32, 44, 0.7);
}

.page-casino__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.page-casino__faq-item {
  background-color: #1A202C;
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__faq-question {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-casino__faq-answer {
  font-size: 1em;
  line-height: 1.6;
  opacity: 0.8;
}

/* Call to Action Section */
.page-casino__cta-section {
  padding: 80px 0;
  text-align: center;
}

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

  .page-casino__section-title {
    font-size: 2em;
  }

  .page-casino__game-card-title, .page-casino__feature-title, .page-casino__step-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding: 60px 15px;
  }

  .page-casino__hero-title {
    font-size: 2.2em;
  }

  .page-casino__hero-description {
    font-size: 1em;
  }

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

  .page-casino__button {
    width: 80%;
    margin: 0 auto;
  }

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

  .page-casino__text-content {
    font-size: 0.95em;
  }

  .page-casino__game-categories, .page-casino__features-grid, .page-casino__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-casino__game-card-image, .page-casino__feature-icon {
    max-width: 100%;
    height: auto; /* Ensure images are responsive and not too small */
  }

  /* IMPORTANT: Content area images must be responsive and not cause overflow */
  .page-casino__game-card img,
  .page-casino__feature-card img,
  .page-casino__step-card img,
  .page-casino__faq-item img,
  .page-casino__hero-section img {
    max-width: 100%;
    height: auto;
  }
  
  /* Ensure no content causes horizontal scroll */
  .page-casino {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 1.8em;
  }

  .page-casino__section-title {
    font-size: 1.5em;
  }

  .page-casino__button {
    width: 95%;
  }
  
  .page-casino__game-card-image {
    height: 200px;
  }
}