/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 0; /* Assuming shared.css handles body padding-top for header offset */
  padding-bottom: 0;
  margin-top: 0;
}

.page-casino__hero-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-width: 100%;
}

/* General Container and Section Styles */
.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-casino__dark-bg {
  background-color: #0a0a0a; /* Ensure sections have background if body is transparent */
}

.page-casino__main-heading {
  font-size: 3.2em;
  color: #FFD700; /* Gold heading for dark background */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__intro-text {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-casino__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.3;
}

.page-casino__section-description {
  font-size: 1.05em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* CTA Buttons */
.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-casino__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons adapt to container width */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  text-align: center;
}

/* Primary Button - Adjusted for WCAG AA contrast */
.page-casino__btn-primary {
  background: #8B0000; /* Dark Red - Passes AA with White text */
  color: #ffffff;
  border: 2px solid #8B0000;
}

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

/* Secondary Button */
.page-casino__btn-secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-casino__btn-secondary:hover {
  background: #FFD700;
  color: #0a0a0a; /* Dark text for gold background */
  transform: translateY(-2px);
}

/* Tertiary Button (for game cards, etc.) */
.page-casino__btn-tertiary {
  background: #FFD700;
  color: #0a0a0a; /* Dark text for gold background */
  border: 2px solid #FFD700;
  padding: 10px 20px;
  font-size: 0.95em;
}

.page-casino__btn-tertiary:hover {
  background: #e0b800;
  border-color: #e0b800;
  transform: translateY(-1px);
}

/* Content Flex Layout */
.page-casino__content-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 50px;
}

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

.page-casino__content-text {
  flex: 1;
  color: #f0f0f0;
}

.page-casino__content-text p {
  margin-bottom: 15px;
}

.page-casino__content-image {
  flex: 1;
  text-align: center;
}

.page-casino__content-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

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

.page-casino__game-card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-casino__game-card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-casino__game-card-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-casino__game-card-text {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
  color: #f0f0f0;
}

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

.page-casino__promo-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.page-casino__promo-card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-casino__promo-card-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-casino__promo-card-text {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
  color: #f0f0f0;
}

/* Payment Methods Grid */
.page-casino__payment-methods-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 30px;
}

.page-casino__payment-methods-grid img {
  max-width: 200px;
  height: auto;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.page-casino__payment-note {
  text-align: center;
  font-size: 0.9em;
  color: #cccccc;
}

/* FAQ Section */
.page-casino__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08); /* Card background for FAQ items */
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: #f0f0f0;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important; /* Use !important and large value for expansion */
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.15); /* Slightly lighter background for open answer */
  border-radius: 0 0 5px 5px;
}