/* style/casino.css */

/* Variables from shared.css / custom palette */
:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B; /* Body background color from shared.css */
}

/* Base styles for the page content */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Light text for dark body background */
  background-color: var(--deep-navy); /* From shared.css, explicitly set for consistency */
  padding-bottom: 50px; /* Add some padding at the bottom */
}

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

.page-casino__section {
  padding: 60px 0;
}

.page-casino__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold-color); /* Use gold for titles for contrast on dark background */
}

.page-casino__section-title--light {
  color: var(--gold-color); /* Explicitly for sections with dark backgrounds */
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--deep-navy);
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

.page-casino__hero-content {
  padding: 40px 20px;
  text-align: center;
  background: var(--card-bg); /* Dark background for text block */
  border-bottom: 5px solid var(--border-color);
}

.page-casino__main-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-main);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-casino__btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--secondary-color);
  border-color: var(--glow-color);
}

/* About Casino Section */
.page-casino__about-casino {
  background-color: var(--deep-navy);
}

.page-casino__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.page-casino__text-block .highlight {
  color: var(--gold-color);
  font-weight: bold;
}

.page-casino__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 30px;
  border-radius: 10px;
  min-height: 200px; /* Minimum size requirement */
  object-fit: cover;
}

/* Game Categories Section */
.page-casino__game-categories {
  background-color: var(--card-bg); /* Darker background for game cards */
  padding-bottom: 80px;
}

.page-casino__game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.page-casino__game-card {
  background: var(--primary-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.page-casino__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card images */
  object-fit: cover;
  display: block;
  min-height: 200px; /* Minimum size requirement */
}

.page-casino__card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-color);
  margin: 20px 15px 10px;
}

.page-casino__card-description {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 0 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-casino__game-card .page-casino__btn-secondary {
  margin-top: auto; /* Push button to bottom */
  align-self: center;
  padding: 10px 20px;
  font-size: 16px;
  border: 1px solid var(--border-color);
  background: var(--secondary-color);
  color: var(--text-main);
}

/* Promotions Section */
.page-casino__promotions {
  background-color: var(--deep-navy);
}

.page-casino__promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.page-casino__promo-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.page-casino__promo-card .page-casino__card-image {
  height: 250px; /* Slightly taller for promo banners */
}

.page-casino__promo-card .page-casino__card-title {
  color: var(--gold-color);
}

.page-casino__promo-card .page-casino__card-description {
  color: var(--text-secondary);
  flex-grow: 1;
}

.page-casino__promo-card .page-casino__btn-primary {
  margin-top: auto;
  align-self: center;
  padding: 12px 25px;
  font-size: 17px;
}

/* Why Choose Us Section */
.page-casino__why-choose-us {
  background-color: var(--primary-color); /* Use primary color for this section */
  padding-bottom: 80px;
}

.page-casino__features-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 900px;
}

.page-casino__feature-item {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-casino__feature-icon {
  font-size: 40px;
  color: var(--gold-color);
  margin-bottom: 15px;
  display: block;
}

.page-casino__feature-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-casino__feature-description {
  font-size: 15px;
  color: var(--text-secondary);
}

/* FAQ Section */
.page-casino__faq {
  background-color: var(--deep-navy);
}

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

details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
}

details.page-casino__faq-item summary.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-casino__faq-item summary.page-casino__faq-question::-webkit-details-marker {
  display: none;
}
}