/* style/casino.css */
:root {
  --primary-color: #1A2E44;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #121212; /* Body background from shared.css */
  --card-bg-light: #ffffff;
  --card-bg-dark: rgba(255, 255, 255, 0.08);
  --border-color: #3a4a5e;
}

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

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

.page-casino__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
  color: var(--secondary-color);
  line-height: 1.2;
}

.page-casino__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: rgba(255, 255, 255, 0.8);
}

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

.page-casino__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__cta-button--primary {
  background: var(--secondary-color); /* Gold */
  color: var(--primary-color); /* Dark blue */
}

.page-casino__cta-button--primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-casino__cta-button--secondary {
  background: var(--primary-color); /* Dark blue */
  color: var(--secondary-color); /* Gold */
  border: 2px solid var(--secondary-color);
}

.page-casino__cta-button--secondary:hover {
  background: #112030;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 60px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: var(--primary-color);
  text-align: center;
  overflow: hidden;
}

.page-casino__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-casino__main-title {
  font-size: 56px;
  font-weight: 900;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-casino__hero-description {
  font-size: 22px;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Features Section */
.page-casino__features-section {
  padding: 80px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
}

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

.page-casino__feature-card {
  background-color: var(--card-bg-dark);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-casino__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-casino__feature-card h3 {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-casino__feature-card p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
}

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

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

.page-casino__game-card {
  background-color: var(--card-bg-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-casino__game-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-casino__game-card h3 {
  font-size: 22px;
  color: var(--secondary-color);
  padding: 20px 20px 10px;
  margin: 0;
}

.page-casino__game-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__game-card h3 a:hover {
  color: #fff;
}

.page-casino__game-card p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  padding: 0 20px 20px;
}

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

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

.page-casino__promo-card {
  background-color: var(--card-bg-dark);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-casino__promo-card h3 {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-casino__promo-card p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 25px;
}

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

.page-casino__promo-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

/* Mobile Section */
.page-casino__mobile-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-casino__mobile-flex {
  display: flex;
  align-items: center;
  gap: 50px;
}

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

.page-casino__mobile-content .page-casino__section-title {
  text-align: left;
}

.page-casino__mobile-content p {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 30px;
  text-align: left;
}

.page-casino__mobile-benefits {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
}

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

.page-casino__mobile-benefits li::before {
  content: '✔';
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  top: 0;
}

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

.page-casino__mobile-image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  display: block;
  margin: 0 auto;
}

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

.page-casino__security-flex {
  display: flex;
  align-items: center;
  gap: 50px;
}

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

.page-casino__security-image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  display: block;
  margin: 0 auto;
}

.page-casino__security-content {
  flex: 1;
}

.page-casino__security-content .page-casino__section-title {
  text-align: left;
}

.page-casino__security-content p {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 30px;
  text-align: left;
}

.page-casino__security-points {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
}

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

.page-casino__security-points li::before {
  content: '✅';
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  top: 0;
}

/* Responsible Gambling Section */
.page-casino__responsible-gambling-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

/* CTA Bottom Section */
.page-casino__cta-bottom {
  padding: 80px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
  text-align: center;
}

/* Global Image/Video/Button Responsive Styles */
.page-casino img, .page-casino video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-casino__main-title {
    font-size: 48px;
  }
  .page-casino__section-title {
    font-size: 32px;
  }
  .page-casino__hero-description, .page-casino__section-description,
  .page-casino__mobile-content p, .page-casino__security-content p {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content starts below header */
  }

  .page-casino__container {
    padding: 0 15px;
  }

  .page-casino__hero-section,
  .page-casino__features-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__mobile-section,
  .page-casino__security-section,
  .page-casino__responsible-gambling-section,
  .page-casino__cta-bottom {
    padding: 40px 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-casino__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
  }

  .page-casino__main-title {
    font-size: 36px;
  }

  .page-casino__hero-description {
    font-size: 18px;
  }

  .page-casino__section-title {
    font-size: 28px;
  }

  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-casino__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 16px;
  }

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

  .page-casino__mobile-flex,
  .page-casino__security-flex {
    flex-direction: column;
    gap: 30px;
  }

  .page-casino__mobile-content .page-casino__section-title,
  .page-casino__security-content .page-casino__section-title {
    text-align: center;
  }

  .page-casino__mobile-content p,
  .page-casino__security-content p,
  .page-casino__mobile-benefits,
  .page-casino__security-points {
    text-align: center;
  }

  .page-casino__mobile-benefits li,
  .page-casino__security-points li {
    padding-left: 0;
    text-indent: -25px;
    margin-left: 25px;
  }

  .page-casino img,
  .page-casino video,
  .page-casino__hero-image,
  .page-casino__mobile-image-wrapper img,
  .page-casino__security-image-wrapper img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-casino__hero-image {
    position: relative;
    height: 250px;
  }
}

@media (max-width: 480px) {
  .page-casino__main-title {
    font-size: 30px;
  }
  .page-casino__section-title {
    font-size: 24px;
  }
  .page-casino__hero-description,
  .page-casino__section-description,
  .page-casino__feature-card p,
  .page-casino__game-card p,
  .page-casino__promo-card p {
    font-size: 15px;
  }
}