/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
  background-color: var(--background-color, #ffffff); /* Ensure it respects shared background */
}

/* Ensure first section has minimal top padding, body handles header offset */
.page-casino__hero-section,
.page-casino__intro-section,
.page-casino__features-section,
.page-casino__games-overview,
.page-casino__live-experience-section,
.page-casino__promotions-section,
.page-casino__security-section,
.page-casino__faq-section,
.page-casino__cta-final-section {
  padding-top: 10px; /* Small decorative top margin */
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.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, 42px);
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-casino__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-casino__center-text {
  text-align: center;
}

/* Hero Section */
.page-casino__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding */
  color: #ffffff;
  position: relative;
  text-align: center;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-casino__hero-content {
  max-width: 900px;
  margin-top: 40px;
  z-index: 1;
}

.page-casino__main-title {
  font-size: clamp(32px, 5vw, 56px); /* Use clamp for H1 */
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-casino__tagline {
  font-size: clamp(18px, 2.5vw, 24px);
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
  max-width: 100%;
}

.page-casino__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-casino__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-casino__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a78a2;
  border-color: #1a78a2;
}

.page-casino__btn-large {
  padding: 18px 35px;
  font-size: 20px;
}

/* Dark/Light Background Colors */
.page-casino__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-casino__dark-bg .page-casino__section-title,
.page-casino__dark-bg .page-casino__feature-title,
.page-casino__dark-bg .page-casino__promo-title a {
  color: #ffffff;
}

.page-casino__dark-bg .page-casino__section-description,
.page-casino__dark-bg .page-casino__feature-text,
.page-casino__dark-bg .page-casino__promo-text,
.page-casino__dark-bg .page-casino__security-paragraph {
  color: #f0f0f0;
}

.page-casino__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-casino__feature-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-casino__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-casino__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__feature-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-casino__feature-text {
  font-size: 16px;
  color: #f0f0f0;
}

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

.page-casino__game-card {
  background: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding-bottom: 20px;
}

.page-casino__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-casino__game-title {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 0 10px;
}

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

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

.page-casino__game-text {
  font-size: 16px;
  color: #555555;
  padding: 0 20px;
}

/* Live Experience Section */
.page-casino__live-experience-section {
  text-align: center;
}

.page-casino__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-casino__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

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

.page-casino__promo-card {
  background: #f0f8ff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.page-casino__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-casino__promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-casino__promo-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

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

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

.page-casino__promo-text {
  font-size: 16px;
  color: #555555;
}

/* Security Section */
.page-casino__security-section {
  padding-bottom: 80px;
}

.page-casino__security-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-casino__security-image {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-casino__security-text-block {
  flex: 1;
  min-width: 300px;
  color: #f0f0f0;
}

.page-casino__security-subtitle {
  font-size: 26px;
  font-weight: 700;
  margin-top: 25px;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-casino__security-paragraph {
  font-size: 17px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

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

.page-casino__faq-item {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-casino__faq-item[open] {
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.page-casino__faq-question::-webkit-details-marker {
  display: none;
}

.page-casino__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #26A9E0;
  line-height: 1;
}

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

.page-casino__faq-answer p {
  margin-bottom: 10px;
}

.page-casino__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
}

.page-casino__faq-answer a:hover {
  text-decoration: underline;
}

/* Final CTA Section */
.page-casino__cta-final-section {
  padding: 80px 20px;
}

.page-casino__cta-final-section .page-casino__section-title {
  color: #ffffff;
}

.page-casino__cta-final-section .page-casino__section-description {
  color: #f0f0f0;
}

.page-casino__button-group {
  margin-top: 40px;
  gap: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-image-wrapper {
    max-height: 60vh;
  }
  .page-casino__security-content {
    flex-direction: column;
    text-align: center;
  }
  .page-casino__security-image {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section,
  .page-casino__intro-section,
  .page-casino__features-section,
  .page-casino__games-overview,
  .page-casino__live-experience-section,
  .page-casino__promotions-section,
  .page-casino__security-section,
  .page-casino__faq-section,
  .page-casino__cta-final-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__main-title {
    font-size: clamp(28px, 8vw, 42px) !important;
  }

  .page-casino__tagline {
    font-size: clamp(16px, 4vw, 20px) !important;
  }

  .page-casino__section-title {
    font-size: clamp(24px, 6vw, 36px) !important;
  }

  .page-casino__section-description {
    font-size: 16px !important;
  }

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

  /* Images responsive */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__feature-card,
  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__faq-item,
  .page-casino__security-content,
  .page-casino__security-text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Video responsive */
  .page-casino video,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-casino__video-section,
  .page-casino__video-container,
  .page-casino__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-casino__video-section {
    padding-top: 10px !important;
  }
  .page-casino__video-wrapper {
    padding-bottom: 75% !important; /* Adjust aspect ratio for mobile if needed, e.g., 4:3 */
  }

  /* Buttons responsive */
  .page-casino__cta-button,
  .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;
    padding-right: 15px;
  }
  
  .page-casino__cta-buttons,
  .page-casino__button-group,
  .page-casino__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }

  .page-casino__feature-card,
  .page-casino__game-card,
  .page-casino__promo-card {
    padding: 20px;
  }

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

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

  .page-casino__security-image {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-content {
    margin-top: 20px;
  }
  .page-casino__main-title {
    font-size: clamp(24px, 10vw, 36px) !important;
  }
  .page-casino__tagline {
    font-size: clamp(15px, 4.5vw, 18px) !important;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    font-size: 16px;
    padding: 12px 20px;
  }
  .page-casino__section-title {
    font-size: clamp(22px, 7vw, 30px) !important;
  }
  .page-casino__section-description {
    font-size: 15px !important;
  }
}