/* style/casino.css */

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

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

.page-casino__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-casino__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__dark-section {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
  padding: 60px 0;
  color: #ffffff;
}

/* --- Buttons --- */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

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

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

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

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

.page-casino__btn-tertiary {
  background-color: #EA7C07; /* Login color for action */
  color: #ffffff;
  border: 2px solid #EA7C07;
  font-size: 0.9em;
  padding: 8px 15px;
}

.page-casino__btn-tertiary:hover {
  background-color: #c96806;
  border-color: #c96806;
}

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

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

/* --- Hero Section --- */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and text */
  max-width: 1920px; /* Ensure image doesn't stretch too wide */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.page-casino__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-casino__description {
  font-size: clamp(1.1em, 1.5vw, 1.3em);
  color: #ffffff;
  margin-bottom: 30px;
}

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

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

.page-casino__feature-item {
  background-color: rgba(255, 255, 255, 0.08); /* Lighter card background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-casino__feature-item p {
  color: #f0f0f0;
}

/* --- Games Section --- */
.page-casino__games-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.03); /* Subtle background for contrast */
}

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

.page-casino__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.3s ease;
}

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

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

.page-casino__game-card .page-casino__card-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin: 20px 15px 10px;
  font-weight: bold;
}

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

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

.page-casino__game-card p {
  color: #f0f0f0;
  padding: 0 15px 20px;
  flex-grow: 1; /* Allow paragraph to take available space */
}

.page-casino__game-card .page-casino__btn-tertiary {
  margin: 0 15px 20px;
}

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

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

.page-casino__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
}

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

.page-casino__promo-card .page-casino__card-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin: 20px 15px 10px;
  font-weight: bold;
}

.page-casino__promo-card p {
  color: #f0f0f0;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-casino__promo-card .page-casino__btn-primary {
  margin: 0 15px 20px;
}

/* --- How To Play Section --- */
.page-casino__how-to-play-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.03);
}

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

.page-casino__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__step-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-casino__step-item p {
  color: #f0f0f0;
}

/* --- Security Section --- */
.page-casino__security-section {
  padding: 60px 0;
}

.page-casino__security-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 800px;
  margin: 40px auto;
  border-radius: 10px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-casino__security-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 600px;
}

.page-casino__security-list li {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 1.1em;
  display: flex;
  align-items: center;
}

.page-casino__security-list li::before {
  content: '✔';
  color: #26A9E0;
  margin-right: 10px;
  font-weight: bold;
}

/* --- FAQ Section --- */
.page-casino__faq-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.03);
}

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

.page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  background-color: rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-casino__faq-item[open] > .page-casino__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-casino__faq-answer {
  padding: 20px 25px;
  color: #f0f0f0;
  font-size: 1.05em;
  line-height: 1.8;
}

.page-casino__faq-item summary {
  list-style: none; /* Hide default marker */
}
.page-casino__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}


/* --- CTA Bottom Section --- */
.page-casino__cta-bottom {
  padding: 80px 0;
  text-align: center;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-casino__main-title {
    font-size: 3em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
}

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

  .page-casino__container {
    padding: 0 15px; /* Adjust padding for mobile */
  }

  .page-casino__hero-section {
    padding: 40px 0;
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
  }

  .page-casino__main-title {
    font-size: 2.2em !important; /* Ensure H1 is not too big on mobile */
    line-height: 1.2;
  }

  .page-casino__description {
    font-size: 1em;
  }

  .page-casino__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px; /* Add padding to button container */
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important; /* Remove margin-left for stacking */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__section-title {
    font-size: 1.8em !important;
  }

  .page-casino__text-block {
    font-size: 1em;
  }

  /* Mobile image adaptation */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px; /* Enforce min size even on mobile */
    min-height: 200px; /* Enforce min size even on mobile */
  }
  
  /* Ensure all containers with images/content are responsive */
  .page-casino__hero-section,
  .page-casino__intro-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__how-to-play-section,
  .page-casino__security-section,
  .page-casino__faq-section,
  .page-casino__cta-bottom,
  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__feature-item,
  .page-casino__step-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; /* Prevent horizontal scroll */
  }
  .page-casino__game-image,
  .page-casino__promo-image,
  .page-casino__security-image {
    height: auto !important; /* Allow height to adjust proportionally */
  }
  .page-casino__game-card .page-casino__btn-tertiary {
    margin: 15px auto 20px; /* Center button in card */
  }
  .page-casino__security-list {
    padding: 0 15px;
  }
  .page-casino__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-casino__faq-answer {
    font-size: 1em;
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-casino__main-title {
    font-size: 1.8em !important;
  }
  .page-casino__section-title {
    font-size: 1.5em !important;
  }
  .page-casino__feature-title,
  .page-casino__game-card .page-casino__card-title,
  .page-casino__promo-card .page-casino__card-title,
  .page-casino__step-title {
    font-size: 1.2em;
  }
  .page-casino__hero-image {
    height: 250px; /* Adjust hero image height for smaller mobiles */
  }
}

/* Ensure no filter on images */
.page-casino img {
  filter: none;
}