/* style/casino.css */

/* --- General Styles for page-casino --- */
.page-casino {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background #0a0a0a */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-casino__section-title {
    font-size: 38px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #FFCC00; /* Wealth gold for titles */
}

.page-casino__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    color: #f0f0f0; /* Slightly lighter white for description */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Color Contrast Classes --- */
.page-casino__dark-section {
    background-color: #003366; /* Primary brand color */
    color: #ffffff;
    padding: 80px 0;
}

.page-casino__light-bg {
    background-color: #f8f8f8; /* Light background for contrast */
    color: #333333;
    padding: 80px 0;
}
.page-casino__light-bg .page-casino__section-title {
    color: #003366; /* Darker title on light background */
}
.page-casino__light-bg .page-casino__section-description {
    color: #555555; /* Darker description on light background */
}

/* --- CTA Buttons --- */
.page-casino__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.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.15);
    border: none;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
}

.page-casino__btn-primary {
    background: #FFCC00; /* Auxiliary brand color */
    color: #003366; /* Dark text for contrast */
}

.page-casino__btn-primary:hover {
    background: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-secondary {
    background: #003366; /* Primary brand color */
    color: #FFCC00; /* Auxiliary brand color for text */
    border: 2px solid #FFCC00;
}

.page-casino__btn-secondary:hover {
    background: #002244;
    border-color: #FFD633;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* --- Video Section --- */
.page-casino__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background-color: #000000; /* Dark background for video section */
}

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

.page-casino__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-casino__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-casino__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from blocking click */
}

.page-casino__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-casino__video-link:hover .page-casino__video-overlay {
  opacity: 1;
}

.page-casino__video-click-hint {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(0, 51, 102, 0.8); /* Using primary color with opacity */
  border-radius: 5px;
  white-space: nowrap;
}

.page-casino__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-casino__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFCC00; /* Auxiliary brand color */
  color: #003366; /* Dark text for contrast */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

.page-casino__play-now-button:hover {
  background: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-casino__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}


/* --- Hero Section (H1 Title + CTA) --- */
.page-casino__hero-section {
    text-align: center;
    padding: 80px 0;
    background: url('[GALLERY:hero_bg:1920x1080:99ok,casino,hero_background,luxurious,abstract]') no-repeat center center/cover;
    position: relative;
    z-index: 0;
    overflow: hidden; /* Ensure content doesn't overflow */
}
.page-casino__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.8); /* Dark overlay */
    z-index: -1;
}

.page-casino__hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    color: #ffffff;
}

.page-casino__main-title {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 20px;
    color: #FFCC00; /* Gold for main title */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-description {
    font-size: 22px;
    margin-bottom: 40px;
    color: #f0f0f0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* --- Featured Casino Games Section --- */
.page-casino__games-section {
    padding: 80px 0;
}

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

.page-casino__game-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #333333;
}