/* style/index.css */

/* --- General Page Styles --- */
.page-index {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light body background */
  line-height: 1.6;
  background-color: #FFFFFF; /* Explicitly set for clarity, though shared might define */
}

/* --- Video Section --- */
.page-index__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); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, #e0f2f7, #ffffff);
}

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

.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;
}

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

.page-index__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-index__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  object-fit: cover;
  pointer-events: none; /* Allows click-through to the parent <a> tag */
}

.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.4);
  border-radius: 12px;
  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: 22px;
  font-weight: bold;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.7);
  padding: 15px 30px;
  background: rgba(38, 169, 224, 0.85); /* Primary color with transparency */
  border-radius: 10px;
  white-space: nowrap;
  letter-spacing: 1px;
}

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

.page-index__play-now-button {
  display: inline-block;
  padding: 18px 50px;
  background: #26A9E0; /* Primary brand color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(38, 169, 224, 0.4);
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.page-index__play-now-button:hover {
  background: #1e8fc4; /* Slightly darker primary color */
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(38, 169, 224, 0.6);
}

.page-index__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(38, 169, 224, 0.3);
}

/* --- Hero Section (H1 + CTA) --- */
.page-index__hero-section {
  text-align: center;
  padding: 80px 20px;
  background-color: #f8fcfd; /* Light background for contrast */
  color: #333333;
}

.page-index__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-index__main-title {
  font-size: 48px;
  font-weight: 700;
  color: #26A9E0; /* Primary color for H1 */
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 19px;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 40px auto;
  color: #555555;
}

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

.page-index__cta-button {
  display: inline-block;
  padding: 16px 35px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-index__cta-button--primary {
  background: #26A9E0; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-index__cta-button--primary:hover {
  background: #1e8fc4;
  border-color: #1e8fc4;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.page-index__cta-button--secondary {
  background: #ffffff;
  color: #26A9E0; /* Primary brand color for text */
  border: 2px solid #26A9E0;
}

.page-index__cta-button--secondary:hover {
  background: #e0f2f7;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* --- Featured Games Section --- */
.page-index__featured-games-section {
  padding: 80px 20px;
  background-color: #ffffff;
  text-align: center;
  color: #333333;
}

.page-index__featured-games-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__featured-games-title {
  font-size: 38px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-index__featured-games-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #555555;
}

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

.page-index__game-card {
  background-color: #f8fcfd;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

.page-index__game-card-title {
  font-size: 22px;
  font-weight: 600;
  color: #26A9E0;
  margin: 20px 20px 10px 20px;
}