/* style/casino.css */

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

/* Base styles for the casino page */
.page-casino {
  color: var(--page-casino-text-main); /* Default text color for dark background */
  background-color: var(--page-casino-bg-main); /* Overall page background */
}

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

.page-casino__section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--page-casino-gold); /* Gold for titles */
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}

.page-casino__text-block {
  font-size: 18px;
  line-height: 1.6;
  color: var(--page-casino-text-main);
  margin-bottom: 20px;
}

.page-casino__text-block--center {
  text-align: center;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  min-height: 600px;
  overflow: hidden;
  background: var(--page-casino-bg-main);
}

.page-casino__hero-image-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
}

.page-casino__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  color: var(--page-casino-text-main);
}

.page-casino__main-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--page-casino-gold); /* Gold for main title */
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.5;
  margin-bottom: 40px;
  color: var(--page-casino-text-secondary);
}

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

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

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

.page-casino__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: var(--page-casino-gold);
  border: 2px solid var(--page-casino-gold);
  box-shadow: none;
}

.page-casino__btn-secondary:hover {
  background-color: var(--page-casino-gold);
  color: var(--page-casino-bg-main);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-secondary--small {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
}

/* Introduction Section */
.page-casino__introduction-section,
.page-casino__promotions-section,
.page-casino__faq-section {
  padding: 80px 0;
  background-color: #f2fff6; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-casino__introduction-section .page-casino__section-title,
.page-casino__promotions-section .page-casino__section-title,
.page-casino__faq-section .page-casino__section-title {
  color: var(--page-casino-deep-green); /* Darker green for titles on light bg */
}

.page-casino__introduction-section .page-casino__text-block,
.page-casino__promotions-section .page-casino__text-block,
.page-casino__faq-section .page-casino__text-block {
  color: #333333;
}

.page-casino__introduction-section a,
.page-casino__promotions-section a,
.page-casino__faq-section a {
  color: var(--page-casino-deep-green);
  text-decoration: underline;
}

.page-casino__introduction-section a:hover,
.page-casino__promotions-section a:hover,
.page-casino__faq-section a:hover {
  color: var(--page-casino-btn-gradient);
}

/* Games Section */
.page-casino__games-section,
.page-casino__security-section,
.page-casino__cta-final-section,
.page-casino__copyright-section {
  padding: 80px 0;
  background-color: var(--page-casino-bg-main);
  color: var(--page-casino-text-main);
}

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

.page-casino__card {
  background-color: var(--page-casino-bg-card); /* Card BG color */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-casino-border);
  color: var(--page-casino-text-main);
}

.page-casino__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.page-casino__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-casino__card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--page-casino-gold); /* Gold for card titles */
  padding: 0 15px;
}

.page-casino__card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-casino__card-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--page-casino-text-secondary);
  margin-bottom: 25px;
  padding: 0 15px;
}

/* Promotions Section */
.page-casino__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-casino__promo-item {
  background-color: #ffffff; /* White background for promo items */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  color: #333333;
}

.page-casino__promo-item:hover {
  transform: translateY(-5px);
}

.page-casino__promo-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--page-casino-deep-green);
  margin-bottom: 15px;
}

.page-casino__promo-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

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

.page-casino__feature-item {
  background-color: var(--page-casino-bg-card);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-casino-border);
  color: var(--page-casino-text-main);
}

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

.page-casino__feature-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--page-casino-gold);
  margin-bottom: 10px;
}

.page-casino__feature-item p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--page-casino-text-secondary);
}

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

.page-casino__faq-item {
  background-color: #ffffff; /* White background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: #333333;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--page-casino-deep-green);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-casino__faq-item[open] .page-casino__faq-question {
  background-color: #e8f5e9; /* Light green for open question */
}

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

.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  color: var(--page-casino-deep-green);
  margin-left: 15px;
}

.page-casino__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

/* Final CTA Section */
.page-casino__cta-final-section {
  text-align: center;
  padding: 100px 0;
}

.page-casino__cta-final-section .page-casino__section-title {
  color: var(--page-casino-gold);
}

.page-casino__cta-final-section .page-casino__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  color: var(--page-casino-text-secondary);
}

/* Copyright Section */
.page-casino__copyright-section {
  padding: 30px 0;
  text-align: center;
  background-color: var(--page-casino-deep-green);
  color: var(--page-casino-text-secondary);
  font-size: 14px;
}

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

  .page-casino__container,
  .page-casino__hero-section,
  .page-casino__introduction-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__security-section,
  .page-casino__faq-section,
  .page-casino__cta-final-section,
  .page-casino__copyright-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  .page-casino__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset */
    min-height: 450px;
  }

  .page-casino__hero-content {
    padding: 0;
  }

  .page-casino__main-title {
    font-size: clamp(32px, 9vw, 48px);
    margin-bottom: 15px;
  }

  .page-casino__hero-description {
    font-size: clamp(16px, 4vw, 20px);
    margin-bottom: 30px;
  }

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

  .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 !important;
    padding-right: 15px !important;
  }

  .page-casino__section-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 30px;
  }

  .page-casino__card-image,
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-casino__card,
  .page-casino__promo-item,
  .page-casino__feature-item {
    padding: 20px;
  }

  .page-casino__card-title {
    font-size: 20px;
  }

  .page-casino__feature-icon {
    width: 80px;
    height: 80px;
  }

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

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

  .page-casino__copyright-section {
    padding: 20px 15px;
  }
}