/* style/register.css */

/* Base Styles */
.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #000000; /* Body background from shared.css */
}

.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-register__section {
  padding: 60px 0;
}

.page-register__dark-bg {
  background-color: #017439; /* Primary brand color */
  color: #ffffff; /* Light text for dark background */
}

.page-register__light-bg {
  background-color: #ffffff; /* Auxiliary brand color / content background */
  color: #333333; /* Dark text for light background */
}

.page-register__section-title,
.page-register__hero-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
  color: inherit;
}

.page-register__section-text,
.page-register__hero-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Buttons */
.page-register__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-register__btn-register {
  background-color: #C30808; /* Custom register button color */
  color: #ffffff; /* Ensures WCAG AA contrast (4.5:1) with #C30808 */
  border: 2px solid #C30808;
}

.page-register__btn-register:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-register__btn-login {
  background-color: #C30808; /* Custom login button color */
  color: #ffffff; /* Ensures WCAG AA contrast (4.5:1) with #C30808 */
  border: 2px solid #C30808;
  margin-left: 15px;
}

.page-register__btn-login:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-register__btn-promotions {
  background-color: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
}

.page-register__btn-promotions:hover {
  background-color: #e0e0e0;
}

.page-register__btn-category,
.page-register__btn-support {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
  margin-top: 15px;
}

.page-register__btn-category:hover,
.page-register__btn-support:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensures content is not covered by fixed header */
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.5); /* Darken image for text readability */
}

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

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

/* Why Join Section */
.page-register__why-join .page-register__section-text {
  margin-bottom: 60px;
}

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

.page-register__feature-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.page-register__feature-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-register__feature-description {
  font-size: 1em;
  color: #555555;
}

/* Registration Steps Section */
.page-register__registration-steps {
  text-align: center;
}

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

.page-register__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
  text-align: left;
}

.page-register__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFFF00; /* Custom font color for register/login */
  margin-bottom: 15px;
}

.page-register__step-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-register__step-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-register__steps-illustration {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Verification Section */
.page-register__verification-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 900px;
  margin: 40px auto;
}

.page-register__verification-item {
  background-color: #f0f0f0;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #333333;
}

.page-register__verification-item strong {
  color: #017439;
}

/* Benefits Section */
.page-register__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-register__benefit-card {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
  text-align: left;
}

.page-register__benefit-title {
  font-size: 1.5em;
  color: #FFFF00; /* Custom font color for register/login, used here for emphasis */
  margin-bottom: 15px;
}

.page-register__benefit-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-register__benefits-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Secure Environment Section */
.page-register__security-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 900px;
  margin: 40px auto;
}

.page-register__security-item {
  background-color: #f0f0f0;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #333333;
}

.page-register__security-item strong {
  color: #017439;
}

.page-register__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Game Selection Section */
.page-register__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__game-category {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-register__category-title {
  font-size: 1.6em;
  color: #FFFF00; /* Custom font color for emphasis */
  margin-bottom: 10px;
}

.page-register__category-description {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Support Section */
.page-register__support-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__channel-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-register__channel-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-register__channel-description {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-register__faq-section .page-register__section-title {
  color: #ffffff;
}

.page-register__faq-list {
  max-width: 900px;
  margin: 40px auto;
}

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg);
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 20px;
}

.page-register__faq-answer p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

/* Final CTA Section */
.page-register__cta-section {
  text-align: center;
  padding-bottom: 60px;
}

.page-register__cta-title {
  font-size: 2.2em;
  color: #017439;
  margin-bottom: 20px;
}

.page-register__cta-description {
  font-size: 1.1em;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Image Specific Styles (Ensuring no filters change color) */
.page-register img {
  border-radius: 8px;
  /* filter property is strictly forbidden to change image colors */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 2.8em;
  }
  .page-register__hero-description {
    font-size: 1.1em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-register__hero-section {
    min-height: 60vh;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
  }

  .page-register__hero-title {
    font-size: 2.2em;
  }

  .page-register__hero-description {
    font-size: 1em;
  }

  .page-register__section {
    padding: 40px 0;
  }

  .page-register__section-title {
    font-size: 1.8em;
  }

  .page-register__section-text,
  .page-register__feature-description,
  .page-register__step-description,
  .page-register__verification-item,
  .page-register__benefit-description,
  .page-register__security-item,
  .page-register__category-description,
  .page-register__channel-description,
  .page-register__faq-answer p,
  .page-register__cta-description {
    font-size: 0.95em;
  }

  .page-register__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-register__btn-login {
    margin-left: 0;
  }

  /* Mobile image responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile video responsiveness */
  .page-register video,
  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile button responsiveness */
  .page-register__btn,
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register a[class*="button"],
  .page-register a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container,
  .page-register__game-categories,
  .page-register__support-channels {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
    flex-wrap: wrap !important; /* Allow multiple buttons/items to wrap */
  }

  /* Content area containers for mobile padding */
  .page-register__section,
  .page-register__card,
  .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-register__faq-answer {
    padding: 0 15px;
  }

  .page-register__faq-item.active .page-register__faq-answer {
    padding: 10px 15px;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }
  .page-register__hero-description {
    font-size: 0.9em;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__hero-section {
    min-height: 50vh;
  }
}