/* style/index-new-player-guide.css */

/* Custom CSS Variables based on color scheme */
:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    --card-bg-color: #17191F;
    --bg-color: #0D0E12;
    --text-main-color: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange-color: #D96800;
}

/* General styles for the page content */
.page-index-new-player-guide {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color);
    background-color: var(--bg-color);
    overflow-x: hidden; /* Prevent horizontal scroll on desktop */
}

/* Container for max-width content */
.page-index-new-player-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-index-new-player-guide__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Subtitle/Intro text */
.page-index-new-player-guide__subtitle,
.page-index-new-player-guide__intro-text {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-main-color);
}

/* Buttons */
.page-index-new-player-guide__btn-primary,
.page-index-new-player-guide__btn-secondary,
.page-index-new-player-guide__btn-tertiary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-index-new-player-guide__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-index-new-player-guide__btn-primary:hover {
    background: linear-gradient(180deg, var(--glow-color) 0%, var(--primary-color) 100%);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
    transform: translateY(-2px);
}

.page-index-new-player-guide__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-index-new-player-guide__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.page-index-new-player-guide__btn-tertiary {
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 10px 20px;
    font-size: 0.95em;
    margin-top: 15px;
}

.page-index-new-player-guide__btn-tertiary:hover {
    background-color: var(--secondary-color);
    color: var(--card-bg-color); /* Dark text for light button */
    transform: translateY(-1px);
}

/* Hero Section */
.page-index-new-player-guide__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 80px;
    background-color: var(--bg-color);
}

.page-index-new-player-guide__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px; /* Space between image and content */
}

.page-index-new-player-guide__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index-new-player-guide__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-index-new-player-guide__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    font-weight: 900;
    color: var(--glow-color);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.page-index-new-player-guide__hero-content .page-index-new-player-guide__subtitle {
    font-size: clamp(1em, 2vw, 1.3em);
    margin-bottom: 40px;
    color: var(--text-main-color);
}

.page-index-new-player-guide__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Intro Section */
.page-index-new-player-guide__intro-section {
    padding: 80px 0;
    background-color: var(--card-bg-color);
}

.page-index-new-player-guide__intro-section .page-index-new-player-guide__content-block {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-index-new-player-guide__intro-section .page-index-new-player-guide__content-image {
    width: 50%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-height: 200px; /* Enforce min image size */
    min-width: 200px;
}

.page-index-new-player-guide__intro-section .page-index-new-player-guide__text-content {
    width: 50%;
}

.page-index-new-player-guide__intro-section p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: var(--text-main-color);
}

/* Advantages Section */
.page-index-new-player-guide__advantages-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.page-index-new-player-guide__advantages-section .page-index-new-player-guide__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-index-new-player-guide__advantage-card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-index-new-player-guide__advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(255, 140, 26, 0.3);
}

.page-index-new-player-guide__advantage-card .page-index-new-player-guide__card-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Enforce min image size */
    min-width: 200px;
}

.page-index-new-player-guide__advantage-card .page-index-new-player-guide__card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-index-new-player-guide__advantage-card .page-index-new-player-guide__card-text {
    font-size: 0.95em;
    color: var(--text-main-color);
}

/* Guide Section (Step-by-step) */
.page-index-new-player-guide__guide-section {
    padding: 80px 0;
    background-color: var(--card-bg-color);
}

.page-index-new-player-guide__step-card {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-index-new-player-guide__step-card--reverse {
    flex-direction: row-reverse;
}

.page-index-new-player-guide__step-icon {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    background-color: rgba(255, 140, 26, 0.1);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--primary-color);
}

.page-index-new-player-guide__step-content {
    flex-grow: 1;
}

.page-index-new-player-guide__step-title {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-index-new-player-guide__step-content p {
    font-size: 1.0em;
    color: var(--text-main-color);
    margin-bottom: 15px;
}

.page-index-new-player-guide__step-image {
    width: 40%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    min-height: 200px; /* Enforce min image size */
    min-width: 200px;
}

/* Tips Section */
.page-index-new-player-guide__tips-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.page-index-new-player-guide__tips-section .page-index-new-player-guide__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-index-new-player-guide__tip-card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-index-new-player-guide__tip-card .page-index-new-player-guide__card-title {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-index-new-player-guide__tip-card .page-index-new-player-guide__card-text {
    font-size: 0.95em;
    color: var(--text-main-color);
}

.page-index-new-player-guide__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Section */
.page-index-new-player-guide__faq-section {
    padding: 80px 0;
    background-color: var(--card-bg-color);
}

.page-index-new-player-guide__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-index-new-player-guide__faq-item {
    background-color: var(--bg-color);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    color: var(--text-main-color);
}

.page-index-new-player-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    background-color: #1a1d25; /* Slightly lighter than bg for contrast */
    color: var(--secondary-color);
    transition: background-color 0.3s ease;
}

.page-index-new-player-guide__faq-item[open] .page-index-new-player-guide__faq-question {
    background-color: #21252d;
}

.page-index-new-player-guide__faq-question:hover {
    background-color: #21252d;
}

.page-index-new-player-guide__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

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

.page-index-new-player-guide__faq-item[open] .page-index-new-player-guide__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or use '-' */
}

.page-index-new-player-guide__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1.0em;
    color: var(--text-main-color);
}

.page-index-new-player-guide__faq-answer p {
    margin-bottom: 10px;
}

/* Hide default details marker */
.page-index-new-player-guide__faq-item > summary {
    list-style: none;
}
.page-index-new-player-guide__faq-item > summary::-webkit-details-marker {
    display: none;
}

/* Final CTA Section */
.page-index-new-player-guide__cta-final-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--bg-color);
}

.page-index-new-player-guide__cta-final-section .page-index-new-player-guide__section-title {
    color: var(--glow-color);
}

.page-index-new-player-guide__cta-final-section .page-index-new-player-guide__subtitle {
    max-width: 700px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-index-new-player-guide__section-title {
        font-size: 2em;
    }
    .page-index-new-player-guide__hero-section {
        padding-bottom: 60px;
    }
    .page-index-new-player-guide__main-title {
        font-size: clamp(2em, 4vw, 3em);
    }
    .page-index-new-player-guide__intro-section .page-index-new-player-guide__content-block {
        flex-direction: column;
        text-align: center;
    }
    .page-index-new-player-guide__intro-section .page-index-new-player-guide__content-image,
    .page-index-new-player-guide__intro-section .page-index-new-player-guide__text-content {
        width: 100%;
    }
    .page-index-new-player-guide__step-card {
        flex-direction: column;
        text-align: center;
    }
    .page-index-new-player-guide__step-card--reverse {
        flex-direction: column; /* Keep consistent for mobile */
    }
    .page-index-new-player-guide__step-icon {
        margin-bottom: 20px;
    }
    .page-index-new-player-guide__step-image {
        width: 80%;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-index-new-player-guide__container {
        padding: 0 15px;
    }
    .page-index-new-player-guide__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-index-new-player-guide__subtitle,
    .page-index-new-player-guide__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-index-new-player-guide__hero-section {
        padding-bottom: 40px;
        padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    }
    .page-index-new-player-guide__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-index-new-player-guide__hero-content .page-index-new-player-guide__subtitle {
        margin-bottom: 30px;
    }
    .page-index-new-player-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 350px;
        margin: 0 auto;
        padding: 0 15px;
    }
    .page-index-new-player-guide__btn-primary,
    .page-index-new-player-guide__btn-secondary,
    .page-index-new-player-guide__btn-tertiary,
    .page-index-new-player-guide a[class*="button"],
    .page-index-new-player-guide 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;
    }

    /* Images responsiveness */
    .page-index-new-player-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-index-new-player-guide__hero-image-wrapper,
    .page-index-new-player-guide__intro-section .page-index-new-player-guide__content-block,
    .page-index-new-player-guide__advantages-section .page-index-new-player-guide__grid,
    .page-index-new-player-guide__guide-section .page-index-new-player-guide__step-card,
    .page-index-new-player-guide__tips-section .page-index-new-player-guide__grid,
    .page-index-new-player-guide__faq-section .page-index-new-player-guide__faq-list,
    .page-index-new-player-guide__cta-final-section .page-index-new-player-guide__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-index-new-player-guide__step-image {
        width: 100%;
        max-width: 100%;
    }
    .page-index-new-player-guide__advantage-card .page-index-new-player-guide__card-image {
        max-width: 100%;
    }
    .page-index-new-player-guide__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-index-new-player-guide__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-index-new-player-guide__section-title {
        font-size: 1.5em;
    }
    .page-index-new-player-guide__main-title {
        font-size: clamp(1.5em, 8vw, 2em);
    }
    .page-index-new-player-guide__step-title {
        font-size: 1.4em;
    }
    .page-index-new-player-guide__step-icon {
        width: 60px;
        height: 60px;
        font-size: 2em;
    }
}