/* style/casino.css */

:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Deep Red */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #1a1a1a;
  --bg-light: #f5f5f5;
  --border-color: #333333;
}

.page-casino {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark);
  line-height: 1.6;
}

.page-casino__section {
  padding: 80px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-casino__section-title {
  font-size: 3em;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
}

.page-casino__section-title--light {
  color: var(--text-light);
}

.page-casino__section-description {
  font-size: 1.2em;
  color: rgba(255, 255, 255, 0.8);
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-casino__section-description--light {
  color: var(--text-light);
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  box-sizing: border-box;
}

.page-casino__hero-background-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

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

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

.page-casino__main-title {
  font-size: 4.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.page-casino__hero-description {
  font-size: 1.5em;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.5;
}

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

.page-casino__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.3em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.page-casino__cta-button:hover {
  background: var(--text-light);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.page-casino__cta-button--gold {
  background: var(--primary-color);
  color: var(--text-dark);
}

.page-casino__cta-button--red {
  background: var(--secondary-color);
  color: var(--text-light);
}

.page-casino__cta-button--red:hover {
  background: var(--primary-color);
  color: var(--text-dark);
}

/* Intro Thomo Section */
.page-casino__intro-thomo-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
  text-align: left;
}

.page-casino__content-flex {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.page-casino__content-flex--reverse {
  flex-direction: row-reverse;
}

.page-casino__text-block {
  flex: 1;
  min-width: 300px;
  color: rgba(255, 255, 255, 0.85);
}

.page-casino__text-block h3 {
  color: var(--primary-color);
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-casino__text-block p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-casino__text-block a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-casino__text-block a:hover {
  text-decoration: underline;
}

.page-casino__image-block {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-casino__image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: block;
}

/* Game Showcase Section */
.page-casino__game-showcase-section {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

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

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

.page-casino__game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 3px solid var(--primary-color);
  display: block;
}

.page-casino__game-card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin: 20px 10px 10px;
}

.page-casino__game-card-description {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
  padding: 0 15px;
  margin-bottom: 15px;
}

.page-casino__game-card-description a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-casino__game-card-description a:hover {
  text-decoration: underline;
}

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

/* Promotions Section */
.page-casino__promotions-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.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: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-casino__promo-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 3px solid var(--primary-color);
  display: block;
}

.page-casino__promo-card-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin: 20px 15px 10px;
}

.page-casino__promo-card-description {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.7);
  padding: 0 20px;
  margin-bottom: 20px;
}

.page-casino__link-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-casino__link-button:hover {
  background-color: var(--text-light);
  transform: translateY(-2px);
}

/* Security and Support Section */
.page-casino__security-support-section {
  background-color: var(--secondary-color);
  color: var(--text-light);
  text-align: left;
}

.page-casino__text-block--light p {
  color: var(--text-light);
}

.page-casino__text-block--light a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-casino__text-block--light a:hover {
  text-decoration: underline;
}

/* Why Choose Us Section */
.page-casino__why-choose-us-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

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

.page-casino__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: background-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-casino__feature-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-casino__feature-description {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.7);
}

.page-casino__why-choose-us-img {
  max-width: 80%;
  height: auto;
  margin-top: 50px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Final CTA Section */
.page-casino__final-cta-section {
  padding: 100px 20px;
  background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__main-title {
    font-size: 3.5em;
  }
  .page-casino__hero-description {
    font-size: 1.3em;
  }
  .page-casino__section-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    height: auto;
    min-height: 70vh;
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }
  .page-casino__main-title {
    font-size: 2.5em;
  }
  .page-casino__hero-description {
    font-size: 1.1em;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-casino__section {
    padding: 60px 15px;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__section-description {
    font-size: 1em;
  }
  .page-casino__content-flex {
    flex-direction: column;
  }
  .page-casino__image-block img,
  .page-casino__game-card img,
  .page-casino__promo-card img,
  .page-casino__why-choose-us-img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-casino__game-grid, .page-casino__promo-grid, .page-casino__features-grid {
    grid-template-columns: 1fr;
  }
  .page-casino__game-card, .page-casino__promo-card, .page-casino__feature-item {
    padding: 20px 15px;
  }
  .page-casino__game-card-title, .page-casino__promo-card-title, .page-casino__feature-title {
    font-size: 1.3em;
  }
  .page-casino__text-block p, .page-casino__game-card-description, .page-casino__promo-card-description, .page-casino__feature-description {
    font-size: 0.95em;
  }
  .page-casino__link-button {
    padding: 8px 20px;
    font-size: 0.9em;
  }
  .page-casino__why-choose-us-img {
    max-width: 100% !important;
  }
  /* Ensure all containers and sections are contained */
  .page-casino__section,
  .page-casino__container,
  .page-casino__hero-section,
  .page-casino__hero-content,
  .page-casino__cta-buttons,
  .page-casino__content-flex,
  .page-casino__text-block,
  .page-casino__image-block,
  .page-casino__game-grid,
  .page-casino__game-card,
  .page-casino__promo-grid,
  .page-casino__promo-card,
  .page-casino__features-grid,
  .page-casino__feature-item,
  .page-casino__final-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  /* Specific padding adjustments for sections */
  .page-casino__intro-thomo-section,
  .page-casino__game-showcase-section,
  .page-casino__promotions-section,
  .page-casino__security-support-section,
  .page-casino__why-choose-us-section,
  .page-casino__final-cta-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-casino__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-casino__main-title {
    font-size: 2em;
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__section-title {
    font-size: 1.8em;
  }
}