/* style/casino.css */

:root {
  --primary-color: #017439;
  --secondary-color: #004d26; /* A darker shade for hover/active */
  --accent-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --button-register: #C30808;
  --button-login: #C30808;
  --button-text-yellow: #FFFF00;
  --border-color: #e0e0e0;
  --card-background: #ffffff;
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); /* Gradient for visual appeal */
}

.page-casino__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-casino__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-casino__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 30px;
  background: rgba(255, 255, 255, 0.9); /* Slightly transparent white background for text */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-color-dark);
}

.page-casino__main-title {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-casino__main-description {
  font-size: 1.2em;
  color: var(--text-color-dark);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-register); /* Specific color for register/login */
  color: var(--button-text-yellow); /* Specific font color for register/login */
  text-decoration: none;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensures responsiveness */
  box-sizing: border-box; /* Ensures padding is included in width */
  white-space: normal; /* Allows text to wrap */
  word-wrap: break-word; /* Allows long words to break */
}

.page-casino__cta-button:hover {
  background: #a30606; /* Darker red for hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Section Styles */
.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  width: 100%;
}

.page-casino__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.3;
}

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

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

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

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

.page-casino__link-text {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-casino__link-text:hover {
  color: var(--secondary-color);
}

.page-casino__link-white {
  color: var(--accent-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-casino__link-white:hover {
  color: #cccccc;
}

/* Introduction Section */
.page-casino__introduction-section {
  background: var(--accent-color);
  padding: 60px 0;
}

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

.page-casino__feature-item {
  background: var(--card-background);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

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

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

.page-casino__game-card {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark background */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-casino__game-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
  min-width: 200px; /* Min size enforcement */
  min-height: 200px; /* Min size enforcement */
}

.page-casino__game-title {
  font-size: 1.4em;
  color: var(--text-color-light);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-casino__game-description {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1; /* Allows description to take available space */
}

.page-casino__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--accent-color);
  color: var(--primary-color);
  text-decoration: none;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensures responsiveness */
  box-sizing: border-box; /* Ensures padding is included in width */
  white-space: normal; /* Allows text to wrap */
  word-wrap: break-word; /* Allows long words to break */
}

.page-casino__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Promotions Section */
.page-casino__promotions-section {
  background: var(--accent-color);
  padding: 60px 0;
}

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