/* style/casino.css */

/* Base styles for the page-casino scope */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the page, will be #F2FFF6 */
  background-color: var(--background-color); /* Inherited from shared.css, expected to be dark */
}

/* Color variables based on custom palette */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-color: #08160F; /* Explicitly set for content areas if needed, but body uses shared.css */
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* Section styling */
.page-casino__hero-section,
.page-casino__about-section,
.page-casino__games-section,
.page-casino__advantages-section,
.page-casino__guide-section,
.page-casino__faq-section,
.page-casino__conclusion-section {
  padding: 60px 0;
  position: relative;
  overflow: hidden; /* Ensure content doesn't overflow */
}

/* Fixed header offset: body { padding-top: var(--header-offset); } is in shared.css */
/* Page sections should only have small decorative top padding, not var(--header-offset) */
.page-casino__hero-section {
  padding-top: 10px; /* Small decorative padding, body handles main offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-main);
  background-color: var(--background-color);
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height to maintain aspect ratio */
  overflow: hidden;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure image covers the area */
}

.page-casino__hero-content {
  max-width: 900px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.page-casino__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Flexible H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold-color); /* Using gold for main title for emphasis */
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Subtle glow */
}

.page-casino__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

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

/* Container for general content */
.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section titles */
.page-casino__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold-color);
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-casino__section-title--dark {
  color: var(--primary-color); /* For light background sections */
}

/* Text blocks */
.page-casino__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-casino__text-block--dark {
  color: #333333; /* Dark text for light background sections */
}

.page-casino__text-link {
  color: var(--gold-color);
  text-decoration: underline;
}

.page-casino__text-link--dark {
  color: var(--primary-color);
}

/* Dark and Light background sections */
.page-casino__dark-section {
  background-color: var(--card-bg); /* Dark green background */
  color: var(--text-main);
}

.page-casino__light-bg {
  background-color: var(--text-main); /* Very light green/white background */
  color: #333333; /* Dark text for light background */
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Ensure padding/border included in width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-casino__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-casino__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  box-shadow: 0 2px 8px rgba(242, 193, 78, 0.2);
}

.page-casino__btn-secondary:hover {
  background-color: var(--gold-color);
  color: var(--background-color); /* Dark text on gold hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(242, 193, 78, 0.4);
}

.page-casino__btn-primary--dark,
.page-casino__btn-secondary--dark {
  /* Specific styling for buttons on light backgrounds if needed, or just let them inherit */
  color: #ffffff; /* Primary button on light bg */
  border-color: var(--primary-color);
}

.page-casino__btn-secondary--dark {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-casino__btn-secondary--dark:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* Images */
.page-casino__game-image,
.page-casino__advantage-image,
.page-casino__guide-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* Game categories */
.page-casino__game-category {
  margin-bottom: 60px;
  padding: 30px;
  background-color: var(--card-bg); /* Dark card background */
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  color: var(--text-main);
}

.page-casino__game-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--gold-color);
}

.page-casino__game-title--dark {
  color: var(--primary-color); /* For light background sections */
}

/* Advantages section */
.page-casino__advantage-item {
  margin-bottom: 40px;
  padding: 30px;
  background-color: var(--card-bg);
  border: 1px solid var(--divider-color);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  color: var(--text-main);
}

.page-casino__advantage-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--gold-color);
}

.page-casino__advantage-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Guide section */
.page-casino__guide-step {
  margin-bottom: 40px;
  padding: 30px;
  background-color: var(--card-bg);
  border: 1px solid var(--divider-color);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  color: var(--text-main);
}

.page-casino__guide-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--gold-color);
}

.page-casino__guide-title--dark {
  color: var(--primary-color);
}

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

.page-casino__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--divider-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--card-bg);
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default marker for details summary */
}

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

.page-casino__faq-question:hover {
  background-color: var(--deep-green);
}

.page-casino__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color);
  transition: transform 0.3s ease;
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to cross */
}

.page-casino__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Conclusion/CTA section */
.page-casino__cta-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Responsive design */
@media (max-width: 1024px) {
  .page-casino__hero-image-wrapper {
    max-height: 500px;
  }
}

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

  .page-casino__hero-section,
  .page-casino__about-section,
  .page-casino__games-section,
  .page-casino__advantages-section,
  .page-casino__guide-section,
  .page-casino__faq-section,
  .page-casino__conclusion-section {
    padding: 40px 0;
  }

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

  /* Hero section */
  .page-casino__hero-section {
    padding-top: 10px !important; /* Small decorative padding */
  }

  .page-casino__hero-image-wrapper {
    max-height: 300px;
  }

  .page-casino__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

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

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

  /* Buttons */
  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-casino__advantage-buttons,
  .page-casino__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
  }

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

  /* Section titles */
  .page-casino__section-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-casino__game-title,
  .page-casino__advantage-title,
  .page-casino__guide-title {
    font-size: 1.4rem;
  }

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

  /* Content area images: min 200px requirement. Ensure CSS doesn't shrink below */
  .page-casino__game-image,
  .page-casino__advantage-image,
  .page-casino__guide-image {
    min-width: 200px;
    min-height: 200px;
  }
}