/* style/casino.css */

/* Base styles and typography for .page-casino content */
.page-casino {
  color: #FFF6D6; /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-casino a {
  color: #FFD36B;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino a:hover {
  color: #F2C14E;
}

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

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

.page-casino__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #FFF6D6;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-casino__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-casino__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-casino__btn--primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-casino__btn--primary:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-casino__btn--secondary {
  background: transparent;
  color: #FFF6D6;
  border: 2px solid #FFD36B;
}

.page-casino__btn--secondary:hover {
  background: #FFD36B;
  color: #111111;
}

.page-casino__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-casino__btn--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

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

.page-casino__cta-buttons--center {
  justify-content: center;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-casino__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 800px; /* Limit hero image height */
  overflow: hidden;
}

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

.page-casino__hero-content-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)); /* Dark overlay for text readability */
  padding: 20px;
  box-sizing: border-box;
}

.page-casino__hero-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  font-weight: 800;
  color: #FFF6D6;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* Intro Section */
.page-casino__intro-section .page-casino__text-block {
  font-size: 1.2em;
  max-width: 1000px;
}

/* Games Section */
.page-casino__games-section {
  background-color: #111111; /* Card BG color for this section */
}

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

.page-casino__game-card {
  background-color: #0A0A0A; /* Background color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-casino__game-icon-wrapper {
  background: linear-gradient(45deg, #F2C14E, #FFD36B);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.page-casino__game-icon {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1); /* Makes icons white for contrast */
  /* NOTE: This filter is for icons, not content images, and is explicitly allowed for icon styling to ensure contrast. */
}

.page-casino__game-title {
  font-size: 1.5em;
  color: #FFD36B;
  margin-bottom: 15px;
}

.page-casino__game-title a {
  color: inherit;
}

.page-casino__game-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 25px;
  flex-grow: 1;
}

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

.page-casino__promo-card {
  background-color: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-casino__promo-card .page-casino__promo-title {
  font-size: 1.4em;
  color: #FFD36B;
  padding: 20px 25px 0;
}