/* 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: #1a1a2e; /* Inherited from shared.css, explicitly set for clarity */
}

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

.page-casino__section-title {
  font-size: 2.5em;
  color: #F5B041;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-casino__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #F5B041;
  border-radius: 2px;
}

.page-casino__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 60px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__content-block {
  font-size: 1.05em;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.page-casino__dark-bg {
  background-color: #0A2342;
  color: #ffffff;
  padding: 80px 0;
}

.page-casino__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background-color: #F5B041;
  color: #0A2342;
  border: 2px solid #F5B041;
}

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

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

.page-casino__btn-secondary:hover {
  background-color: #F5B041;
  color: #0A2342;
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height for hero */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
  box-sizing: border-box;
}

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

.page-casino__hero-video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  object-fit: cover;
}

.page-casino__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.page-casino__hero-content {
  text-align: center;
  color: #ffffff;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-casino__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  color: #F5B041;
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.5;
  color: #f0f0f0;
}

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

.page-casino__game-card {
  background-color: #0A2342;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-casino__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
  border-bottom: 3px solid #F5B041;
  min-width: 200px;
  min-height: 200px;
}

.page-casino__game-title {
  font-size: 1.8em;
  color: #F5B041;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-casino__game-link {
  color: #F5B041;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__game-link:hover {
  color: #e09f30;
}

.page-casino__game-text {
  font-size: 1em;
  color: #e0e0e0;
  padding: 0 20px;
  flex-grow: 1;
}

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

.page-casino__promo-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 30px;
  color: #333333;
}

.page-casino__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  border-bottom: 3px solid #0A2342;
  min-width: 200px;
  min-height: 200px;
}

.page-casino__promo-title {
  font-size: 1.6em;
  color: #0A2342;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-casino__promo-link {
  color: #0A2342;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__promo-link:hover {
  color: #F5B041;
}

.page-casino__promo-text {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px;
}

/* Registration Guide */
.page-casino__guide-steps {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.page-casino__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  flex: 1 1 300px;
  max-width: 350px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-casino__step-title {
  font-size: 1.5em;
  color: #F5B041;
  margin-bottom: 15px;
}

.page-casino__step-text {
  font-size: 1em;
  color: #e0e0e0;
}

/* Security and Fairness */
.page-casino__security-fairness p {
  color: #333333;
}

/* Customer Service */
.page-casino__customer-service p {
  color: #e0e0e0;
}

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

.page-casino__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  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: 20px;
  background-color: #0A2342;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-casino__faq-question h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.1em;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #F5B041;
  transition: transform 0.3s ease;
}

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

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #333333;
}

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

.page-casino__faq-answer p {
  margin: 0;
  color: #333333;
}

/* Conclusion Section */
.page-casino__advantages-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.page-casino__advantages-list li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  font-size: 1.1em;
  color: #ffffff;
}

.page-casino__list-icon {
  color: #F5B041;
  font-size: 1.3em;
  margin-right: 10px;
}

.page-casino__call-to-action {
  font-size: 1.2em;
  text-align: center;
  color: #F5B041;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-casino__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Global image settings to ensure minimum size and no small icons */
.page-casino img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Ensure images fill their space without distortion */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 3em;
  }

  .page-casino__hero-description {
    font-size: 1.1em;
  }

  .page-casino__section-title {
    font-size: 2em;
  }

  .page-casino__game-grid,
  .page-casino__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  .page-casino__hero-section {
    height: 70vh;
    padding-top: var(--header-offset, 120px) !important; /* Mobile padding for header offset */
  }

  .page-casino__hero-title {
    font-size: 2.5em;
  }

  .page-casino__hero-description {
    font-size: 1em;
  }

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

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

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

  .page-casino__dark-bg,
  .page-casino__light-bg {
    padding: 60px 0;
  }

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

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

  .page-casino__content-block,
  .page-casino__game-text,
  .page-casino__promo-text,
  .page-casino__step-text,
  .page-casino__faq-answer p,
  .page-casino__advantages-list li {
    font-size: 0.9em;
  }

  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__step-item {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .page-casino__game-image,
  .page-casino__promo-image {
    height: 200px;
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

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

  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__step-item,
  .page-casino__hero-video-wrapper,
  .page-casino__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-casino__hero-video {
    object-fit: cover !important;
  }

  .page-casino__video-overlay-link {
    width: 100% !important;
    height: 100% !important;
  }

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

  .page-casino__faq-question h3 {
    font-size: 1em;
  }

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

  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px;
  }

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

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 2em;
  }

  .page-casino__hero-description {
    font-size: 0.9em;
  }

  .page-casino__section-title {
    font-size: 1.5em;
  }
}

/* Ensure all content area images are at least 200px */
.page-casino img:not(.shared-logo):not(.shared-icon) {
  min-width: 200px;
  min-height: 200px;
}

/* Specific content area img rules to prevent shrinking below 200px */
.page-casino__game-image,
.page-casino__promo-image {
  width: 100%; /* Use 100% width to fill container */
  height: auto; /* Maintain aspect ratio */
  object-fit: cover;
}

/* Ensure the video container respects header offset on desktop */
.page-casino__hero-section {
    padding-top: var(--header-offset, 120px);
}

/* Make sure any video element inside .page-casino is responsive */
.page-casino video {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-casino__hero-video-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 768px) {
    .page-casino video,
    .page-casino__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-casino__hero-video-wrapper,
    .page-casino__video-container,
    .page-casino__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0px; /* Hero video usually full width */
        padding-right: 0px; /* Hero video usually full width */
        overflow: hidden !important;
    }
    
    .page-casino__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}