/* style/casino.css */

/* Custom Colors */
:root {
  --page-casino-bg: #08160F; /* Background */
  --page-casino-card-bg: #11271B; /* Card BG */
  --page-casino-text-main: #F2FFF6; /* Text Main */
  --page-casino-text-secondary: #A7D9B8; /* Text Secondary */
  --page-casino-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  --page-casino-border: #2E7A4E; /* Border */
  --page-casino-glow: #57E38D; /* Glow */
  --page-casino-gold: #F2C14E; /* Gold */
  --page-casino-divider: #1E3A2A; /* Divider */
  --page-casino-deep-green: #0A4B2C; /* Deep Green */
}

/* Base Styles for page-casino scope */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-casino-text-main); /* Default text color for the page */
  background-color: var(--page-casino-bg); /* Default background color for the page */
}

/* No .page-casino padding-top: var(--header-offset) here - handled by body in shared.css */

/* Section common styles */
.page-casino__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem); /* Responsive font size */
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: var(--page-casino-text-main);
  position: relative;
  padding-bottom: 10px;
}

.page-casino__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--page-casino-gold);
  border-radius: 2px;
}

.page-casino__sub-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: bold;
  margin-top: 25px;
  margin-bottom: 15px;
  color: var(--page-casino-text-main);
}

.page-casino__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--page-casino-text-main);
}

.page-casino__highlight {
  color: var(--page-casino-gold);
  font-weight: bold;
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--page-casino-bg); /* Fallback background */
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.6); /* Darken image for text readability */
  min-width: 200px; /* Global image size requirement */
  min-height: 200px; /* Global image size requirement */
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  color: var(--page-casino-text-main);
  padding: 20px;
}

.page-casino__main-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem); /* H1 responsive font size, no fixed large value */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--page-casino-gold); /* Using gold for H1 for prominence */
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-description {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--page-casino-text-main);
}

/* CTA Buttons */
.page-casino__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width for responsive buttons */
  max-width: 600px; /* Limit max width for button group */
  margin: 0 auto;
}

.page-casino__cta-buttons--center {
  margin-top: 30px;
}

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino a[class*="button"],
.page-casino a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-casino__btn-primary {
  background: var(--page-casino-btn-gradient);
  color: var(--page-casino-text-main); /* White text for primary button */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-secondary {
  background: transparent;
  color: var(--page-casino-gold); /* Gold text for secondary button */
  border: 2px solid var(--page-casino-gold);
  box-shadow: none;
}

.page-casino__btn-secondary:hover {
  background: var(--page-casino-gold);
  color: var(--page-casino-bg); /* Dark text on hover */
  transform: translateY(-2px);
}

.page-casino__btn-text {
  background: transparent;
  color: var(--page-casino-gold);
  border: none;
  padding: 8px 0;
  font-size: 1rem;
  font-weight: normal;
  text-decoration: underline;
}

.page-casino__btn-text:hover {
  color: var(--page-casino-glow);
}

/* Section specific styles */
.page-casino__introduction-section,
.page-casino__games-section,
.page-casino__guide-section,
.page-casino__tips-section,
.page-casino__faq-section {
  padding: 80px 0;
  background-color: var(--page-casino-bg); /* Darker background for these sections */
}

.page-casino__promotions-section,
.page-casino__support-section,
.page-casino__conclusion-section {
  padding: 80px 0;
  background-color: #f2fff6; /* Lighter background for contrast */
}

/* Dark and Light Backgrounds for contrast */
.page-casino__dark-section {
  background-color: var(--page-casino-bg);
  color: var(--page-casino-text-main);
}

.page-casino__light-bg {
  background-color: #f2fff6; /* Using a very light green from the palette for light background */
  color: #333333; /* Dark text on light background for contrast */
}

.page-casino__text-contrast-fix {
  color: #333333; /* Ensure dark text on light background */
}

/* Card styles */
.page-casino__card {
  background-color: var(--page-casino-card-bg); /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: var(--page-casino-text-main);
  border: 1px solid var(--page-casino-border);
}

.page-casino__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--page-casino-gold);
}

.page-casino__card-text {
  font-size: 1rem;
  color: var(--page-casino-text-secondary);
}

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

/* Games List */
.page-casino__games-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__game-item {
  background-color: var(--page-casino-card-bg);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--page-casino-border);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  color: var(--page-casino-text-main);
}

.page-casino__game-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--page-casino-gold);
}

.page-casino__game-description {
  font-size: 0.95rem;
  color: var(--page-casino-text-secondary);
}

/* Live Casino Section */
.page-casino__live-casino-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-casino__image-left,
.page-casino__image-right {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  width: 100%; /* Ensure image takes full width of its flex item */
  height: auto;
  display: block;
  min-height: 200px;
}

.page-casino__image-left {
  order: 0;
}

.page-casino__image-right {
  order: 1;
}

.page-casino__live-casino-text {
  flex: 2;
  min-width: 300px;
}

/* Guide Section */
.page-casino__step-card {
  position: relative;
  padding-top: 50px; /* Space for step number */
}