/* style/casino.css */

/* --- Base Styles --- */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color from custom palette */
  background-color: var(--background, #08160F); /* Default background from custom palette */
}

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

.page-casino__section {
  padding: 60px 0;
  text-align: center;
}

.page-casino__dark-section {
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-casino__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); /* Responsive H2 font size */
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
}

.page-casino__text-block {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--text-main, #F2FFF6);
}

.page-casino__text-secondary {
  color: var(--text-secondary, #A7D9B8);
}

/* --- Buttons --- */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  margin: 0 10px;
}

.page-casino__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border, #2E7A4E);
  margin: 0 10px;
}

.page-casino__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.page-casino__btn-small {
  padding: 8px 15px;
  font-size: 0.9rem;
}

.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Ensure container takes full width */
  box-sizing: border-box;
}

.page-casino__cta-center {
  margin-top: 40px;
}

/* --- Card Styles --- */
.page-casino__card {
  background-color: var(--card-bg, #11271B); /* Card background from custom palette */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a grid have equal height */
  box-sizing: border-box;
  color: var(--text-main, #F2FFF6);
}

.page-casino__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__card-image {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  max-height: 200px; /* Limit height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px;
}

.page-casino__card-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-main, #F2FFF6);
}

.page-casino__card-description {
  font-size: 0.95rem;
  color: var(--text-secondary, #A7D9B8);
  flex-grow: 1; /* Pushes button to bottom if content varies */
}

/* --- Hero Section --- */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image then text */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  box-sizing: border-box;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Max height for hero image */
  min-width: 200px;
  min-height: 200px;
}

.page-casino__hero-content {
  max-width: 800px;
  text-align: center;
  padding: 0 20px;
}

.page-casino__main-title {
  font-size: clamp(2.5rem, 6vw, 4rem); /* Responsive H1 font size */
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-main, #F2FFF6);
}

.page-casino__description {
  font-size: 1.15rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

/* --- About Section --- */
.page-casino__about-section {
  text-align: left;
}

.page-casino__about-section .page-casino__section-title {
  text-align: center;
}

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

.page-casino__image-item {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

/* --- Games Section --- */
.page-casino__games-section {
  padding-bottom: 80px;
}

.page-casino__game-category {
  margin-top: 50px;
}

.page-casino__category-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: 25px;
  font-weight: bold;
  color: var(--gold, #F2C14E); /* Gold color for category titles */
}

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

/* --- Why Choose Section (Features) --- */
.page-casino__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-casino__feature-icon {
  width: 80px; /* Display size, image still 200x200px */
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px var(--glow, #57E38D)); /* Apply glow effect */
  min-width: 200px;
  min-height: 200px;
}

.page-casino__feature-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-main, #F2FFF6);
}

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

.page-casino__step-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  position: relative;
  padding-top: 60px;
  color: var(--text-main, #F2FFF6);
}

.page-casino__step-number {
  position: absolute;
  top: 15px;
  left: 30px;
  width: 40px;
  height: 40px;
  background: var(--deep-green, #0A4B2C);
  color: var(--text-main, #F2FFF6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  border: 2px solid var(--border, #2E7A4E);
}

.page-casino__step-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--gold, #F2C14E);
}

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

/* --- Mobile Experience Section --- */
.page-casino__mobile-section {
  padding: 80px 0;
}

.page-casino__mobile-content {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-casino__mobile-text {
  flex: 1;
}

.page-casino__mobile-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-casino__mobile-image {
  width: 100%;
  height: auto;
  max-width: 500px; /* Max width for mobile app image */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-casino__app-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* --- FAQ Section --- */
.page-casino__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-casino__faq-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--deep-green, #0A4B2C);
  border-bottom: 1px solid var(--divider, #1E3A2A);
  color: var(--text-main, #F2FFF6);
}

.page-casino__faq-item[open] .page-casino__faq-question {
  border-bottom: 1px solid var(--border, #2E7A4E);
}