/* style/casino.css */

/* Body background is dark from shared.css, so main text should be light */
.page-casino {
  color: #ffffff; /* Default text color for the page */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-casino__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
  line-height: 1.2;
}

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

/* 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, larger bottom */
  min-height: 600px;
  overflow: hidden;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  position: relative;
  margin-bottom: 40px; /* Space between image and content */
}

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

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

.page-casino__main-title {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  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: 700;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

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

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

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

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

/* Introduction Section */
.page-casino__introduction-section {
  padding: 80px 0;
  background: #ffffff;
  color: #333333;
}

.page-casino__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background: #0a0a0a; /* Dark background from body */
  color: #ffffff;
}

.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.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.page-casino__game-card:hover {
  transform: translateY(-10px);
}

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

.page-casino__card-title {
  font-size: 1.5em;
  margin: 20px 10px 10px 10px;
  color: #26A9E0;
}

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

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

.page-casino__card-text {
  font-size: 0.95em;
  color: #cccccc;
  padding: 0 15px;
}

/* Registration Guide Section */
.page-casino__registration-guide {
  padding: 80px 0;
  background: #f8f8f8;
  color: #333333;
}

.page-casino__registration-guide .page-casino__section-title {
  color: #333333;
}

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

.page-casino__guide-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-casino__guide-icon {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__item-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-casino__guide-list {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
  text-align: left;
  color: #555555;
}

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

.page-casino__guide-list li::before {
  content: '✓';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
  background: #0a0a0a;
  color: #ffffff;
}

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

.page-casino__promo-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
}

.page-casino__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-casino__button-group {
  text-align: center;
  margin-top: 50px;
}

/* Payment Section */
.page-casino__payment-section {
  padding: 80px 0;
  background: #f8f8f8;
  color: #333333;
}

.page-casino__payment-section .page-casino__section-title {
  color: #333333;
}

.page-casino__payment-section .page-casino__description {
  color: #555555;
}

.page-casino__payment-methods {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.page-casino__method-item {
  text-align: center;
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  width: 180px;
}

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

.page-casino__method-name {
  font-weight: 600;
  color: #333333;
  font-size: 1.1em;
}

/* App Download Section */
.page-casino__app-download {
  padding: 80px 0;
  background: #0a0a0a;
  color: #ffffff;
}

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

.page-casino__app-text {
  flex: 1;
  max-width: 600px;
  text-align: center;
}

.page-casino__app-image-wrapper {
  flex-shrink: 0;
  width: 300px;
  height: 400px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background: #f8f8f8;
  color: #333333;
}

.page-casino__faq-section .page-casino__section-title {
  color: #333333;
}

.page-casino__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-casino__faq-item {
  background: #ffffff;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.page-casino__faq-item[open] .page-casino__faq-question {
  border-bottom: 1px solid #e0e0e0;
}

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

.page-casino__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-left: 15px;
}

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

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__main-title {
    font-size: 2.8em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__hero-image {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-casino__hero-section {
    padding-bottom: 40px;
    min-height: 450px;
  }
  .page-casino__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-casino__hero-image {
    height: 350px;
  }
  .page-casino__main-title {
    font-size: 2.2em;
  }
  .page-casino__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-casino__description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .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__introduction-section,
  .page-casino__games-section,
  .page-casino__registration-guide,
  .page-casino__promotions-section,
  .page-casino__payment-section,
  .page-casino__app-download,
  .page-casino__faq-section {
    padding: 50px 0;
  }
  .page-casino__game-grid,
  .page-casino__guide-grid,
  .page-casino__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-casino__game-image,
  .page-casino__promo-image {
    height: 180px;
  }
  .page-casino__guide-icon {
    width: 100px;
    height: auto;
  }
  .page-casino__app-content {
    flex-direction: column-reverse; /* Image below text on mobile */
    gap: 30px;
  }
  .page-casino__app-text {
    max-width: 100%;
    padding: 0 15px;
  }
  .page-casino__app-image-wrapper {
    width: 250px;
    height: 333px;
  }
  .page-casino__payment-methods {
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
  }
  .page-casino__method-item {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  /* Mobile image responsiveness */
  .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__hero-section,
  .page-casino__introduction-section,
  .page-casino__games-section,
  .page-casino__registration-guide,
  .page-casino__promotions-section,
  .page-casino__payment-section,
  .page-casino__app-download,
  .page-casino__faq-section,
  .page-casino__hero-image-wrapper,
  .page-casino__app-image-wrapper,
  .page-casino__cta-buttons,
  .page-casino__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-casino__hero-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-casino__main-title {
    font-size: 1.8em;
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
  .page-casino__hero-image {
    height: 250px;
  }
  .page-casino__card-title {
    font-size: 1.3em;
  }
  .page-casino__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-casino__faq-answer {
    padding: 10px 20px 15px 20px;
  }
}

/* Ensure color contrast for dark background */
.page-casino__dark-bg {
  background: #0a0a0a;
  color: #ffffff;
}

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

.page-casino__introduction-section .page-casino__section-title,
.page-casino__registration-guide .page-casino__section-title,
.page-casino__payment-section .page-casino__section-title,
.page-casino__faq-section .page-casino__section-title {
  color: #26A9E0;
}

.page-casino__introduction-section .page-casino__text-block,
.page-casino__registration-guide .page-casino__guide-list li,
.page-casino__payment-section .page-casino__description,
.page-casino__payment-section .page-casino__text-block,
.page-casino__faq-section .page-casino__faq-answer {
  color: #555555;
}

.page-casino__payment-section .page-casino__method-name {
  color: #333333;
}

/* Specific color for login button */
.page-casino__btn-secondary[href*="redirect"] {
  color: #EA7C07;
  border-color: #EA7C07;
}

.page-casino__btn-secondary[href*="redirect"]:hover {
  background: #EA7C07;
  color: #ffffff;
}

/* All content area images must be >= 200px */
.page-casino__game-image, .page-casino__promo-image, .page-casino__guide-icon, .page-casino__method-icon, .page-casino__app-image {
  min-width: 200px;
  min-height: 200px;
}

/* Override specific smaller images to meet minimum */
.page-casino__guide-icon {
  min-width: 200px;
  min-height: 150px; /* Adjusted to maintain aspect ratio with 300x200 request, but still > 200px in one dimension */
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 150px;
}

.page-casino__method-icon {
  min-width: 200px;
  min-height: 150px; /* Adjusted to maintain aspect ratio with 200x150 display */
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 150px;
}

.page-casino__app-image {
  min-width: 200px;
  min-height: 200px;
}

/* Ensure no filter on images */
.page-casino img {
  filter: none;
}