/* style/register.css */

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

/* Hero Section */
.page-register__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background-color: #0A2E50; /* Main brand color for hero background */
    overflow: hidden;
    gap: 40px;
}

.page-register__hero-content {
    max-width: 900px;
    z-index: 2;
}

.page-register__hero-title {
    font-size: 3.2em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for title */
    line-height: 1.2;
}

.page-register__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.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: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-register__btn-primary {
    background-color: #FFD700; /* Gold primary button */
    color: #0A2E50; /* Dark blue text on gold */
    border: 2px solid #FFD700;
}

.page-register__btn-primary:hover {
    background-color: #e0b800;
    border-color: #e0b800;
    color: #000000;
}

.page-register__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text on dark background */
    border: 2px solid #FFD700;
}

.page-register__btn-secondary:hover {
    background-color: #FFD700;
    color: #0A2E50;
}

.page-register__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3; /* Subtle background image */
    overflow: hidden;
}

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

/* General Section Styles */
.page-register__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.3;
}

.page-register__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

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

/* Light Background Sections */
.page-register__light-bg {
    background-color: #f8f9fa; /* Light background for contrast */
    color: #333333; /* Dark text on light background */
    padding: 60px 0;
}

.page-register__light-bg .page-register__section-title,
.page-register__light-bg .page-register__feature-title,
.page-register__light-bg .page-register__game-title,
.page-register__light-bg .page-register__promo-title {
    color: #0A2E50; /* Dark blue titles on light background */
}

.page-register__light-bg .page-register__text-link {
    color: #0A2E50;
    text-decoration: underline;
}

.page-register__light-bg .page-register__text-link:hover {
    color: #FFD700;
}

/* Dark Background Sections */
.page-register__dark-bg {
    background-color: #0A2E50; /* Dark blue background */
    color: #ffffff; /* Light text on dark background */
    padding: 60px 0;
}

.page-register__dark-bg .page-register__section-title {
    color: #FFD700; /* Gold titles on dark background */
}

.page-register__dark-bg .page-register__step-title,
.page-register__dark-bg .page-register__security-title,
.page-register__dark-bg .page-register__faq-question span:first-child {
    color: #ffffff; /* White titles on dark background */
}

/* Why Section */
.page-register__why-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-register__feature-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-register__feature-icon {
    width: 200px; /* Minimum size */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    display: block; /* Ensure it's a block element */
}

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

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

/* Guide Section */
.page-register__guide-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-register__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 15px;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border: 3px solid #FFD700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.page-register__step-text {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1; /* Ensure text fills space */
}

.page-register__step-image {
    width: 100%;
    max-width: 400px; /* Limit image width */
    height: auto;
    margin-top: 25px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

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

/* Games Section */
.page-register__games-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-register__game-card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-register__game-icon {
    width: 200px; /* Minimum size */
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.page-register__game-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #0A2E50;
}

.page-register__game-text {
    font-size: 0.95em;
    color: #555555;
    flex-grow: 1;
}

/* Security Section */
.page-register__security-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-register__security-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__security-icon {
    width: 200px; /* Minimum size */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

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

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

.page-register__text-link {
    color: #FFD700; /* Gold link on dark background */
    text-decoration: underline;
}

.page-register__text-link:hover {
    color: #e0b800;
}

/* Promotions Section */
.page-register__promotions-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-register__promo-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-register__promo-image {
    width: 200px; /* Minimum size */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

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

.page-register__promo-text {
    font-size: 1em;
    color: #555555;
}

/* FAQ Section */
.page-register__faq-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

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

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

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

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

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

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

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to contain content */
    padding: 15px 25px 25px 25px;
}

.page-register__faq-answer p {
    margin: 0;
    font-size: 1em;
}

/* Final CTA Section */
.page-register__final-cta-section {
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}

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


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

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

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

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

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

    .page-register__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-register__btn-primary,
    .page-register__btn-secondary {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-register__section-description {
        font-size: 1em;
        margin-bottom: 40px;
    }

    .page-register__light-bg,
    .page-register__dark-bg {
        padding: 40px 0;
    }

    .page-register__features-grid,
    .page-register__steps-grid,
    .page-register__game-categories-grid,
    .page-register__security-grid,
    .page-register__promo-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }
}