/* style/casino.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General styles for the casino page content */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  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: 2.5em;
  color: #FFD700; /* Gold color for titles */
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

.page-casino__section-subtitle {
  font-size: 1.2em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Button styles */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-play,
.page-casino__btn-detail {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-casino__btn-primary {
  background-color: #FFD700; /* Gold */
  color: #121212; /* Dark text for contrast */
  border: 2px solid #FFD700;
}

.page-casino__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  color: #000000;
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-casino__btn-secondary:hover {
  background-color: #FFD700;
  color: #121212;
}

.page-casino__btn-play,
.page-casino__btn-detail {
  background-color: #8B0000; /* Dark Red */
  color: #ffffff;
  border: 2px solid #8B0000;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-casino__btn-play:hover,
.page-casino__btn-detail:hover {
  background-color: #a00000;
  border-color: #a00000;
}

/* Section specific background colors */
.page-casino__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark for content sections */
  color: #ffffff;
}

.page-casino__light-bg {
  background-color: #2a2a2a; /* Dark gray, still ensures light text contrast */
  color: #ffffff;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  height: 80vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-casino__hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-casino__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken video for text readability */
}

.page-casino__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay */
  z-index: 1;
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

.page-casino__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.page-casino__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.page-casino__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* About Section */
.page-casino__about-section {
  padding: 80px 0;
}

.page-casino__about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-casino__about-text {
  flex: 1;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-casino__about-text p {
  margin-bottom: 15px;
}

.page-casino__about-text strong {
  color: #FFD700;
}

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

.page-casino__about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

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

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

.page-casino__game-card {
  background-color: #2a2a2a; /* Card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.page-casino__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-casino__game-card .page-casino__card-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__game-card .page-casino__card-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-casino__game-card .page-casino__card-title a:hover {
  text-decoration: underline;
}

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

.page-casino__game-card .page-casino__btn-play {
  margin-top: auto; /* Push button to the bottom */
  align-self: center;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
}

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

.page-casino__promo-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.page-casino__promo-card img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-casino__promo-card .page-casino__card-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__promo-card .page-casino__card-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-casino__promo-card .page-casino__card-title a:hover {
  text-decoration: underline;
}

.page-casino__promo-card .page-casino__card-description {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-casino__promo-card .page-casino__btn-detail {
  margin-top: auto;
  align-self: center;
}

.page-casino__view-all-promos {
  text-align: center;
}

/* Live Casino Section */
.page-casino__live-casino-section {
  padding: 80px 0;
}

.page-casino__live-casino-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-casino__live-casino-image {
  flex: 1;
  text-align: center;
}

.page-casino__live-casino-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-casino__live-casino-text {
  flex: 1;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-casino__live-casino-text ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-casino__live-casino-text ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-casino__live-casino-text ul li::before {
  content: '✓';
  color: #FFD700;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-casino__live-casino-text .page-casino__btn-primary {
  margin-top: 30px;
}

/* Security Section */
.page-casino__security-section {
  padding: 80px 0;
}

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