/* style/casino.css */

/* Custom properties for colors from the prompt */
:root {
  --primary-color: #017439; /* Main green */
  --secondary-color: #FFFFFF; /* Auxiliary white */
  --register-button-color: #C30808; /* Red for register/login buttons */
  --login-button-color: #C30808; /* Red for register/login buttons */
  --background-color: #FFFFFF; /* Page background */
  --register-login-font-color: #FFFF00; /* Yellow for register/login button text */
  --text-color-dark-bg: #FFFFFF; /* White text on dark backgrounds */
  --text-color-light-bg: #333333; /* Dark gray text on light backgrounds */
  --border-color-light: #e0e0e0;
}

/* Page content base styles */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-light-bg); /* Default text color for light body background */
  background-color: var(--background-color); /* Explicitly set page background */
}

/* HERO Section */
.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); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Gradient background */
  overflow: hidden; /* Prevent image overflow */
}

.page-casino__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.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: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-color-dark-bg); /* White text for hero content on gradient */
}

.page-casino__hero-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  font-weight: bold;
  color: var(--text-color-dark-bg); /* Ensure title is white */
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-dark-bg); /* Ensure description is white */
}

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

.page-casino__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 180px; /* Ensure buttons have a decent minimum width */
  text-align: center;
}

.page-casino__cta-button--register {
  background: var(--register-button-color); /* Red */
  color: var(--register-login-font-color); /* Yellow */
}

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

.page-casino__cta-button--login {
  background: var(--login-button-color); /* Red */
  color: var(--register-login-font-color); /* Yellow */
}

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

.page-casino__cta-button--explore,
.page-casino__cta-button--live,
.page-casino__cta-button--view-all,
.page-casino__cta-button--contact,
.page-casino__cta-button--faq,
.page-casino__cta-button--more-news {
  background: var(--primary-color);
  color: var(--text-color-dark-bg);
}

.page-casino__cta-button--explore:hover,
.page-casino__cta-button--live:hover,
.page-casino__cta-button--view-all:hover,
.page-casino__cta-button--contact:hover,
.page-casino__cta-button--faq:hover,
.page-casino__cta-button--more-news:hover {
  background: #018240; /* Lighten green on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* General Section Styles */
.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-casino__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section */
}

.page-casino__section-subtitle {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

.page-casino__text-block {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.8;
}

/* Section specific paddings and backgrounds */
.page-casino__intro-section,
.page-casino__live-experience-section,
.page-casino__security-support-section,
.page-casino__latest-news-section {
  padding: 80px 0;
  background-color: var(--secondary-color); /* Light background */
  color: var(--text-color-light-bg); /* Dark text */
}

.page-casino__games-section,
.page-casino__promotions-section,
.page-casino__faq-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark background */
  color: var(--text-color-dark-bg); /* White text */
}

.page-casino__games-section .page-casino__section-title,
.page-casino__games-section .page-casino__section-subtitle,
.page-casino__promotions-section .page-casino__section-title,
.page-casino__promotions-section .page-casino__section-subtitle,
.page-casino__faq-section .page-casino__section-title {
  color: var(--text-color-dark-bg);
}

/* Flex content layout */
.page-casino__content-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-casino__content-flex--reverse {
  flex-direction: row-reverse;
}

.page-casino__content-text {
  flex: 1;
  min-width: 300px;
}

.page-casino__content-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-casino__content-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px; /* Enforce minimum image size */
  object-fit: cover;
}

.page-casino__support-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

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

.page-casino__game-card,
.page-casino__promo-card,
.page-casino__news-card {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark bg */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-casino__game-card-image,
.page-casino__promo-card-image,
.page-casino__news-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px; /* Enforce minimum image size */
  object-fit: cover;
}

.page-casino__game-card-title,
.page-casino__promo-card-title,
.page-casino__news-card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin: 20px 15px 10px;
  color: var(--text-color-dark-bg); /* White text on dark background cards */
}

.page-casino__game-card-title a,
.page-casino__promo-card-title a,
.page-casino__news-card-title a {
  color: var(--text-color-dark-bg);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__game-card-title a:hover,
.page-casino__promo-card-title a:hover,
.page-casino__news-card-title a:hover {
  color: var(--register-login-font-color); /* Yellow on hover */
}

.page-casino__game-card-description,
.page-casino__promo-card-description {
  font-size: 0.95em;
  margin: 0 15px 20px;
  color: var(--text-color-dark-bg);
  flex-grow: 1; /* Make descriptions take available space */
}

.page-casino__news-card-meta {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 5px;
  margin-bottom: 10px;
}