/* style/register.css */

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

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

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

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

.page-register__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* Section Backgrounds */
.page-register__section-bg-dark {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 60px 0;
}

.page-register__section-bg-light {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-register__section-bg-light .page-register__section-title,
.page-register__section-bg-light .page-register__section-description,
.page-register__section-bg-light .page-register__text-block,
.page-register__section-bg-light .page-register__list-item {
  color: #333333;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-register__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-register__hero-section .page-register__container {
  position: relative;
  z-index: 2;
  padding-top: 50px;
  padding-bottom: 50px;
}

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__card-button {
  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;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

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

.page-register__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

.page-register__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

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

.page-register__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-register__link-button {
  color: #26A9E0;
  text-decoration: underline;
  font-weight: bold;
}

.page-register__link-button:hover {
  color: #1e87b7;
}

.page-register__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Video Section */
.page-register__video-section {
  padding: 60px 0;
  background-color: #121212;
  color: #ffffff;
  text-align: center;
}

.page-register__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-register__video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Grid Layout for sections */
.page-register__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-register__grid-layout--reverse {
  grid-template-areas: "image content";
}

.page-register__grid-layout--reverse .page-register__content-block {
  grid-area: content;
}

.page-register__grid-layout--reverse .page-register__image-wrapper {
  grid-area: image;
}

.page-register__content-block {
  padding: 20px 0;
}

.page-register__image-wrapper {
  text-align: center;
}

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

.page-register__image-full-width {
  margin-top: 40px;
  text-align: center;
}

.page-register__image-full-width .page-register__image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Benefits List */
.page-register__benefits-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-register__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-register__section-bg-light .page-register__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #26A9E0;
  font-weight: bold;
}

.page-register__section-bg-dark .page-register__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #26A9E0;
  font-weight: bold;
}

/* Registration Steps */
.page-register__registration-steps {
  padding: 60px 0;
  background-color: #121212;
  color: #ffffff;
  text-align: center;
}

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

.page-register__step-item {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.page-register__step-icon {
  width: 50px;
  height: 50px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-register__step-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* Bonus Section */
.page-register__bonuses-section {
  padding: 60px 0;
}

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

.page-register__bonus-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-register__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-register__bonus-card .page-register__card-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin: 20px 15px 10px;
  font-weight: bold;
}

.page-register__bonus-card .page-register__card-text {
  font-size: 0.95em;
  color: #f0f0f0;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-register__bonus-card .page-register__card-button {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 10px 20px;
  margin: 0 15px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  align-self: center;
}

.page-register__bonus-card .page-register__card-button:hover {
  background-color: #1e87b7;
}

/* Games Section */
.page-register__games-section {
  padding: 60px 0;
  background-color: #121212;
  color: #ffffff;
  text-align: center;
}

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

.page-register__game-category-card {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
}

.page-register__game-category-card .page-register__card-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__game-category-card .page-register__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-register__game-category-card .page-register__card-title a:hover {
  text-decoration: underline;
}

.page-register__game-category-card .page-register__card-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 60px 0;
}

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

.page-register__faq-item {
  background-color: #1a1a1a;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-register__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: #262626;
  border-bottom: 1px solid #333333;
  transition: background-color 0.3s ease;
}

.page-register__faq-item summary:hover {
  background-color: #333333;
}

.page-register__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-register__faq-qtext {
  flex-grow: 1;
  color: #ffffff;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #26A9E0;
}

.page-register__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.7;
  background-color: #1a1a1a;
}

.page-register__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

.page-register__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Call to Action Section */
.page-register__cta-section {
  padding: 80px 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 3em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__grid-layout {
    grid-template-columns: 1fr;
  }
  .page-register__grid-layout--reverse {
    grid-template-areas: none;
  }
  .page-register__grid-layout--reverse .page-register__content-block,
  .page-register__grid-layout--reverse .page-register__image-wrapper {
    grid-area: unset;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-register__hero-section {
    min-height: 450px;
  }
  .page-register__hero-title {
    font-size: 2.2em;
  }
  .page-register__hero-description {
    font-size: 1.1em;
  }
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__card-button,
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__section-description {
    font-size: 1em;
  }
  .page-register__video-section,
  .page-register__why-register,
  .page-register__registration-steps,
  .page-register__bonuses-section,
  .page-register__security-section,
  .page-register__games-section,
  .page-register__support-section,
  .page-register__faq-section,
  .page-register__cta-section {
    padding: 40px 0;
  }
  .page-register__container {
    padding: 0 15px;
  }
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__video-section,
  .page-register__video-container,
  .page-register__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-register__video-wrapper {
    padding-bottom: 75% !important; /* Adjust aspect ratio for mobile if needed, e.g., 4:3 */
  }
  .page-register__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-register__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }
  .page-register__hero-description {
    font-size: 0.95em;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__step-title {
    font-size: 1.3em;
  }
  .page-register__bonus-card .page-register__card-title,
  .page-register__game-category-card .page-register__card-title {
    font-size: 1.2em;
  }
}