/* style/casino.css */

/* Custom Colors */
:root {
  --fun79-primary-color: #11A84E;
  --fun79-secondary-color: #22C768;
  --fun79-bg-card: #11271B;
  --fun79-bg-main: #08160F;
  --fun79-text-main: #F2FFF6;
  --fun79-text-secondary: #A7D9B8;
  --fun79-border-color: #2E7A4E;
  --fun79-glow-color: #57E38D;
  --fun79-gold-color: #F2C14E;
  --fun79-divider-color: #1E3A2A;
  --fun79-deep-green: #0A4B2C;
  --fun79-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the casino page content */
.page-casino {
  background-color: var(--fun79-bg-main);
  color: var(--fun79-text-main); /* Assuming dark body background, use light text */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-casino__section-title {
  font-size: clamp(2em, 5vw, 2.8em);
  color: var(--fun79-gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-casino__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--fun79-text-secondary);
  text-align: justify;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body already handles header offset, small top padding for aesthetic */
  background-color: var(--fun79-bg-main);
  overflow: hidden;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-content {
  position: relative;
  text-align: center;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
  z-index: 2; /* Ensure content is above any potential background elements */
}

.page-casino__main-title {
  font-size: clamp(2.5em, 6vw, 3.8em); /* Use clamp for responsive H1 */
  color: var(--fun79-gold-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-description {
  font-size: 1.3em;
  color: var(--fun79-text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__card-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background: var(--fun79-btn-gradient);
  color: var(--fun79-text-main);
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--fun79-glow-color);
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: var(--fun79-gold-color);
  border: 2px solid var(--fun79-gold-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-secondary:hover {
  background-color: var(--fun79-gold-color);
  color: var(--fun79-bg-main);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Introduction Section */
.page-casino__introduction-section,
.page-casino__games-overview,
.page-casino__promotions-section,
.page-casino__how-to-start,
.page-casino__cta-bottom {
  padding: 80px 0;
  background-color: var(--fun79-bg-main);
  border-top: 1px solid var(--fun79-divider-color);
}

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

.page-casino__game-card {
  background-color: var(--fun79-bg-card);
  border: 1px solid var(--fun79-border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--fun79-text-main);
}

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

.page-casino__card-title {
  font-size: 1.5em;
  color: var(--fun79-gold-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__card-description {
  font-size: 0.95em;
  color: var(--fun79-text-secondary);
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-casino__card-button {
  background: var(--fun79-btn-gradient);
  color: var(--fun79-text-main);
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Push button to bottom */
}

.page-casino__card-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* Promotions Section */
.page-casino__promotion-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-casino__promotion-list li {
  background-color: var(--fun79-bg-card);
  border: 1px solid var(--fun79-border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  color: var(--fun79-text-secondary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__promotion-list li strong {
  color: var(--fun79-text-main);
  font-size: 1.1em;
}

/* Security Section */
.page-casino__security-section {
  padding: 80px 0;
  background-color: var(--fun79-secondary-color);
  color: #333333; /* Light background, use dark text */
  border-top: 1px solid var(--fun79-divider-color);
}

.page-casino__security-section .page-casino__section-title {
  color: #000000; /* Darker title for contrast */
}

.page-casino__security-section .page-casino__text-block {
  color: #333333;
}

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

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

.page-casino__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-casino__feature-title {
  font-size: 1.4em;
  color: var(--fun79-primary-color);
  margin-bottom: 10px;
}

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

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

.page-casino__step-item {
  background-color: var(--fun79-bg-card);
  border: 1px solid var(--fun79-border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--fun79-gold-color);
  margin-bottom: 15px;
  display: block;
}

.page-casino__step-title {
  font-size: 1.5em;
  color: var(--fun79-text-main);
  margin-bottom: 10px;
}

.page-casino__step-description {
  font-size: 0.95em;
  color: var(--fun79-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: var(--fun79-secondary-color);
  color: #333333; /* Light background, use dark text */
  border-top: 1px solid var(--fun79-divider-color);
}

.page-casino__faq-section .page-casino__section-title {
  color: #000000;
}

.page-casino__faq-list {
  margin-top: 40px;
}

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

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--fun79-primary-color);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

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

.page-casino__faq-question:hover {
  background-color: #f0f0f0;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--fun79-primary-color);
  margin-left: 15px;
}

.page-casino__faq-answer {
  padding: 15px 25px;
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-casino__main-title {
    font-size: clamp(2.2em, 5vw, 3em);
  }
  .page-casino__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-casino__container {
    padding: 0 15px;
  }

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

  .page-casino__hero-content {
    margin-top: 30px;
  }

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

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

  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent buttons from touching edges */
  }

  .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: 15px 20px;
  }

  .page-casino__introduction-section,
  .page-casino__games-overview,
  .page-casino__promotions-section,
  .page-casino__security-section,
  .page-casino__how-to-start,
  .page-casino__faq-section,
  .page-casino__cta-bottom {
    padding: 40px 0;
  }

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

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

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

  .page-casino__card-image {
    height: 200px;
  }

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

  .page-casino__faq-answer {
    padding: 10px 20px;
    font-size: 0.95em;
  }

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

  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-image-wrapper,
  .page-casino__game-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 and padding-right are already set on .page-casino__container for content */
  }

  /* Ensure no overflow for containers that wrap images/buttons */
  .page-casino__hero-image-wrapper,
  .page-casino__cta-buttons,
  .page-casino__game-grid,
  .page-casino__feature-grid,
  .page-casino__steps-grid {
    overflow: hidden !important;
  }
}