/* style/gift-codes.css */
:root {
  --primary-color: #007BFF;
  --secondary-color: #28A745;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-dark: #000;
  --background-light: #f1f3f5;
  --card-background: #ffffff;
  --border-color: #e0e0e0;
}

.page-gift-codes {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default to light text on dark body */
  background-color: var(--background-dark); /* Body background is #000 */
}

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

/* Fixed nav bar padding */
.page-gift-codes__hero-banner {
  padding-top: 180px; /* Desktop: Adjust based on fixed header height */
  padding-bottom: 60px;
}

/* Sections */
.page-gift-codes__dark-section {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  color: var(--text-light);
}

.page-gift-codes__light-bg {
  background: var(--card-background);
  color: var(--text-dark);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-gift-codes__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section */
}

.page-gift-codes__section-subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-gift-codes__hero-title {
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-gift-codes__hero-subtitle {
  font-size: 20px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-light);
}

.page-gift-codes__hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-gift-codes__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-gift-codes__cta-button:hover {
  background: #218838; /* Darker secondary color */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-gift-codes__cta-button--secondary {
  background: var(--primary-color);
}

.page-gift-codes__cta-button--secondary:hover {
  background: #0056b3; /* Darker primary color */
}

.page-gift-codes__introduction-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

.page-gift-codes__introduction-section .page-gift-codes__container {
  padding: 60px;
}

.page-gift-codes__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-gift-codes__content-text {
  flex: 1;
}

.page-gift-codes__content-text p {
  margin-bottom: 15px;
  font-size: 17px;
  color: var(--text-dark);
}

.page-gift-codes__content-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-gift-codes__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-gift-codes__how-to-get-section {
  padding: 80px 0;
}

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

.page-gift-codes__card {
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gift-codes__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-gift-codes__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-gift-codes__card p {
  font-size: 16px;
  color: var(--text-dark);
}

.page-gift-codes__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-gift-codes__featured-games-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

.page-gift-codes__featured-games-section .page-gift-codes__container {
  padding: 60px;
}

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

.page-gift-codes__game-card-small {
  background: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
}

.page-gift-codes__game-card-small:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-gift-codes__game-icon-small {
  max-width: 100px; /* Small icon size but still >= 200px for the actual image */
  height: auto;
  margin-bottom: 15px;
  border-radius: 8px;
}

.page-gift-codes__game-name-small {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-gift-codes__game-name-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-gift-codes__game-name-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.page-gift-codes__game-promo {
  font-size: 14px;
  color: var(--text-dark);
}

.page-gift-codes__game-promo a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-gift-codes__game-promo a:hover {
  text-decoration: underline;
}

.page-gift-codes__more-info {
  text-align: center;
  margin-top: 40px;
  font-size: 16px;
  color: var(--text-dark);
}

.page-gift-codes__more-info a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-gift-codes__more-info a:hover {
  text-decoration: underline;
}

.page-gift-codes__redeem-guide-section {
  padding: 80px 0;
}

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

.page-gift-codes__step-card {
  padding: 30px;
  text-align: center;
  position: relative;
  color: var(--text-dark);
}

.page-gift-codes__step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: var(--text-light);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-gift-codes__step-title {
  font-size: 20px;
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-gift-codes__step-card p {
  font-size: 16px;
  color: var(--text-dark);
}

.page-gift-codes__tips-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

.page-gift-codes__tips-section .page-gift-codes__container {
  padding: 60px;
}

.page-gift-codes__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-gift-codes__tips-list li {
  background: var(--card-background);
  color: var(--text-dark);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 16px;
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
}

.page-gift-codes__tips-list li::before {
  content: '✔';
  color: var(--secondary-color);
  font-weight: bold;
  margin-right: 15px;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.page-gift-codes__tips-list strong {
  color: var(--primary-color);
}

.page-gift-codes__image--full-width {
  width: 100%;
  margin-top: 40px;
}

.page-gift-codes__faq-section {
  padding: 80px 0;
}

.page-gift-codes__faq-list {
  margin-top: 40px;
}

.page-gift-codes__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-gift-codes__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: var(--text-dark);
}

.page-gift-codes__faq-item.active .page-gift-codes__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-gift-codes__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark);
}

.page-gift-codes__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-gift-codes__faq-question:active {
  background: #eeeeee;
}

.page-gift-codes__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark);
}

.page-gift-codes__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-gift-codes__faq-item.active .page-gift-codes__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Change + to X or - */
}

.page-gift-codes__faq-answer p {
  color: var(--text-dark);
  font-size: 16px;
}

.page-gift-codes__conclusion-section {
  padding: 80px 0;
  text-align: center;
}

.page-gift-codes__conclusion-text {
  font-size: 18px;
  margin-bottom: 40px;
  color: var(--text-light);
}

.page-gift-codes__highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-gift-codes__section-title {
    font-size: 30px;
  }
  .page-gift-codes__hero-title {
    font-size: 38px;
  }
  .page-gift-codes__hero-subtitle {
    font-size: 18px;
  }
  .page-gift-codes__content-grid {
    flex-direction: column;
  }
  .page-gift-codes__introduction-section .page-gift-codes__container,
  .page-gift-codes__featured-games-section .page-gift-codes__container,
  .page-gift-codes__tips-section .page-gift-codes__container {
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .page-gift-codes__hero-banner {
    padding-top: 160px !important; /* Mobile: Adjust based on mobile fixed header height */
    padding-bottom: 40px;
  }
  .page-gift-codes__container {
    padding: 20px 15px;
  }
  .page-gift-codes__section-title {
    font-size: 24px;
    margin-bottom: 15px;
  }
  .page-gift-codes__section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-gift-codes__hero-title {
    font-size: 32px;
  }
  .page-gift-codes__hero-subtitle {
    font-size: 16px;
  }
  .page-gift-codes__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-gift-codes__introduction-section .page-gift-codes__container,
  .page-gift-codes__featured-games-section .page-gift-codes__container,
  .page-gift-codes__tips-section .page-gift-codes__container {
    padding: 30px 20px;
  }
  .page-gift-codes__content-text p,
  .page-gift-codes__card p,
  .page-gift-codes__game-promo,
  .page-gift-codes__more-info,
  .page-gift-codes__step-card p,
  .page-gift-codes__tips-list li p,
  .page-gift-codes__faq-question h3,
  .page-gift-codes__faq-answer p,
  .page-gift-codes__conclusion-text {
    font-size: 15px;
  }
  .page-gift-codes__card-title,
  .page-gift-codes__game-name-small,
  .page-gift-codes__step-title {
    font-size: 18px;
  }
  .page-gift-codes__faq-question {
    padding: 15px;
  }
  .page-gift-codes__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-gift-codes__faq-item.active .page-gift-codes__faq-answer {
    padding: 15px !important;
  }

  /* Mobile image specific rules to prevent overflow */
  .page-gift-codes img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-gift-codes__section,
  .page-gift-codes__card,
  .page-gift-codes__container,
  .page-gift-codes__content-grid,
  .page-gift-codes__card-grid,
  .page-gift-codes__game-list,
  .page-gift-codes__steps-grid,
  .page-gift-codes__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-gift-codes__content-grid {
    gap: 20px;
  }
  .page-gift-codes__tips-list li {
    padding: 15px;
  }
  .page-gift-codes__tips-list li::before {
    margin-right: 10px;
  }
}