/* style/casino.css */
/* Custom Colors */
:root {
  --vp88-primary: #113B7A;
  --vp88-secondary: #1D5FD1;
  --vp88-button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --vp88-card-bg: #10233F;
  --vp88-text-main: #F3F8FF;
  --vp88-text-secondary: #AFC4E8;
  --vp88-border: #244D84;
  --vp88-glow: #4FA8FF;
  --vp88-gold: #F2C14E;
  --vp88-divider: #1B3357;
  --vp88-deep-navy: #08162B; /* Body background from shared.css */
}

/* Base styles for the page content, assuming body has dark background from shared.css */
.page-casino {
  font-family: 'Arial', sans-serif;
  color: var(--vp88-text-main); /* Light text on dark body background */
  background-color: var(--vp88-deep-navy); /* Ensure consistency if shared.css is overridden */
}

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

.page-casino__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--vp88-gold);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__section-description {
  font-size: 18px;
  color: var(--vp88-text-secondary);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.5;
}

.page-casino__text-block {
  font-size: 16px;
  line-height: 1.6;
  color: var(--vp88-text-main);
  margin-bottom: 15px;
  text-align: justify;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 60px 20px; /* Adjusted padding, body padding-top handles header offset */
  padding-top: 10px; /* Small top padding for visual spacing, not for header offset */
  text-align: center;
  overflow: hidden;
  background-color: var(--vp88-primary);
}

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

.page-casino__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken video for text readability */
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: var(--vp88-text-main);
  padding: 20px;
}

.page-casino__hero-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  color: var(--vp88-gold);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.page-casino__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--vp88-text-main);
  margin-bottom: 40px;
  line-height: 1.5;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

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

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-casino__btn-primary {
  background: var(--vp88-button-gradient);
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-secondary {
  background: transparent;
  color: var(--vp88-gold);
  border: 2px solid var(--vp88-gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-secondary:hover {
  background: rgba(var(--vp88-gold-rgb), 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* About Section */
.page-casino__about-section {
  padding: 80px 0;
  background-color: var(--vp88-deep-navy);
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: var(--vp88-primary);
}

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

.page-casino__game-card {
  background-color: var(--vp88-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;
  color: var(--vp88-text-main);
}

.page-casino__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-casino__game-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--vp88-gold);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__game-description {
  font-size: 15px;
  color: var(--vp88-text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
  background-color: var(--vp88-deep-navy);
}

/* Security Section */
.page-casino__security-section {
  padding: 80px 0;
  background-color: var(--vp88-primary);
}

/* Get Started Section */
.page-casino__get-started-section {
  padding: 80px 0;
  background-color: var(--vp88-deep-navy);
}

.page-casino__steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  counter-reset: step-counter;
}

.page-casino__steps-list li {
  background-color: var(--vp88-card-bg);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-top: 60px;
  color: var(--vp88-text-main);
}

.page-casino__steps-list li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--vp88-gold);
  color: var(--vp88-deep-navy);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-casino__steps-list li h3 {
  font-size: 20px;
  color: var(--vp88-gold);
  margin-bottom: 10px;
}

.page-casino__steps-list li p {
  font-size: 15px;
  color: var(--vp88-text-secondary);
  line-height: 1.5;
}

/* Contact Section */
.page-casino__contact-section {
  padding: 80px 0;
  background-color: var(--vp88-primary);
}

/* CTA Buttons Container (general) */
.page-casino__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* --- Responsive Design --- */
/* Images, Videos, Buttons must be responsive */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px; /* Enforce min size for content images */
  min-height: 200px; /* Enforce min size for content images */
}

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

.page-casino__hero-video-wrapper,
.page-casino__container,
.page-casino__games-grid,
.page-casino__steps-list,
.page-casino__cta-buttons {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

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

  .page-casino__hero-title {
    font-size: clamp(28px, 8vw, 42px) !important;
  }

  .page-casino__hero-description {
    font-size: clamp(16px, 4vw, 20px) !important;
  }

  .page-casino__section-title {
    font-size: clamp(24px, 6vw, 36px) !important;
    padding: 0 10px;
  }

  .page-casino__section-description {
    font-size: 16px !important;
    padding: 0 10px;
  }

  .page-casino__text-block {
    padding: 0 10px;
  }

  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset; /* Allow smaller display if needed by layout, but source must be >=200px */
    min-height: unset;
  }

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

  .page-casino__hero-video-wrapper,
  .page-casino__container,
  .page-casino__games-grid,
  .page-casino__steps-list,
  .page-casino__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .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 {
    flex-direction: column !important;
    gap: 10px;
  }

  .page-casino__game-card {
    margin-left: auto;
    margin-right: auto;
  }
}