/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-casino__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #26A9E0;
  line-height: 1.2;
}

.page-casino__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.1;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

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

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

.page-casino__highlight {
  color: #26A9E0;
  font-weight: bold;
}

/* Buttons */
.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  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;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-casino__btn-small {
  padding: 10px 20px;
  font-size: 0.95rem;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  overflow: hidden;
}

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

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

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  max-width: 900px;
  margin-top: -150px; /* Overlap image slightly for visual effect, not covering text */
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent background for text readability */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

/* General Section Styling */
.page-casino__intro-section,
.page-casino__link-section,
.page-casino__games-section,
.page-casino__promotions-section,
.page-casino__advantages-section,
.page-casino__guide-section,
.page-casino__faq-section,
.page-casino__cta-bottom,
.page-casino__video-section {
  padding: 60px 0;
  box-sizing: border-box;
}

.page-casino__dark-section {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter than body background for contrast */
  color: #ffffff;
}

.page-casino__light-bg {
  background-color: rgba(255, 255, 255, 0.1); /* Lighter background for contrast */
  color: #ffffff;
}

/* Image Styling within content */
.page-casino__image-wrapper {
  margin-bottom: 30px;
  text-align: center;
}

.page-casino__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-casino__game-item,
.page-casino__promo-item,
.page-casino__advantage-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-casino__game-title,
.page-casino__promo-title,
.page-casino__advantage-title {
  font-size: 1.4rem;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-casino__game-item p,
.page-casino__promo-item p,
.page-casino__advantage-item p {
  color: #f0f0f0;
}

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

.page-casino__guide-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__guide-card-title {
  font-size: 1.5rem;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
}

.page-casino__guide-card ol {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-casino__guide-card ol li {
  margin-bottom: 10px;
}

.page-casino__guide-card .page-casino__btn-primary,
.page-casino__guide-card .page-casino__btn-secondary {
  margin-top: 15px;
  width: calc(100% - 30px);
}

/* Video Section */
.page-casino__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 8px;
  margin-top: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

/* FAQ Section */
.page-casino__faq-list {
  margin-top: 40px;
}

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

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-casino__faq-item[open] .page-casino__faq-toggle {
  content: '−';
}

.page-casino__faq-item details > summary {
  list-style: none;
}

.page-casino__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-casino__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1rem;
  color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-casino__hero-content {
    margin-top: -100px;
  }
}

@media (max-width: 768px) {
  .page-casino__container {
    padding: 0 15px;
  }

  .page-casino__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

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

  .page-casino__description {
    font-size: 1rem;
  }

  .page-casino__text-block,
  .page-casino p,
  .page-casino li {
    font-size: 15px;
    line-height: 1.6;
  }

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

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

  .page-casino__hero-section {
    padding-bottom: 40px;
  }

  .page-casino__hero-content {
    margin-top: -80px; /* Adjust overlap for mobile */
    padding: 15px;
  }

  .page-casino__intro-section,
  .page-casino__link-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__advantages-section,
  .page-casino__guide-section,
  .page-casino__faq-section,
  .page-casino__cta-bottom,
  .page-casino__video-section {
    padding: 40px 0;
  }

  .page-casino__image-content,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-casino__image-wrapper,
  .page-casino__video-wrapper,
  .page-casino__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__game-list,
  .page-casino__promo-list,
  .page-casino__advantage-list,
  .page-casino__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__game-item,
  .page-casino__promo-item,
  .page-casino__advantage-item,
  .page-casino__guide-card {
    padding: 20px;
  }

  .page-casino__game-title,
  .page-casino__promo-title,
  .page-casino__advantage-title,
  .page-casino__guide-card-title {
    font-size: 1.3rem;
  }

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

  .page-casino__faq-answer {
    padding: 10px 20px 15px 20px;
  }
  
  .page-casino__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-casino__hero-content {
    margin-top: -60px;
  }
}