/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body handles the background */
}

.page-casino__dark-bg {
  background-color: #0a0a0a; /* Ensure dark sections maintain dark background */
  color: #ffffff;
}

.page-casino__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light backgrounds */
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px; /* Small top padding, more bottom padding */
  overflow: hidden;
}

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

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

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Overlap slightly with image for visual flow */
  background: rgba(10, 10, 10, 0.85); /* Semi-transparent dark background for text */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-casino__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-casino__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* General Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino a[class*="btn"] {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping on desktop */
  box-sizing: border-box;
}

.page-casino__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-casino__btn-primary:hover {
  background-color: #1e87b6;
  border-color: #1e87b6;
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

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

.page-casino__btn-small {
  padding: 8px 18px;
  font-size: 0.9em;
}

/* Section Titles and Text Blocks */
.page-casino__section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2em;
  font-weight: bold;
  color: #26A9E0;
}

.page-casino__text-block {
  margin-bottom: 20px;
  font-size: 1.05em;
}

.page-casino__text-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-casino__text-link:hover {
  text-decoration: underline;
}

.page-casino__center-text {
  text-align: center;
}

/* Intro Section */
.page-casino__intro-section {
  padding: 60px 0;
}

/* Games Section */
.page-casino__games-section {
  padding: 60px 0;
}

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

.page-casino__game-card {
  background: rgba(255, 255, 255, 0.05); /* Slightly visible on dark background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

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

.page-casino__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
}

.page-casino__game-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-casino__game-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-casino__game-title a:hover {
  text-decoration: underline;
}

.page-casino__game-description {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 60px 0;
}

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

.page-casino__promo-card {
  background: #f8f8f8; /* Light background for promo cards */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-casino__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-casino__promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
}

.page-casino__promo-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-casino__promo-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-casino__promo-title a:hover {
  text-decoration: underline;
}

.page-casino__promo-description {
  font-size: 0.9em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Why Choose Us Section */
.page-casino__why-choose-us-section {
  padding: 60px 0;
}

.page-casino__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-casino__feature-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-casino__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__feature-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-casino__feature-description {
  font-size: 0.95em;
}

/* Guide Section */
.page-casino__guide-section {
  padding: 60px 0;
}

.page-casino__guide-list {
  list-style: decimal;
  padding-left: 25px;
  font-size: 1.05em;
  margin-bottom: 30px;
  color: #333333;
}

.page-casino__guide-list li {
  margin-bottom: 15px;
}

.page-casino__guide-list li strong {
  color: #26A9E0;
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming-section {
  padding: 60px 0;
  text-align: center;
}

.page-casino__responsible-gaming-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 auto 30px;
  display: block;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 60px 0;
}

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

.page-casino__faq-item {
  background: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #26A9E0;
  background-color: #eaf6fc; /* Light blue background for questions */
  border-bottom: 1px solid #d4edfa;
  list-style: none; /* For details/summary */
}

.page-casino__faq-question::-webkit-details-marker { /* Hide default marker */
  display: none;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
  transform: rotate(45deg);
}

.page-casino__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.5;
  color: #333333;
  background-color: #ffffff;
  border-top: 1px solid #eee;
}

.page-casino__faq-answer p {
  margin-bottom: 0;
}

/* Conclusion Section */
.page-casino__conclusion-section {
  padding: 60px 0;
  text-align: center;
}

/* --- Responsive Design --- */

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .page-casino__hero-content {
    margin-top: -100px;
    padding: 30px 15px;
  }

  .page-casino__main-title {
    font-size: 2.2em;
  }

  .page-casino__hero-description {
    font-size: 1em;
  }

  .page-casino__section-title {
    font-size: 2em;
  }

  .page-casino__game-grid,
  .page-casino__promo-grid,
  .page-casino__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Mobile specific */
@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-casino__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-casino__hero-section {
    padding: 10px 0 40px;
  }

  .page-casino__hero-content {
    margin-top: -80px; /* Adjust overlap for smaller screens */
    padding: 25px 15px;
  }

  .page-casino__main-title {
    font-size: 1.8em; /* Smaller font size for mobile H1 */
  }

  .page-casino__hero-description {
    font-size: 0.95em;
  }

  .page-casino__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .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__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-casino__game-grid,
  .page-casino__promo-grid,
  .page-casino__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__game-image,
  .page-casino__promo-image,
  .page-casino__feature-icon,
  .page-casino__responsible-gaming-image,
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__feature-item,
  .page-casino__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-casino__video-section {
    padding-top: 10px !important;
  }

  .page-casino__video-container,
  .page-casino__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-casino__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-casino__faq-answer {
    padding: 15px 20px;
  }
}

/* Login Button Specific Color */
.page-casino__login-button {
  background-color: #EA7C07;
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-casino__login-button:hover {
  background-color: #c96806;
  border-color: #c96806;
}