/* style/casino.css */

/* Custom CSS variables for this page if needed, but primarily use shared.css variables */
:root {
  --primary-color: #26A9E0; /* Main brand color */
  --secondary-color: #EA7C07; /* Login/CTA button color */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f9f9f9; /* Lighter background for sections */
  --bg-dark: #26A9E0; /* Darker background for sections */
  --border-color: #e0e0e0;
}

.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background: var(--bg-light); /* Default page background */
}

/* Color Contrast Safeguards */
.page-casino__dark-bg {
  background: var(--bg-dark);
  color: var(--text-light); /* Light text on dark background */
}

.page-casino__light-bg {
  background: var(--bg-light);
  color: var(--text-dark); /* Dark text on light background */
}

.page-casino__dark-bg h1,
.page-casino__dark-bg h2,
.page-casino__dark-bg h3,
.page-casino__dark-bg p,
.page-casino__dark-bg li {
  color: var(--text-light); /* Ensure all text elements are light on dark backgrounds */
}

.page-casino__light-bg h1,
.page-casino__light-bg h2,
.page-casino__light-bg h3,
.page-casino__light-bg p,
.page-casino__light-bg li {
  color: var(--text-dark); /* Ensure all text elements are dark on light backgrounds */
}

/* General Section Styling */
.page-casino__section {
  padding: 60px 0;
  text-align: center;
}

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

.page-casino__section-title {
  font-size: 36px;
  margin-bottom: 30px;
  font-weight: bold;
  color: var(--primary-color); /* Title color, ensure contrast */
}

.page-casino__dark-bg .page-casino__section-title {
  color: var(--text-light); /* White title on dark background */
}

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

/* Images within content sections */
.page-casino__image-content {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block; /* Ensures proper spacing and centering */
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Button Styling */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 10px; /* Added margin for spacing between buttons */
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-casino__btn-primary,
.page-casino__cta-button {
  background: var(--secondary-color); /* Login color */
  color: var(--text-light);
  border: 2px solid transparent;
}

.page-casino__btn-primary:hover,
.page-casino__cta-button:hover {
  background: #c26506; /* Darken on hover */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.page-casino__btn-secondary {
  background: var(--text-light);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-casino__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* HERO Section Specifics */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, var(--primary-color) 0%, #007bff 100%); /* Example gradient */
  overflow: hidden; /* Ensure content doesn't spill out */
}

.page-casino__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Ensure content is above any background effects */
}

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

.page-casino__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-light);
}

.page-casino__hero-title {
  font-size: 52px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light); /* Ensure title is white on dark hero */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

.page-casino__hero-description {
  font-size: 22px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light); /* Ensure description is white on dark hero */
}

/* Game Grid Section */
.page-casino__games-section {
  background: var(--bg-dark);
  color: var(--text-light);
}

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

.page-casino__game-card {
  background: var(--text-light);
  color: var(--text-dark);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-casino__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-casino__card-description {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1; /* Allows description to take up available space */
}

.page-casino__game-card .page-casino__btn-secondary {
  align-self: flex-end; /* Align button to the bottom right */
  margin-top: auto; /* Push button to the bottom */
}


/* Live Casino Section */
.page-casino__live-casino-section .page-casino__section-title {
  color: var(--primary-color);
}

/* Promotions Section */
.page-casino__promotions-section {
  background: var(--bg-dark);
  color: var(--text-light);
}

.page-casino__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  text-align: left;
}

.page-casino__promo-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-casino__promo-item:hover {
  transform: translateY(-5px);
}

.page-casino__promo-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-casino__promo-item p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

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

/* Guide Section */
.page-casino__guide-section .page-casino__section-title {
  color: var(--primary-color);
}

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

.page-casino__guide-step-item {
  background: var(--text-light);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distribute space */
}

.page-casino__guide-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 20px auto;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-casino__guide-step-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-casino__guide-step-item p {
  font-size: 16px;
  margin-bottom: 25px;
  flex-grow: 1; /* Allow text to grow */
}

.page-casino__guide-step-item .page-casino__btn-primary {
  margin-top: auto; /* Push button to bottom */
}


/* Security Section */
.page-casino__security-section {
  background: var(--bg-dark);
  color: var(--text-light);
}

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

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

.page-casino__feature-item:hover {
  transform: translateY(-5px);
}

.page-casino__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* FAQ Section */
.page-casino__faq-section {
  background: var(--bg-light);
  color: var(--text-dark);
}

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

/* FAQ容器样式 */
.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}