/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #0a0a0a, so text must be light */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-casino__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background: linear-gradient(135deg, #0a0a0a 0%, #26A9E0 100%);
  text-align: center;
  overflow: hidden;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-casino__hero-content {
  padding: 40px 20px 60px;
  position: relative;
  z-index: 1;
}

.page-casino__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 1.25rem;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px;
}

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

.page-casino__cta-buttons--center {
  margin-top: 30px;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

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

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

.page-casino__btn-primary--large {
  padding: 18px 35px;
  font-size: 1.1rem;
}

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

.page-casino__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-casino__intro-section,
.page-casino__games-section,
.page-casino__advantages-section,
.page-casino__promotions-section,
.page-casino__register-guide-section,
.page-casino__faq-section,
.page-casino__conclusion-section {
  padding: 60px 0;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-casino__secondary-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); /* Responsive font size */
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-casino__secondary-title--video {
  margin-bottom: 20px;
}

.page-casino__tertiary-title {
  font-size: clamp(1.4rem, 3vw, 2rem); /* Responsive font size */
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-casino__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-casino__text-block a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-casino__text-block a:hover {
  color: #1a8cc2;
}

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

.page-casino__game-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly visible card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-casino__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-casino__card-title {
  font-size: 1.5rem;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__card-description {
  font-size: 1rem;
  color: #e0e0e0;
  padding: 0 15px;
  flex-grow: 1;
}

.page-casino__card-description a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-casino__card-description a:hover {
  color: #1a8cc2;
}

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

.page-casino__advantage-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__advantage-title {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-casino__promo-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  font-size: 1.1rem;
  color: #f0f0f0;
}

.page-casino__promo-list li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 25px;
}

.page-casino__promo-list li::before {
  content: '⚡'; /* Unicode lightning bolt */
  position: absolute;
  left: 0;
  color: #26A9E0;
}

.page-casino__promo-list li a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-casino__promo-list li a:hover {
  color: #1a8cc2;
}

.page-casino__promo-image-wrapper {
  margin-top: 40px;
  text-align: center;
}

.page-casino__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.page-casino__video-section {
  position: relative;
  padding: 60px 0;
  background-color: #0a0a0a;
  color: #ffffff;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-casino__video-description {
  font-size: 1.1rem;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-casino__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1280px; /* Max width for the video */
  margin: 0 auto;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio */
}

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

.page-casino__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
  background: rgba(0, 0, 0, 0); /* Invisible overlay */
}

.page-casino__faq-section {
  padding-bottom: 80px;
}

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

.page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(38, 169, 224, 0.1); /* Light blue tint for summary */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}

.page-casino__faq-item[open] > .page-casino__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-casino__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-casino__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-casino__faq-answer {
  padding: 20px;
  font-size: 1.05rem;
  color: #e0e0e0;
  text-align: left;
}

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

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

.page-casino__faq-answer a:hover {
  color: #1a8cc2;
}

/* Ensure images are responsive */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-casino {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-casino__container {
    padding: 0 15px;
  }

  .page-casino__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

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

  .page-casino__hero-content {
    padding: 30px 15px;
  }

  .page-casino__main-title {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 15px;
  }

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

  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add horizontal padding for buttons */
  }

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

  .page-casino__btn-primary--large {
    padding: 15px 25px;
  }

  .page-casino__intro-section,
  .page-casino__games-section,
  .page-casino__advantages-section,
  .page-casino__promotions-section,
  .page-casino__register-guide-section,
  .page-casino__faq-section,
  .page-casino__conclusion-section {
    padding: 40px 0;
  }

  .page-casino__secondary-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-casino__tertiary-title {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-casino__text-block {
    font-size: 1rem;
    margin-bottom: 15px;
  }

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

  .page-casino__advantages-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__promo-list {
    font-size: 1rem;
    margin: 20px 0;
  }

  .page-casino__promo-list li {
    margin-bottom: 10px;
  }

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

  .page-casino__game-card,
  .page-casino__advantage-item,
  .page-casino__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video responsiveness */
  .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: 0; /* Container padding already handles this */
    padding-right: 0; /* Container padding already handles this */
    overflow: hidden !important;
  }
  .page-casino__video-section {
    padding-top: 10px !important;
  }

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

  .page-casino__faq-answer {
    font-size: 0.95rem;
    padding: 15px;
  }
}