/* style/casino.css */
/* Body background is #121212 (dark), so default text should be light */
.page-casino {
  font-family: Arial, sans-serif;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Main content background will be transparent to show body background */
  line-height: 1.6;
}

/* Fixed header spacing - body padding-top is handled by shared.css */
.page-casino__hero-section,
.page-casino__video-section,
.page-casino__introduction-section,
.page-casino__games-section,
.page-casino__experience-section,
.page-casino__promotions-section,
.page-casino__registration-section,
.page-casino__faq-section,
.page-casino__cta-final {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
}

.page-casino__hero-content {
  position: relative; /* Ensure content is not absolutely positioned over image */
  z-index: 1;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text on dark body */
  border-radius: 8px;
  max-width: 800px;
}

.page-casino__hero-content h1 {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  color: #26A9E0; /* Brand color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-casino__hero-content p {
  font-size: 1.1em;
  color: #ffffff;
  margin-bottom: 30px;
}

.page-casino__cta-group {
  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: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Ensure long words break */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

.page-casino__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-casino__btn-login {
  background-color: #EA7C07; /* Login specific color */
  color: #ffffff;
}

.page-casino__btn-login:hover {
  background-color: #c96706;
  transform: translateY(-2px);
}

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

/* Headings */
.page-casino h2 {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 20px;
}

.page-casino h3 {
  font-size: clamp(1.4em, 2.5vw, 1.8em);
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: left; /* Default to left for content sections */
}

.page-casino p {
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-casino ul {
  list-style: disc;
  margin-left: 20px;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-casino ul li {
  margin-bottom: 8px;
}

/* Video Section */
.page-casino__video-section {
  text-align: center;
  padding-bottom: 60px;
}

.page-casino__video-container {
  position: relative;
  width: 100%; /* Desktop width: 100% */
  max-width: 1200px; /* Constrain max width */
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden; /* Ensure video doesn't overflow */
  border-radius: 8px;
}

.page-casino__video-link {
  display: block;
  cursor: pointer;
}

.page-casino__video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-casino__video-description {
  margin-top: 20px;
  font-style: italic;
  color: #cccccc;
}

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

.page-casino__game-card {
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter background for cards */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-casino__game-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-casino__game-card h3 {
  color: #26A9E0;
  font-size: 1.5em;
  margin-top: 0;
  padding: 0 15px;
}

.page-casino__game-card p {
  color: #f0f0f0;
  padding: 0 15px;
  font-size: 0.95em;
}

.page-casino__game-card .page-casino__cta-button {
  margin-top: 15px;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 8px 15px;
  font-size: 0.9em;
}

/* Promotions Section */
.page-casino__promotions-section img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 30px;
}

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

.page-casino__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-casino__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  outline: none;
  list-style: none; /* Remove default marker */
}

.page-casino__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for webkit */
}

.page-casino__faq-question {
  flex-grow: 1;
  font-size: 1.1em;
  color: #26A9E0;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
  color: #ffffff;
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-casino__faq-answer {
  padding: 0 20px 15px;
  color: #f0f0f0;
  font-size: 0.95em;
}

/* General image styling for content areas */
.page-casino img:not(.page-casino__hero-image) {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* Section with dark background */
.page-casino__dark-section {
  background-color: rgba(38, 169, 224, 0.1); /* Slightly transparent brand color */
  color: #ffffff;
  padding: 60px 20px;
  border-radius: 8px;
}

.page-casino__dark-section h2 {
  color: #26A9E0;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-casino__hero-section,
  .page-casino__video-section,
  .page-casino__introduction-section,
  .page-casino__games-section,
  .page-casino__experience-section,
  .page-casino__promotions-section,
  .page-casino__registration-section,
  .page-casino__faq-section,
  .page-casino__cta-final {
    padding: 20px 15px !important; /* Smaller padding for mobile */
  }

  .page-casino h1 {
    font-size: 2em !important;
  }
  .page-casino h2 {
    font-size: 1.5em !important;
  }
  .page-casino h3 {
    font-size: 1.2em !important;
  }
  .page-casino p, .page-casino ul li, .page-casino__faq-answer {
    font-size: 0.95em !important;
  }

  /* Images responsiveness */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__game-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* Video responsiveness */
  .page-casino video,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-casino__video-section,
  .page-casino__video-container,
  .page-casino__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  
  .page-casino__video-section {
    padding-top: 10px !important; /* Small top padding for video section */
  }

  /* Button responsiveness */
  .page-casino__cta-button,
  .page-casino__btn-primary,
  .page-casino__btn-login,
  .page-casino a[class*="button"],
  .page-casino a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-casino__cta-group,
  .page-casino__button-group,
  .page-casino__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }
}

/* Color contrast enforcement */
.page-casino__dark-bg {
  color: #ffffff; /* Deep dark background, use white text */
}

.page-casino__light-bg {
  color: #333333; /* Light background, use dark text */
}

.page-casino__text-contrast-fix {
  color: #ffffff !important; /* Fallback for unreadable text */
  background: rgba(0,0,0,0.7) !important; /* Add background for contrast */
  padding: 2px 5px;
  border-radius: 3px;
}