/* style/register.css */

/* Custom color variables based on provided palette */
:root {
    --page-register-card-bg: #11271B;
    --page-register-bg: #08160F; /* This will be the body background for this page, but shared.css sets it as var(--background) */
    --page-register-text-main: #F2FFF6;
    --page-register-text-secondary: #A7D9B8;
    --page-register-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-register-border: #2E7A4E;
    --page-register-glow: #57E38D;
    --page-register-gold: #F2C14E;
    --page-register-divider: #1E3A2A;
    --page-register-deep-green: #0A4B2C;
}

/* Base styles for the page content, ensuring contrast with body background */
.page-register {
    font-family: 'Arial', sans-serif;
    color: var(--page-register-text-main); /* Light text for dark body background */
    background-color: var(--page-register-bg); /* Use the custom background for this page */
    line-height: 1.6;
    padding-top: 10px; /* Small top padding for the first section, body padding-top handles header offset */
}

.page-register a {
    color: var(--page-register-glow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-register a:hover {
    color: var(--page-register-gold);
}

.page-register strong {
    color: var(--page-register-gold);
}

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

/* Hero Section */
.page-register__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px; /* Space below content */
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-register__hero-image-wrapper {
    width: 100%;
    position: relative;
    z-index: 0;
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 700px; /* Limit height for aesthetic */
}

.page-register__hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    margin-top: -150px; /* Overlap with image for visual effect, but not covering text */
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: rgba(17, 39, 27, 0.9); /* Slightly transparent card background */
    border: 1px solid var(--page-register-border);
}

.page-register__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--page-register-text-main);
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.page-register__description {
    font-size: 1.1em;
    color: var(--page-register-text-secondary);
    margin-bottom: 30px;
}

/* CTA Button */
.page-register__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--page-register-button-gradient);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1em;
    border-radius: 50px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    text-align: center;
}

.page-register__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

/* Sections */
.page-register__benefits-section,
.page-register__guide-section,
.page-register__promotions-section,
.page-register__security-section,
.page-register__faq-section,
.page-register__explore-section {
    padding: 60px 0;
}

.page-register__light-bg {
    background-color: var(--page-register-bg); /* Ensure consistent dark background */
    color: var(--page-register-text-main);
}

.page-register__dark-section {
    background-color: var(--page-register-card-bg); /* Darker green background for some sections */
    color: var(--page-register-text-main);
}

.page-register__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--page-register-gold);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-register__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--page-register-glow);
    margin: 20px auto 0;
    border-radius: 2px;
}

.page-register__text-block {
    font-size: 1.05em;
    color: var(--page-register-text-secondary);
    text-align: justify;
    margin-bottom: 20px;
}

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

.page-register__benefit-card,
.page-register__promo-card,
.page-register__step-card,
.page-register__feature-item,
.page-register__game-card {
    background-color: var(--page-register-card-bg);
    border: 1px solid var(--page-register-border);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__benefit-card:hover,
.page-register__promo-card:hover,
.page-register__step-card:hover,
.page-register__feature-item:hover,
.page-register__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-register__card-image,
.page-register__step-image,
.page-register__feature-icon {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    display: block;
}

.page-register__card-title,
.page-register__step-title,
.page-register__feature-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--page-register-gold);
    margin-bottom: 15px;
}

.page-register__card-text,
.page-register__step-description,
.page-register__feature-description {
    font-size: 1em;
    color: var(--page-register-text-secondary);
    flex-grow: 1; /* Ensure text takes up available space */
}

/* Step Cards for Guide Section */
.page-register__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-register__step-number {
    font-size: 3em;
    font-weight: 800;
    color: var(--page-register-glow);
    margin-bottom: 15px;
    background: var(--page-register-deep-green);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--page-register-border);
}

/* Security Features */
.page-register__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-register__feature-icon {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin: 0 auto 20px;
}

/* FAQ Section */
.page-register__faq-list {
    margin-top: 40px;
}

.page-register__faq-item {
    background-color: var(--page-register-card-bg);
    border: 1px solid var(--page-register-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--page-register-text-main);
    cursor: pointer;
    background-color: var(--page-register-deep-green);
    border-bottom: 1px solid var(--page-register-divider);
    list-style: none; /* For details/summary */
}

.page-register__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}

.page-register__faq-item[open] .page-register__faq-question {
    border-bottom: 1px solid var(--page-register-border);
}

.page-register__faq-qtext {
    flex-grow: 1;
    text-align: left;
    color: var(--page-register-gold);
}

.page-register__faq-toggle {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--page-register-glow);
    margin-left: 20px;
}

.page-register__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: var(--page-register-text-secondary);
    text-align: justify;
}

.page-register__faq-answer p {
    margin-bottom: 10px;
}

.page-register__faq-answer p:last-child {
    margin-bottom: 0;
}

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

.page-register__game-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__game-card .page-register__card-image {
    height: 180px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-register__hero-content {
        margin-top: -100px;
    }
}

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

    .page-register__container {
        padding: 0 15px;
    }

    .page-register__hero-section {
        padding-bottom: 40px;
    }

    .page-register__hero-content {
        margin-top: -80px;
        padding: 30px 15px;
        border-radius: 10px;
    }

    .page-register__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-register__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-register__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-register__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-register__grid,
    .page-register__steps-grid,
    .page-register__security-features,
    .page-register__promo-grid,
    .page-register__game-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-register__benefit-card,
    .page-register__promo-card,
    .page-register__step-card,
    .page-register__feature-item,
    .page-register__game-card {
        padding: 20px;
        border-radius: 10px;
    }

    .page-register__card-title,
    .page-register__step-title,
    .page-register__feature-title {
        font-size: 1.3em;
        margin-bottom: 10px;
    }

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

    .page-register__faq-qtext {
        color: var(--page-register-gold);
    }

    .page-register__faq-toggle {
        font-size: 1.2em;
        margin-left: 15px;
    }

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

    /* Mobile image and video responsiveness */
    .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__hero-section,
    .page-register__hero-content,
    .page-register__benefits-section,
    .page-register__guide-section,
    .page-register__promotions-section,
    .page-register__security-section,
    .page-register__faq-section,
    .page-register__explore-section,
    .page-register__hero-image-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    .page-register__hero-section {
        padding-top: 10px !important; /* body already has padding-top */
    }

    .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__cta-buttons {
      display: flex;
      flex-direction: column;
    }
}