/* style/casino.css */

/* Global variable definitions for colors, using custom colors */
:root {
  --primary-color: #F2C14E; /* Main color */
  --secondary-color: #FFD36B; /* Accent color */
  --site-bg: #0A0A0A; /* Page background */
  --card-bg-color: #111111; /* Card background */
  --text-main-color: #FFF6D6; /* Main text color */
  --border-color: #3A2A12; /* Border color */
  --glow-color: #FFD36B; /* Glow color */
}

/* Base styles for the page-casino scope */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default light text for dark background */
  background-color: var(--site-bg); /* Inherited from shared.css */
}

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

.page-casino__section-title {
  font-size: clamp(2em, 4vw, 2.8em); /* H1 font size constraint applied to H2s as well for consistency */
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main-color);
  line-height: 1.2;
}

.page-casino__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: rgba(255, 246, 214, 0.8);
}

.page-casino__text-center {
  text-align: center;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding-top: 10px; /* Small top padding as per rules */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: var(--card-bg-color); /* Dark background for the section */
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

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

.page-casino__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* H1 constraint */
  font-weight: 900;
  margin-bottom: 15px;
  line-height: 1.1;
  color: var(--text-main-color);
}

.page-casino__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: rgba(255, 246, 214, 0.9);
}

.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
  max-width: 100%; /* Ensure responsiveness */
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text on bright button */
  border: 2px solid transparent;
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-casino__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--border-color);
}

.page-casino__btn-secondary:hover {
  background: var(--primary-color);
  color: #111111;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

/* About Section */
.page-casino__about-section {
  padding: 80px 0;
  background-color: var(--card-bg-color); /* Dark background */
  color: var(--text-main-color);
}

.page-casino__grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-casino__feature-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark card */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(242, 193, 78, 0.2);
}

.page-casino__feature-icon {
  width: 60px; /* Example icon size, still above 30x30 for category icons */
  height: 60px;
  margin-bottom: 20px;
  display: inline-block;
  object-fit: contain;
  min-width: 60px;
  min-height: 60px;
}

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

.page-casino__card-text {
  font-size: 1em;
  color: rgba(255, 246, 214, 0.7);
}

.page-casino__section-intro {
  font-size: 1.1em;
  text-align: center;
  color: rgba(255, 246, 214, 0.8);
  max-width: 900px;
  margin: 0 auto;
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: var(--site-bg); /* Main dark background */
  color: var(--text-main-color);
}

.page-casino__game-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
}

.page-casino__category-card {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  color: var(--text-main-color);
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-casino__category-card:hover {
  background-color: var(--primary-color);
  color: #111111;
  transform: translateY(-5px);
}

.page-casino__category-icon {
  width: 30px; /* Allowed small icon size */
  height: 30px;
  margin-right: 10px;
  object-fit: contain;
}

.page-casino__category-name {
  font-size: 1.1em;
}

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

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

.page-casino__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(242, 193, 78, 0.3);
}

.page-casino__game-thumbnail {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-casino__game-card .page-casino__card-title {
  font-size: 1.3em;
  padding: 20px 20px 0;
  text-align: left;
  color: var(--primary-color);
}

.page-casino__game-card .page-casino__card-text {
  padding: 0 20px 20px;
  flex-grow: 1;
  text-align: left;
  color: rgba(255, 246, 214, 0.7);
}

.page-casino__game-card .page-casino__btn-primary {
  margin: 0 20px 20px;
  align-self: flex-start;
  width: auto;
  min-width: 150px;
}

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

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

.page-casino__promo-card {
  background-color: var(--site-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(242, 193, 78, 0.3);
}

.page-casino__promo-thumbnail {
  width: 100%;
  height: 250px; /* Consistent height for promo images */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-casino__promo-card .page-casino__card-title {
  font-size: 1.4em;
  padding: 20px 20px 0;
  text-align: left;
  color: var(--primary-color);
}

.page-casino__promo-card .page-casino__card-text {
  padding: 0 20px 20px;
  flex-grow: 1;
  text-align: left;
  color: rgba(255, 246, 214, 0.7);
}

.page-casino__promo-card .page-casino__btn-primary {
  margin: 0 20px 20px;
  align-self: flex-start;
  width: auto;
  min-width: 150px;
}

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

.page-casino__grid-2-col-reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.page-casino__content-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-casino__content-block .page-casino__section-title,
.page-casino__content-block .page-casino__section-description {
  text-align: left;
}

.page-casino__list-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  color: rgba(255, 246, 214, 0.9);
  font-size: 1.1em;
}

.page-casino__list-features li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.page-casino__list-icon {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2em;
  margin-right: 10px;
  line-height: 1;
}

.page-casino__image-block {
  text-align: center;
}