/* style/register.css */

/* --- Base Styles --- */
.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;
    box-sizing: border-box;
}

.page-register__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: #26A9E0; /* Brand primary color for titles */
    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__card-title {
    font-size: 1.5em;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #26A9E0;
    font-weight: bold;
}

.page-register__card-text {
    font-size: 1em;
    color: #cccccc;
}

.page-register a {
    color: #26A9E0;
    text-decoration: none;
}

.page-register a:hover {
    text-decoration: underline;
}

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

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

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

.page-register__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    margin-left: 15px;
}

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

.page-register__btn-large {
    padding: 15px 30px;
    font-size: 1.2em;
}

.page-register__btn-huge {
    padding: 18px 35px;
    font-size: 1.4em;
    display: block;
    max-width: 400px;
    margin: 30px auto 0 auto;
}

/* --- Section Styles --- */
.page-register__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Adjust as needed */
    text-align: center;
    overflow: hidden;
    padding: 80px 20px; /* Base padding */
    padding-top: var(--header-offset, 120px); /* Ensure header offset */
}

.page-register__dark-bg {
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-register__light-bg {
    background-color: #2c2c2c; /* Slightly lighter dark background for contrast */
    color: #ffffff;
}

.page-register__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    border-radius: 10px;
}

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

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

.page-register__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-register__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability */
}

.page-register__why-join-section,
.page-register__steps-section,
.page-register__offers-section,
.page-register__security-section,
.page-register__games-section,
.page-register__faq-section,
.page-register__cta-section {
    padding: 80px 0;
}

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

.page-register__feature-card {
    background-color: #1a1a1a; /* Darker card background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__feature-icon {
    width: 100%;
    max-width: 250px; /* Ensure icon is not too large */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-register__step-card {
    background-color: #2c2c2c;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.page-register__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #26A9E0;
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    border: 3px solid #1a1a1a;
}

.page-register__step-card .page-register__card-title {
    margin-top: 40px; /* Adjust for step number */
}

/* --- Offer Cards --- */
.page-register__offer-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.page-register__offer-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
}

.page-register__offer-card .page-register__card-title {
    padding: 15px 20px 0;
    margin-bottom: 5px;
}

.page-register__offer-card .page-register__card-text {
    padding: 0 20px 15px;
    flex-grow: 1; /* Allows text to take up available space */
}

.page-register__card-link {
    display: block;
    padding: 15px 20px;
    background-color: #26A9E0;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__card-link:hover {
    background-color: #1a8cc4;
    text-decoration: none;
}

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

.page-register__security-item {
    background-color: #2c2c2c;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__security-icon {
    width: 100%;
    max-width: 250px; /* Ensure icon is not too large */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

/* --- 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 {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-register__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
}

.page-register__game-card .page-register__card-title {
    padding: 15px 20px 0;
    margin-bottom: 5px;
    color: #26A9E0; /* Ensure title is readable */
}

.page-register__game-card .page-register__card-text {
    padding: 0 20px 15px;
    color: #cccccc;
    flex-grow: 1;
}

/* --- FAQ Section --- */
.page-register__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #1a1a1a;
    color: #ffffff;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    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-color: transparent;
}

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

.page-register__faq-item[open] .page-register__faq-toggle {
    transform: rotate(45deg); /* Rotate + to X when open */
}

.page-register__faq-answer {
    padding: 15px 25px 20px;
    color: #cccccc;
    font-size: 1em;
}

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

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

.page-register__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-register__cta-subtext {
    margin-top: 20px;
    font-size: 1em;
    color: #f0f0f0;
}


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

    .page-register__intro-text {
        font-size: 1.1em;
    }

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

    .page-register__feature-grid,
    .page-register__steps-grid,
    .page-register__offer-cards,
    .page-register__security-grid,
    .page-register__game-categories {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

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

    .page-register__hero-section {
        flex-direction: column;
        min-height: auto;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
        padding-bottom: 40px;
    }

    .page-register__hero-content {
        width: 100%;
        max-width: 100%;
        padding: 20px 15px;
        box-sizing: border-box;
    }

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

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

    .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;
        margin-left: 0 !important; /* Remove margin for stack */
        margin-bottom: 15px; /* Add vertical spacing */
    }

    .page-register__btn-huge {
        max-width: 100% !important;
        width: 100% !important;
    }

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

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