/* style/register.css */

/* --- Base Styles --- */
.page-register {
    color: #ffffff; /* Default text color for the page content on dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Main content area will inherit body background */
}

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

.page-register__section-title {
    font-size: 3em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* --- Buttons --- */
.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding in width calculation */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

.page-register__btn-primary:hover {
    background-color: #1e87b8; /* Darker shade on hover */
    border-color: #1e87b8;
}

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

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

/* --- Hero Section --- */
.page-register__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Minimum height for hero */
    padding-top: var(--header-offset, 120px); /* Space for fixed header */
    background: linear-gradient(135deg, rgba(38, 169, 224, 0.8), rgba(0, 0, 0, 0.8)); /* Gradient overlay */
    overflow: hidden;
    color: #ffffff;
}

.page-register__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.page-register__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-register__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-register__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3; /* Slightly transparent to let content stand out */
}

.page-register__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min size for images */
    min-height: 200px; /* Min size for images */
}

/* --- Why Join Section (Dark background, light text) --- */
.page-register__why-join-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly lighter than body background for contrast */
    color: #ffffff;
}

.page-register__why-join-section .page-register__section-title {
    color: #26A9E0; /* Brand color */
}

.page-register__why-join-section .page-register__section-description {
    color: #f0f0f0;
}

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

.page-register__benefit-card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-register__benefit-card:hover {
    transform: translateY(-10px);
}

.page-register__benefit-card .page-register__card-title {
    font-size: 1.8em;
    color: #26A9E0; /* Brand color */
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: bold;
}

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

.page-register__benefits-image {
    display: block;
    margin: 60px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Min size for images */
    min-height: 200px; /* Min size for images */
}

/* --- Steps Section (Light background, dark text implied by contrast with dark-section) --- */
.page-register__steps-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

.page-register__steps-section .page-register__section-title {
    color: #000000; /* Darker title for contrast */
}

.page-register__steps-section .page-register__section-description {
    color: #555555;
}

.page-register__steps-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
}

.page-register__steps-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-register__step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.page-register__step-number {
    flex-shrink: 0;
    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;
}

.page-register__step-content .page-register__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 5px;
    font-weight: bold;
}

.page-register__step-content .page-register__card-description {
    font-size: 1em;
    color: #333333;
}

.page-register__steps-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-register__steps-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Min size for images */
    min-height: 200px; /* Min size for images */
}

/* --- Games Showcase Section (Dark background, light text) --- */
.page-register__games-showcase-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Dark background */
    color: #ffffff;
}

.page-register__games-showcase-section .page-register__section-title {
    color: #26A9E0;
}

.page-register__games-showcase-section .page-register__section-description {
    color: #f0f0f0;
}

.page-register__game-showcase-image {
    display: block;
    margin: 50px auto;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Min size for images */
    min-height: 200px; /* Min size for images */
}

.page-register__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
    flex-wrap: wrap; /* Allow buttons to wrap */
}

/* --- FAQ Section (Light background, dark text) --- */
.page-register__faq-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

.page-register__faq-section .page-register__section-title {
    color: #000000;
}

.page-register__faq-section .page-register__section-description {
    color: #555555;
}

.page-register__faq-list {
    max-width: 900px;
    margin: 50px auto;
    border-top: 1px solid #e0e0e0;
}

.page-register__faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    color: #333333; /* Dark text for FAQ questions */
}

.page-register__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    list-style: none; /* Remove default marker */
    color: #26A9E0; /* Brand color for questions */
}

.page-register__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

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

.page-register__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #000000; /* Dark color for toggle icon */
    margin-left: 15px;
}

.page-register__faq-answer {
    padding-top: 15px;
    font-size: 1em;
    line-height: 1.6;
    color: #555555; /* Darker text for answers */
}

.page-register__faq-image {
    display: block;
    margin: 60px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Min size for images */
    min-height: 200px; /* Min size for images */
}

/* --- Final CTA Section (Dark background, light text) --- */
.page-register__final-cta-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff;
    text-align: center;
}

.page-register__final-cta-section .page-register__section-title {
    color: #ffffff;
    font-size: 3.5em;
}

.page-register__final-cta-section .page-register__section-description {
    color: #f0f0f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
}

.page-register__final-cta-section .page-register__btn-primary {
    background-color: #EA7C07; /* Login color for primary CTA */
    border-color: #EA7C07;
}

.page-register__final-cta-section .page-register__btn-primary:hover {
    background-color: #c96a06;
    border-color: #c96a06;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 3em;
    }
    .page-register__hero-description {
        font-size: 1.2em;
    }
    .page-register__section-title {
        font-size: 2.5em;
    }
    .page-register__final-cta-section .page-register__section-title {
        font-size: 3em;
    }
    .page-register__steps-wrapper {
        flex-direction: column;
    }
    .page-register__steps-list {
        width: 100%;
    }
    .page-register__steps-image-wrapper {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    /* Fixed header offset for mobile */
    .page-register__hero-section,
    .page-register__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-register__hero-title {
        font-size: 2.5em;
    }
    .page-register__hero-description {
        font-size: 1em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__section-description {
        font-size: 0.95em;
    }
    .page-register__final-cta-section .page-register__section-title {
        font-size: 2.5em;
    }

    /* Images responsiveness */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Content containers responsiveness */
    .page-register__section,
    .page-register__container,
    .page-register__steps-wrapper,
    .page-register__benefits-grid,
    .page-register__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll for content areas */
    }

    /* Buttons responsiveness */
    .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; /* Ensure inner padding */
        padding-right: 15px; /* Ensure inner padding */
    }

    .page-register__hero-buttons,
    .page-register__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-register__hero-buttons .page-register__btn-primary,
    .page-register__hero-buttons .page-register__btn-secondary,
    .page-register__cta-buttons .page-register__btn-primary,
    .page-register__cta-buttons .page-register__btn-secondary {
        width: auto !important; /* Allow width to adjust to content/padding, max-width will handle overflow */
    }

    .page-register__benefits-grid {
        grid-template-columns: 1fr;
    }
    .page-register__faq-item summary {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .page-register__hero-title {
        font-size: 2em;
    }
    .page-register__hero-description {
        font-size: 0.9em;
    }
    .page-register__section-title {
        font-size: 1.8em;
    }
    .page-register__final-cta-section .page-register__section-title {
        font-size: 2em;
    }
}

/* Color contrast fixes based on body background #0a0a0a (dark) */
/* Text in sections with light background should be dark */
.page-register__steps-section,
.page-register__faq-section {
    background-color: #ffffff; /* Explicitly light background */
    color: #333333; /* Dark text for contrast */
}