/* style/casino.css */

/* Base styles for the casino page content */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Default background for main content sections */
}

/* 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: 10px; /* Small top padding, body handles --header-offset */
  background-color: #017439; /* Brand color for hero background */
  color: #ffffff;
  overflow: hidden; /* Ensure content doesn't spill */
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
  margin-bottom: 20px; /* Space between image and text */
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-casino__hero-content {
  max-width: 900px;
  width: 100%;
  z-index: 1; /* Ensure text is above any background effects */
}

.page-casino__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
  line-height: 1.2;
}

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

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

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

.page-casino__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #017439; /* Default title color */
}

.page-casino__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Dark Section Styling */
.page-casino__dark-section {
  background-color: #017439; /* Main brand color for dark sections */
  color: #ffffff;
  padding: 80px 0;
}

.page-casino__dark-section .page-casino__section-title {
  color: #ffffff; /* White title on dark background */
}

.page-casino__dark-section .page-casino__section-description {
  color: #f0f0f0;
}

/* Game Categories Section */
.page-casino__game-categories {
  padding: 80px 0;
}

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

.page-casino__game-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.page-casino__game-card:hover {
  transform: translateY(-5px);
}

.page-casino__game-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-height: 200px; /* Ensure minimum size */
  min-width: 200px; /* Ensure minimum size */
}

.page-casino__game-card-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-casino__game-card-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1; /* Allows text to take available space */
}

/* Promotions Section */
.page-casino__promotions {
  padding: 80px 0;
  background-color: #f5f5f5; /* Light grey background */
}

.page-casino__promotions .page-casino__section-title {
  color: #017439;
}

.page-casino__promotions .page-casino__section-description {
  color: #555555;
}

.page-casino__promo-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 50px;
}

.page-casino__promo-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-casino__promo-list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-casino__promo-item {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-casino__promo-item-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

.page-casino__promo-item-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 15px;
}

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

/* Why Choose Us Section */
.page-casino__why-choose-us {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
}

.page-casino__why-choose-us .page-casino__section-title {
  color: #017439;
}

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

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

.page-casino__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-height: 200px; /* Ensure minimum size */
  min-width: 200px; /* Ensure minimum size */
}

.page-casino__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

.page-casino__feature-text {
  font-size: 1em;
  color: #555555;
}

/* CTA Footer Section */
.page-casino__cta-footer {
  padding: 80px 0;
  text-align: center;
  background-color: #017439; /* Brand color for dark sections */
  color: #ffffff;
}

.page-casino__cta-footer .page-casino__section-title {
  color: #ffffff;
}

.page-casino__cta-footer .page-casino__description {
  color: #f0f0f0;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary,
.page-casino__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-casino__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

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

.page-casino__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-casino__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #00502a;
  border-color: #00502a;
}

.page-casino__btn-tertiary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
}

.page-casino__btn-tertiary:hover {
  background-color: #f0f0f0;
  color: #00502a;
  border-color: #f0f0f0;
}

.page-casino__btn-link {
  color: #ffffff;
  text-decoration: underline;
  padding: 0;
  background: none;
  border: none;
  font-size: 1em;
  font-weight: normal;
}

.page-casino__btn-link:hover {
  color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-casino__promo-content {
    flex-direction: column;
    align-items: center;
  }

  .page-casino__promo-image {
    max-width: 80%;
    margin-bottom: 30px;
  }
}

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

  /* Images responsive */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-casino__hero-image-wrapper,
  .page-casino__game-card-image,
  .page-casino__promo-image,
  .page-casino__feature-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* Override fixed height for responsiveness */
    min-height: 200px !important; /* Maintain minimum size */
    box-sizing: border-box !important;
  }

  /* Containers responsive */
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-section,
  .page-casino__game-categories,
  .page-casino__promotions,
  .page-casino__why-choose-us,
  .page-casino__cta-footer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-casino__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px !important;
  }

  .page-casino__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 for mobile */
  }

  .page-casino__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .page-casino__section-description {
    margin-bottom: 30px;
  }

  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Buttons responsive */
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-tertiary,
  .page-casino__btn-link {
    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__promo-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-casino__promo-image {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .page-casino__game-card,
  .page-casino__feature-item {
    padding: 20px;
  }
}