/* style/casino.css */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark #1a1a2e, so text should be light */
}

.page-casino__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  /* Assuming shared.css handles body padding-top for header offset, so hero can be full height */
  padding-top: 0; 
}

.page-casino__hero-video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  z-index: 0;
}

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

.page-casino__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-casino__hero-title {
  font-size: 3.5em;
  color: #FFFFFF;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-casino__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino__btn-login,
.page-casino__btn-register {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-login {
  background-color: #C30808; /* Custom color for Login */
  color: #000000; /* Overridden to black for WCAG AA contrast on #C30808 (6.7:1) */
  border: 2px solid #C30808;
}

.page-casino__btn-register {
  background-color: #C30808; /* Custom color for Register */
  color: #000000; /* Overridden to black for WCAG AA contrast on #C30808 (6.7:1) */
  border: 2px solid #C30808;
}

.page-casino__btn-login:hover,
.page-casino__btn-register:hover {
  background-color: #a00606;
  transform: translateY(-3px);
}

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

.page-casino__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: #FFFFFF; /* Default for dark background sections */
}

.page-casino__section-title--dark {
  color: #333333; /* For light background sections */
}

.page-casino__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: #f0f0f0; /* Default for dark background sections */
}

.page-casino__text-block--dark {
  color: #333333; /* For light background sections */
}

.page-casino__text-block a {
  color: #FFFF00; /* Custom font color for login/register, but only for links in text */
  text-decoration: underline;
}

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

.page-casino__dark-bg {
  background-color: #1a1a2e; /* Body background color */
  color: #ffffff;
}

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

.page-casino__intro-section,
.page-casino__why-choose-us,
.page-casino__faq-section,
.page-casino__cta-section {
  padding: 80px 0;
}

.page-casino__games-section,
.page-casino__guide-section {
  padding: 80px 0;
}

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

.page-casino__game-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #333333;
}

.page-casino__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 15px 15px 0 0;
  display: block;
}

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

.page-casino__game-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-casino__btn-primary {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid #017439;
  margin-top: auto; /* Push button to bottom */
  max-width: calc(100% - 30px); /* Account for padding */
  margin-left: 15px; /* Center with padding */
  margin-right: 15px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary:hover {
  background-color: #005f2e;
}

.page-casino__btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: #017439;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #017439;
  max-width: calc(100% - 30px); /* Account for padding */
  margin-left: 15px; /* Center with padding */
  margin-right: 15px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-casino__feature-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-casino__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__feature-title {
  font-size: 1.4em;
  color: #FFFF00;
  margin-bottom: 10px;
}

.page-casino__feature-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-casino__guide-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  justify-content: center;
}

.page-casino__guide-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  padding: 30px;
  flex: 1 1 calc(50% - 15px);
  max-width: calc(50% - 15px);
  box-sizing: border-box;
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__guide-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  display: block;
}

.page-casino__guide-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
}

.page-casino__guide-list {
  list-style-type: decimal;
  padding-left: 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino__guide-list li {
  margin-bottom: 10px;
  font-size: 1em;
  color: #555555;
}

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

.page-casino__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-casino__faq-item summary {
  list-style: none;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #FFFF00;
  transition: background-color 0.3s ease;
}

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

.page-casino__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-casino__faq-toggle {
  margin-left: 15px;
  font-size: 1.5em;
  line-height: 1;
}

.page-casino__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #f0f0f0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 3em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__guide-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@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 video section needs explicit padding-top */
  }

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

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

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

  .page-casino__btn-login,
  .page-casino__btn-register,
  .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;
  }

  .page-casino__hero-video,
  .page-casino__hero-video-link,
  .page-casino video,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-casino__hero-section,
  .page-casino__video-section,
  .page-casino__video-container,
  .page-casino__video-wrapper,
  .page-casino__section,
  .page-casino__card,
  .page-casino__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

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

  .page-casino__game-grid,
  .page-casino__features-grid {
    grid-template-columns: 1fr;
  }

  .page-casino__guide-card {
    padding: 20px;
  }

  .page-casino__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }

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

  /* Ensure content area images are not too small */
  .page-casino__game-image,
  .page-casino__feature-icon,
  .page-casino__guide-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* Specific override for feature icons if they become too small by default */
  .page-casino__feature-icon {
    width: 100px !important; /* Keep icon size reasonable, but ensure min-width 200px is still met by parent or other styles if this were smaller */
    height: 100px !important;
  }

  /* Content area image size check - this applies to all img tags within .page-casino */
  .page-casino img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon):not(.shared-footer__game-provider) {
    min-width: 200px;
    min-height: 200px;
    width: auto;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 1.8em;
  }
  .page-casino__hero-description {
    font-size: 0.9em;
  }
  .page-casino__btn-login,
  .page-casino__btn-register {
    padding: 12px 20px;
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
}