/* style/casino.css */

/* BEM Naming: page-casino__element-name */
/* Colors: #11A84E (Primary), #22C768 (Secondary) */
/* Custom Colors: Background: #08160F, Card BG: #11271B, Text Main: #F2FFF6, Text Secondary: #A7D9B8, Button: linear-gradient(180deg, #2AD16F 0%, #13994A 100%), Border: #2E7A4E, Divider: #1E3A2A, Glow: #57E38D, Gold: #F2C14E, Deep Green: #0A4B2C */

.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main for dark background */
  background-color: #08160F; /* Background */
}

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

.page-casino__dark-section {
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
  padding: 60px 0;
}

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

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

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6);
  min-width: 200px;
  min-height: 200px;
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  margin-top: -200px; /* Overlap with image for visual effect, but not text on image */
  background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, #08160F 100%);
  border-radius: 10px;
}

.page-casino__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: bold;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-casino__subtitle {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-casino__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-casino__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: #11A84E; /* Primary */
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-casino__text-block {
  font-size: 1.1em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  text-align: justify;
}

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

.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.1em;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  min-height: 50px;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: #F2C14E; /* Gold */
  border: 2px solid #F2C14E; /* Gold */
}

.page-casino__btn-secondary:hover {
  background-color: #F2C14E;
  color: #08160F; /* Background */
  transform: translateY(-2px);
}

.page-casino__games-section,
.page-casino__guide-section,
.page-casino__faq-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

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

.page-casino__game-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 450px; /* Ensure cards have some height */
}

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

.page-casino__game-title {
  font-size: 1.8em;
  color: #F2C14E; /* Gold */
  margin: 20px 0 10px;
}

.page-casino__game-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1em;
  padding: 0 20px;
  flex-grow: 1;
}

.page-casino__game-card .page-casino__btn-primary {
  margin-top: 20px;
  width: calc(100% - 40px);
  margin-left: 20px;
  margin-right: 20px;
}

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

.page-casino__promotions-section {
  background-color: #0A4B2C; /* Deep Green */
  padding: 60px 0;
}

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

.page-casino__promo-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px; /* Ensure cards have some height */
}

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

.page-casino__promo-title {
  font-size: 1.8em;
  color: #F2C14E; /* Gold */
  margin: 20px 0 10px;
}

.page-casino__promo-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1em;
  padding: 0 20px;
  flex-grow: 1;
}

.page-casino__promo-card .page-casino__btn-primary {
  margin-top: 20px;
  width: calc(100% - 40px);
  margin-left: 20px;
  margin-right: 20px;
}

.page-casino__small-text {
  font-size: 0.9em;
  color: #A7D9B8;
  text-align: center;
  margin-top: 30px;
}

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

.page-casino__step-item {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 450px;
}

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

.page-casino__step-title {
  font-size: 1.8em;
  color: #F2C14E; /* Gold */
  margin: 20px 0 10px;
}

.page-casino__step-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1em;
  padding: 0 20px;
  flex-grow: 1;
}

.page-casino__step-item .page-casino__btn-primary {
  margin-top: 20px;
  width: calc(100% - 40px);
  margin-left: 20px;
  margin-right: 20px;
}

.page-casino__advantages-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-casino__advantage-item {
  background-color: #11271B; /* Card BG */
  border-left: 5px solid #11A84E; /* Primary */
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-size: 1.1em;
  color: #F2FFF6; /* Text Main */
}

.page-casino__advantage-item strong {
  color: #F2C14E; /* Gold */
}

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

.page-casino__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  min-width: 200px;
  min-height: 200px;
}

.page-casino__faq-list {
  margin-top: 40px;
}

.page-casino__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Text Main */
}

.page-casino__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #F2C14E; /* Gold */
  background-color: #1E3A2A; /* Divider */
}

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

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: #2AD16F;
}

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

.page-casino__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  border-top: 1px solid #2E7A4E; /* Border */
}

.page-casino__call-to-action {
  background-color: #0A4B2C; /* Deep Green */
  padding: 80px 0;
  text-align: center;
}

.page-casino__call-to-action .page-casino__section-title {
  color: #F2C14E; /* Gold */
}

.page-casino__call-to-action .page-casino__text-block {
  max-width: 800px;
  margin: 0 auto 40px;
}

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

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

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

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

  .page-casino__subtitle {
    font-size: 1em;
  }

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

  .page-casino__text-block {
    font-size: 1em;
  }

  .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: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0;
    margin-right: 0;
  }

  .page-casino img {
    max-width: 100% !important;
    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__cta-buttons,
  .page-casino__button-group,
  .page-casino__btn-container,
  .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: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

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

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

  .page-casino__hero-image {
    filter: brightness(0.4);
  }

  .page-casino__hero-content {
    background: linear-gradient(180deg, rgba(8, 22, 15, 0.9) 0%, #08160F 100%);
  }
}