/* style/download.css */

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

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

.page-download__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-download__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, rgba(38, 169, 224, 0.8), rgba(18, 18, 18, 0.8)), url('[GALLERY:hero_download_bg:1920x1080:abstract,geometric,background,dark_blue]') no-repeat center center/cover;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  min-height: 70vh;
  text-align: center;
}

.page-download__hero-content {
  max-width: 800px;
  margin-bottom: 40px;
}

.page-download__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-download__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-download__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-download__btn-primary,
.page-download__btn-secondary,
.page-download__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box; /* For responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-download__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-download__btn-primary:hover {
  background-color: #1a78a1;
  border-color: #1a78a1;
}

.page-download__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-download__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-download__btn-tertiary {
  background-color: #EA7C07; /* Login color for contrast */
  color: #ffffff;
  border: 2px solid #EA7C07;
  font-size: 0.9em;
  padding: 10px 20px;
}

.page-download__btn-tertiary:hover {
  background-color: #c96a06;
  border-color: #c96a06;
}

.page-download__hero-image-wrapper {
  margin-top: 40px;
  width: 100%;
  max-width: 800px;
  display: flex;
  justify-content: center;
}

.page-download__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure it behaves as a block element */
}

/* Advantages Section */
.page-download__advantages-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Darker background for contrast */
}

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

.page-download__advantage-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-download__advantage-item:hover {
  transform: translateY(-5px);
}

.page-download__advantage-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-download__advantage-text {
  color: #f0f0f0;
}

/* Guide Section */
.page-download__guide-section {
  padding: 80px 0;
  background-color: #121212;
}

.page-download__guide-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.page-download__tab-header {
  padding: 15px 30px;
  font-size: 1.2em;
  font-weight: bold;
  color: #f0f0f0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.page-download__tab-header:hover {
  color: #26A9E0;
}

.page-download__tab-header.active {
  color: #26A9E0;
  border-bottom-color: #26A9E0;
}

.page-download__tab-content-wrapper {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 10px;
}

.page-download__tab-content {
  display: none;
}

.page-download__tab-content.active {
  display: block;
}

.page-download__guide-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-download__guide-step-item {
  display: flex;
  align-items: center;
  gap: 30px;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
}

.page-download__guide-step-item:nth-child(even) {
  flex-direction: row-reverse;
}

.page-download__guide-image {
  flex-shrink: 0;
  width: 40%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: block;
}

.page-download__guide-step-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-download__guide-step-text {
  color: #f0f0f0;
  flex-grow: 1;
}

/* Video Section */
.page-download__video-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  text-align: center;
}

.page-download__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Adjust max-width as needed */
  margin: 0 auto 30px auto;
  aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio */
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-download__video-link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.page-download__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-download__video-cta {
  margin-top: 30px;
}

/* Features Section */
.page-download__features-section {
  padding: 80px 0;
  background-color: #121212;
}

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

.page-download__feature-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-download__feature-card:hover {
  transform: translateY(-5px);
}

.page-download__feature-icon {
  width: 200px; /* Min size 200px */
  height: 200px; /* Min size 200px */
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__feature-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-download__feature-text {
  color: #f0f0f0;
}

/* Games Section */
.page-download__games-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-download__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-download__game-card:hover {
  transform: translateY(-5px);
}

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

.page-download__game-title {
  font-size: 1.4em;
  color: #26A9E0;
  padding: 15px;
  margin-bottom: 0;
}

.page-download__game-text {
  color: #f0f0f0;
  padding: 0 15px 20px;
}

/* Promotions Section */
.page-download__promotions-section {
  padding: 80px 0;
  background-color: #121212;
}