/* style/casino.css */

/* Variables for colors */
:root {
  --fb777-primary: #F2C14E; /* Main Brand Color */
  --fb777-secondary: #FFD36B; /* Auxiliary Brand Color */
  --fb777-bg-dark: #0A0A0A; /* Page Background */
  --fb777-card-bg: #111111; /* Card Background */
  --fb777-text-main: #FFF6D6; /* Main Text Color */
  --fb777-border: #3A2A12; /* Border Color */
  --fb777-glow: #FFD36B; /* Glow Effect Color */
  --fb777-btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button Gradient */
}

/* Base styles for the page */
.page-casino {
  font-family: Arial, sans-serif;
  color: var(--fb777-text-main); /* Ensure text is visible on dark background */
  background-color: var(--fb777-bg-dark); /* Page background from custom color */
  line-height: 1.6;
}

/* Section container for consistent spacing */
.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--fb777-bg-dark);
}

.page-casino__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
}

.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 {
  max-width: 900px;
  z-index: 1;
  margin-top: -80px; /* Adjust to slightly overlap the bottom of the image for visual flow */
  position: relative;
  padding: 0 20px;
}

.page-casino__hero-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Using clamp for responsive H1 font size */
  font-weight: 700;
  color: var(--fb777-secondary); /* Gold color for title */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

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

/* General button styles */
.page-casino__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping by default */
  text-align: center;
  box-sizing: border-box;
}

.page-casino__btn--primary {
  background: var(--fb777-btn-gradient);
  color: #ffffff; /* White text on gradient button */
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.3);
}

.page-casino__btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.5);
}

.page-casino__btn--secondary {
  background: transparent;
  color: var(--fb777-secondary); /* Gold text on transparent button */
  border: 2px solid var(--fb777-secondary);
}

.page-casino__btn--secondary:hover {
  background: var(--fb777-secondary);
  color: var(--fb777-bg-dark); /* Dark text on gold hover */
  transform: translateY(-3px);
}

.page-casino__btn--link {
  background: transparent;
  color: var(--fb777-secondary);
  border: none;
  padding: 8px 0;
  font-size: 1em;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-casino__btn--link:hover {
  color: var(--fb777-primary);
}

.page-casino__btn--small {
  padding: 10px 20px;
  font-size: 0.95em;
  border-radius: 30px;
}

/* General Section Styling */
.page-casino__about-section,
.page-casino__how-to-join-section,
.page-casino__games-overview-section,
.page-casino__trust-section,
.page-casino__faq-section,
.page-casino__final-cta-section {
  padding: 80px 0;
  background-color: var(--fb777-bg-dark);
}

.page-casino__cta-section--dark {
  background-color: var(--fb777-card-bg); /* Darker background for CTA */
  text-align: center;
}

.page-casino__section-title {
  font-size: clamp(2em, 4vw, 2.8em);
  font-weight: 700;
  color: var(--fb777-secondary);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__section-title--light {
  color: var(--fb777-secondary);
}

.page-casino__section-intro,
.page-casino__section-description {
  font-size: 1.1em;
  color: var(--fb777-text-main);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-casino__section-description--light {
  color: var(--fb777-text-main);
}

/* Features Grid */
.page-casino__features-grid,
.page-casino__steps-grid,
.page-casino__games-grid,
.page-casino__info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__feature-card,
.page-casino__step-card,
.page-casino__game-card,
.page-casino__info-card {
  background-color: var(--fb777-card-bg); /* Card background color */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--fb777-border);
}

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

.page-casino__feature-title,
.page-casino__step-title,
.page-casino__game-title,
.page-casino__info-title {
  font-size: 1.6em;
  font-weight: 600;
  color: var(--fb777-secondary);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-casino__feature-image,
.page-casino__game-image {
  width: 100%;
  height: auto;
  min-height: 200px; /* Enforce min image size */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--fb777-border);
}

.page-casino__feature-text,
.page-casino__step-text,
.page-casino__game-text,
.page-casino__info-text {
  font-size: 1em;
  color: var(--fb777-text-main);
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to take available space */
}

/* How-to-Join specific styles */
.page-casino__step-icon {
  width: 60px;
  height: 60px;
  background: var(--fb777-btn-gradient);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(255, 211, 107, 0.4);
}

/* FAQ Section */
.page-casino__faq-section {
  padding-bottom: 80px;
}

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

.page-casino__faq-item {
  background-color: var(--fb777-card-bg);
  border: 1px solid var(--fb777-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--fb777-card-bg);
  color: var(--fb777-secondary);
  font-size: 1.2em;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

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

.page-casino__faq-q-text {
  margin: 0;
  color: var(--fb777-secondary);
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--fb777-secondary);
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  transform: rotate(45deg);
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: var(--fb777-card-bg);
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-casino__faq-a-text {
  margin: 0;
  color: var(--fb777-text-main);
  font-size: 1em;
}

/* Final CTA Section */
.page-casino__final-cta-section {
  padding-top: 60px;
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-casino__hero-content {
    margin-top: -40px;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding-bottom: 40px;
  }

  .page-casino__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-casino__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

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

  .page-casino__btn {
    width: 100% !important;
    max-width: 300px !important; /* Limit max width for better appearance on small screens */
    margin: 0 auto;
    white-space: normal !important; /* Allow text to wrap */
    word-wrap: break-word !important; /* Ensure long words break */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__btn--primary, .page-casino__btn--secondary {
    max-width: 80% !important;
  }

  .page-casino__about-section,
  .page-casino__how-to-join-section,
  .page-casino__games-overview-section,
  .page-casino__trust-section,
  .page-casino__faq-section,
  .page-casino__final-cta-section {
    padding: 40px 0;
  }

  .page-casino__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-casino__section-intro,
  .page-casino__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-casino__features-grid,
  .page-casino__steps-grid,
  .page-casino__games-grid,
  .page-casino__info-cards-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 20px;
  }
}