/* style/index.css */

/* Custom Colors from requirements */
:root {
  --primary-color: #C61F1F; /* Main color */
  --secondary-color: #E53030; /* Auxiliary color */
  --btn-gradient-start: #FFB04A;
  --btn-gradient-end: #D86A14;
  --card-bg: #2A1212;
  --page-bg: #140C0C; /* Overall page background */
  --text-main: #FFF1E8;
  --border-color: #6A1E1E;
  --gold-color: #F3C54D;
  --deep-red: #7E0D0D;
  /* For rgba conversion if needed */
  --primary-color-rgb: 198, 31, 31;
}

/* Body background is handled by shared.css: body { padding-top: var(--header-offset); } */
/* Page content base styles - assuming shared.css sets a dark background for body */
.page-index {
  color: var(--text-main); /* Light text for dark background */
  background-color: var(--page-bg); /* Explicitly set page background to match dark theme */
  font-family: Arial, sans-serif; /* Example font */
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll for the entire page content */
}

/* Module 1: Video Area */
.page-index__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, header offset handled by body */
  box-sizing: border-box; /* Ensure padding doesn't cause overflow */
}

.page-index__video-container {
  width: 100%; /* Important for desktop flex alignment */
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.page-index__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px; /* Apply to link to round the whole video area */
  overflow: hidden; /* Ensure shadow and transform apply cleanly */
}

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

.page-index__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.3);
}

.page-index__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px; /* Redundant if wrapper is rounded, but safe */
  object-fit: cover;
  pointer-events: none; /* Allow click on parent <a> */
  background-color: #000; /* Fallback for video not loading */
}

.page-index__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.5);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

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

.page-index__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(var(--primary-color-rgb), 0.8); /* Using rgba for transparency */
  border-radius: 5px;
  white-space: nowrap;
}

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

.page-index__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, var(--btn-gradient-start) 0%, var(--btn-gradient-end) 100%);
  color: #ffffff;
  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.2);
  border: none;
  cursor: pointer;
  white-space: nowrap; /* Prevent text wrapping on desktop */
}

.page-index__play-now-button:hover {
  background: linear-gradient(180deg, var(--btn-gradient-end) 0%, var(--btn-gradient-start) 100%); /* Invert gradient on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

/* Module 2: Promotion/Gift Code Area */
.page-index__promo-dark {
  background-color: #2c2c2c; /* Deep gray background as per demo */
  padding: 24px 16px;
  box-sizing: border-box;
  text-align: center; /* Center the content inside */
}

.page-index__gifcode-tabs {
  max-width: 1250px;
  margin: 0 auto;
}

.page-index__gifcode-title {
  color: var(--primary-color); /* #C61F1F */
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-size: 2em; /* Ensure good visibility */
  font-weight: bold;
  line-height: 1.2;
}

.page-index__gifcode-tab-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 16px 0 30px;
}

.page-index__gifcode-tab-nav li {
  margin: 0; /* Remove default list item margin */
}

.page-index__gifcode-tab-nav a {
  color: var(--text-main); /* Light text for dark background */
  text-decoration: none;
  text-transform: uppercase;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  font-weight: bold;
}

.page-index__gifcode-tab-nav a.is-active,
.page-index__gifcode-tab-nav a:hover {
  color: var(--primary-color); /* #C61F1F */
  border-bottom-color: var(--primary-color); /* #C61F1F */
}

.page-index__gifcode-panel {
  display: none;
}

.page-index__gifcode-panel.is-active {
  display: block;
}

.page-index__gifcode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1250px; /* Match tabs container max-width */
  margin: 0 auto;
  justify-content: center; /* Center content if not full width */
}

.page-index__gifcode-col {
  flex: 1 1 calc(50% - 6px); /* 2 columns on desktop */
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0; /* Allow flex items to shrink */
}