/* =====================================================
   JOIN GUIDE
   Part 1 - Layout & Categories
===================================================== */

html {
    scroll-behavior: smooth;
}

:root {
    --primary: #00c8ff;
    --primary-light: #57dcff;
    --background-card: rgba(255, 255, 255, .03);
    --border: rgba(0, 200, 255, .15);
    --text: #d9d9d9;
    --text-light: #b8b8b8;
}

/* ---------------------------------------------------
   ABOUT US — HERO IMAGE WITH TITLE
--------------------------------------------------- */
.hero {
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 300px;
    background: url('/assets/Aincrad.png') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 10;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #00c8ff;
    text-shadow: 0 0 18px #00c8ff;
}

.hero-content p {
    font-size: 1.3rem;
    color: #d9d9d9 margin-top: 10px;
}

/* =====================================================
   PAGE
===================================================== */

.join-page {
    display: flex;
    gap: 60px;
    max-width: 1400px;
    margin: 120px auto 80px;
    padding: 0 30px;
    align-items: flex-start;
}

/* =====================================================
   SIDEBAR
===================================================== */

.toc {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 110px;
    background: rgba(18, 18, 18, .92);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    box-shadow:
        0 0 20px rgba(0, 200, 255, .08);
    max-height: 80vh;
    overflow-y: auto;
}

.toc h3 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 700;
}

.toc h3::after {
    content: "";

    display: block;

    width: 55px;
    height: 3px;

    margin-top: 10px;

    border-radius: 50px;

    background: linear-gradient(90deg,
            var(--primary),
            #0075ff);
}

.toc::-webkit-scrollbar {
    width: 6px;
}

.toc::-webkit-scrollbar-thumb {
    background: #00c8ff;
    border-radius: 20px;
}

.toc::-webkit-scrollbar-track {
    background: transparent;
}

/* =====================================================
   MAIN CATEGORY
===================================================== */

.toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc>ul>li {
    margin-bottom: 28px;
}

.toc>ul>li>a {
    display: flex;
    justify-content: space-between;
    align-items: center;

    color: white;

    text-decoration: none;

    font-size: 1.05rem;

    font-weight: 600;

    transition: .25s;
}

.toc>ul>li>a:hover {

    color: var(--primary);

    transform: translateX(5px);

}

/* =====================================================
   SUB CATEGORY
===================================================== */

.sub-toc {
    margin-top: 12px;
    margin-left: 18px;
    border-left: 2px solid rgba(0, 200, 255, .15);
    padding-left: 15px;
    max-height: 0;
    overflow: hidden;
    transition:
        max-height .35s ease;

}

.sub-toc.open {

    max-height: 800px;

}

.sub-toc li {

    margin: 12px 0;

}

.sub-toc a {
    color: var(--text-light);
    text-decoration: none;
    font-size: .95rem;
    transition:
        color .25s,
        padding-left .25s;

}

.sub-toc a:hover {
    color: var(--primary);
    padding-left: 6px;
}

/* =====================================================
   ACTIVE LINK
===================================================== */

.toc a.active {
    color: var(--primary);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 200, 255, .4);
}

.sub-toc a.active {

    color: var(--primary-light);

}

/* =====================================================
   ARROW
===================================================== */

.arrow-toggle {

    transition: .3s;

    font-size: .9rem;

}

.arrow-toggle.open {

    transform: rotate(180deg);

}

/* =====================================================
   MAIN CONTENT
===================================================== */

.join-main {
    flex: 1;
    max-width: 1000px;

}

/* =====================================================
   HEADER
===================================================== */

.join-header {

    margin-bottom: 70px;

}

.join-header h1 {

    color: var(--primary);

    font-size: 3rem;

    margin-bottom: 15px;

    text-shadow: 0 0 12px rgba(0, 200, 255, .3);

}

.join-header h1::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin-top: 10px;
    border-radius: 20px;
    background: linear-gradient(90deg,
            var(--primary),
            #0070ff);

}

.join-header p {
    max-width: 700px;
    line-height: 1.9;
    color: var(--text);
}

/* =====================================================
   GUIDE SECTION
===================================================== */

.guide-section {
    margin-bottom: 90px;
    scroll-margin-top: 120px;
}

.guide-section h2 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 2rem;
}

.guide-section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    margin-top: 10px;
    border-radius: 20px;
    background: linear-gradient(90deg,
            var(--primary),
            #0070ff);

}

.guide-image {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(0, 200, 255, .15);
    box-shadow: 0 0 20px rgba(0, 200, 255, .15);

}

.section-description {

    margin-bottom: 35px;
    color: var(--text);
    line-height: 1.8;

}

/* =====================================================
   REQUIREMENTS
===================================================== */

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.requirement-card {
    background: var(--background-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: .3s ease;
}

.requirement-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(0, 200, 255, .15);
}

.requirement-card i {
    font-size: 2.3rem;
    color: var(--primary);
    margin-bottom: 18px;
}

.requirement-card h3 {
    color: white;
    margin-bottom: 8px;
}

.requirement-card span {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--primary);
    font-size: .9rem;
    font-weight: 600;
}

.requirement-card p {
    color: var(--text);
    line-height: 1.8;
}

/* =====================================================
   GETTING STARTED
===================================================== */

.getting-started {

    display: flex;

    flex-direction: column;

    gap: 35px;

    margin-top: 35px;

}

.start-step {

    display: flex;

    gap: 25px;

    align-items: flex-start;

}

.step-circle {

    width: 55px;

    height: 55px;

    flex-shrink: 0;

    border-radius: 50%;

    background: linear-gradient(135deg,
            #00c8ff,
            #0070ff);

    color: white;

    display: flex;

    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 200, 255, .25);

}

.start-content {
    flex: 1;

}

.start-content h3 {
    color: white;
    margin-bottom: 10px;

}

.start-content p {
    color: var(--text);
    line-height: 1.8;

}

/* =====================================================
   DOWNLOAD BUTTONS
===================================================== */

.download-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.download-buttons a {
    padding: 12px 22px;
    text-decoration: none;
    color: white;

    background: linear-gradient(90deg,
            #00c8ff,
            #0070ff);

    border-radius: 8px;

    transition: .25s;
}

.download-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 200, 255, .3);
}

/* =====================================================
   TIMELINE
===================================================== */

.timeline {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.timeline-step {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.step-number {
    width: 60px;
    height: 60px;

    flex-shrink: 0;

    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 1.3rem;
    font-weight: bold;
    color: white;

    background: linear-gradient(135deg,
            #00c8ff,
            #0070ff);

    box-shadow: 0 0 18px rgba(0, 200, 255, .25);
}

.step-content {
    flex: 1;

    background: var(--background-card);

    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 25px;
}

.step-content h3 {
    color: white;
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text);
    line-height: 1.8;
}

/* =====================================================
   NOTICE BOX
===================================================== */

.notice-box {
    margin-top: 20px;
    padding: 20px;

    border-left: 4px solid var(--primary);

    background: rgba(0, 200, 255, .06);

    border-radius: 10px;
}

.notice-box strong {
    color: var(--primary);
}

.notice-box ul {
    margin-top: 15px;
    padding-left: 20px;
}

.notice-box li {
    color: var(--text);
    margin-bottom: 8px;
}

/* =====================================================
   PLAYER MENU
===================================================== */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.menu-card {
    background: var(--background-card);

    border: 1px solid var(--border);

    border-radius: 16px;

    padding: 28px;

    transition: .3s;
}

.menu-card:hover {
    transform: translateY(-5px);

    border-color: var(--primary);

    box-shadow: 0 0 20px rgba(0, 200, 255, .15);
}

.menu-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--primary);

    margin-bottom: 18px;
}

.menu-card h3 i {
    font-size: 1.1rem;
}

.menu-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-card li {
    position: relative;

    padding-left: 18px;

    margin-bottom: 10px;

    color: var(--text);

    line-height: 1.7;
}

.menu-card li::before {
    content: "•";

    position: absolute;

    left: 0;

    color: var(--primary);

    font-size: 1.2rem;

    text-shadow: 0 0 6px rgba(0, 200, 255, .5);
}

/* =====================================================
   COMING SOON TAG
===================================================== */

.coming-soon {
    display: inline-block;

    margin-left: 8px;

    padding: 3px 8px;

    border-radius: 20px;

    font-size: .72rem;

    color: #ffd54d;

    background: rgba(255, 213, 77, .08);

    border: 1px solid rgba(255, 213, 77, .25);
}

/* =====================================================
   VIDEO
===================================================== */

.video-wrapper,
.combat-video {
    margin: 35px 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 0 20px rgba(0, 200, 255, .15);
}

.video-wrapper iframe,
.combat-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

/* =====================================================
   COMBAT - KEY FEATURES
===================================================== */

.combat-info {
    margin-top: 40px;
}

.combat-info h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.combat-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.combat-info li {
    position: relative;
    padding: 0 0 24px 28px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.combat-info li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Glowing bullet */

.combat-info li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: -2px;

    color: var(--primary);
    font-size: 1.6rem;
    line-height: 1;

    text-shadow: 0 0 8px rgba(0, 200, 255, .8);
}

.combat-info strong {
    display: block;
    color: white;
    font-size: 1.08rem;
    margin-bottom: 8px;
}

.combat-info p {
    margin: 0;
    color: var(--text);
    line-height: 1.8;
}

/* =====================================================
   INSPIRED BY PRECISION COMBAT
===================================================== */

.combat-note {
    display: flex;
    align-items: flex-start;
    gap: 20px;

    margin-top: 40px;
    padding: 25px;

    background: rgba(0, 200, 255, .05);
    border: 1px solid rgba(0, 200, 255, .15);
    border-left: 4px solid var(--primary);
    border-radius: 14px;
}

.combat-note i {
    flex-shrink: 0;
    font-size: 2rem;
    color: var(--primary);
    margin-top: 2px;
    text-shadow: 0 0 10px rgba(0, 200, 255, .5);
}

.combat-note h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.combat-note p {
    margin: 0;
    color: var(--text);
    line-height: 1.8;
}

.combat-note strong {
    color: #ffffff;
}

/* =====================================================
   INFORMATION LIST
===================================================== */

.info-list {
    list-style: none;
    margin: 30px 0;
    padding: 0;
}

.info-list li {
    padding: 0 0 25px 28px;
    margin-bottom: 25px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.info-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--primary);
    font-size: 1.5rem;
    text-shadow: 0 0 8px rgba(0, 200, 255, .6);
}

.info-list strong {
    display: block;
    color: white;
    margin-bottom: 8px;
    font-size: 1.08rem;
}

.info-list p {
    margin: 0;
    color: var(--text);
    line-height: 1.8;
}

/* =====================================================
   NOTE / TIP
===================================================== */

.info-note {
    margin-top: 35px;
    padding: 22px 28px;

    background: rgba(0, 200, 255, .05);

    border-left: 4px solid var(--primary);

    border-radius: 12px;
}

.info-note h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.info-note p {
    color: var(--text);
    line-height: 1.8;
}

/* =====================================================
   COMING SOON
===================================================== */

.coming-section {
    margin-top: 30px;

    text-align: center;

    padding: 50px;

    border-radius: 16px;

    border: 1px dashed rgba(0, 200, 255, .2);

    background: rgba(255, 255, 255, .03);
}

.coming-section i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.coming-section h3 {
    color: white;
    margin-bottom: 15px;
}

.coming-section p {
    color: var(--text);
    max-width: 700px;
    margin: auto;
    line-height: 1.8;
}

/* =====================================================
   TUTORIALS
===================================================== */
.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.tutorial-video {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: .3s;
}

.tutorial-video:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 200, 255, .15);
}

.tutorial-video iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

.tutorial-video h3 {
    padding: 18px;
    color: white;
}

/* =====================================================
   FAQ
===================================================== */

.faq-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, .03);
}

.faq-question {
    width: 100%;

    background: transparent;

    border: none;

    padding: 22px;

    color: white;

    text-align: left;

    display: flex;
    justify-content: space-between;
    align-items: center;

    cursor: pointer;

    transition: .25s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    color: var(--primary);
    transition: .3s;
}

.faq-item.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: .35s ease;
    padding: 0 22px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 22px;
}

.faq-answer p {
    color: var(--text);
    line-height: 1.8;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .join-page {
        display: block;
        margin-top: 100px;
        padding: 0 18px;
    }

    .toc {
        display: none;
    }

    .join-main {
        max-width: 100%;
    }

    .join-header {
        text-align: center;
    }

    .join-header h1::after {
        margin: 10px auto 0;
    }

    .guide-section h2 {
        text-align: center;
    }

    .guide-section h2::after {
        margin: 10px auto 0;
    }

    .section-description {
        text-align: center;
    }

    .requirements-grid,
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .timeline-step {
        flex-direction: column;
        gap: 20px;
    }

    .step-number {
        margin: auto;
    }

    .step-content {
        text-align: center;
    }

    .download-buttons {
        justify-content: center;
    }

    .coming-section {
        padding: 35px 20px;
    }

    .info-note {
        padding: 20px;
    }

    .start-step {

        flex-direction: column;

    }

    .step-circle {

        margin: auto;

    }

    .start-content {

        text-align: center;

    }

    .tutorial-grid {

        grid-template-columns: 1fr;

    }

    .combat-note {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .combat-note i {
        margin: 0 auto 10px;
    }
}