/* ====================== help.css ====================== */
/* Merged: Globe (renamed containers) + Advanced Help (dark purple-blue theme) */
/* All names are prefixed/specific to prevent conflicts with any other site code */

:root {
    --purple: #6d28d9;
    --blue: #3b82f6;
    --cyan: #00ddff;
    --gradient: linear-gradient(135deg, #6d28d9, #3b82f6);
}

/* ====================== GLOBE BACKGROUND (specific names) ====================== */
.globe-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, #0a001f, #000011);
    z-index: 1;
    display: block;
}

.globe-section .globe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

.globe-section svg {
    filter: drop-shadow(0 0 60px rgba(0, 220, 255, 0.3));
    max-width: 100%;
    max-height: 100%;
    width: 1300px;
    height: 760px;
}

/* Overlay that sits ON TOP of the rotating globe */
.globe-section .overlay-content {
    position: relative;
    z-index: 10;
    color: #f8fafc;
    width: 100%;
    height: 100%;
    padding: 0;
    text-align: left;
    pointer-events: auto;
    overflow-y: auto;
    text-shadow: 0 0 20px rgba(0, 220, 255, 0.4);
    display: flex;
    flex-direction: column;
}

/* Subtle shine over globe */
.globe-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(100, 220, 255, 0.08), transparent);
    animation: shine 12s linear infinite;
    pointer-events: none;
    z-index: 2;
}
@keyframes shine {
    0% { transform: translateX(-150%); }
    100% { transform: translateX(300%); }
}

/* Globe visual elements (unchanged, just namespaced) */
.country-label {
    font-size: 12px;
    font-weight: 600;
    fill: #ffffff;
    text-shadow: 0 0 6px #000, 0 2px 4px rgba(0,0,0,0.9);
    pointer-events: none;
    paint-order: stroke;
    stroke: #000;
    stroke-width: 0.8px;
    stroke-opacity: 0.7;
}
.country-dot {
    fill: #ffd700;
    stroke: #ff8c00;
    stroke-width: 1.5;
}
.connection-line {
    fill: none;
    stroke: #00ddff;
    stroke-width: 1.6;
    stroke-opacity: 0.5;
    stroke-linecap: round;
}
.moving-dot {
    fill: #fff;
    stroke: #00ffff;
    stroke-width: 2;
    filter: drop-shadow(0 0 8px #00ffff);
}

/* ====================== HELP CONTENT (advanced dark purple-blue theme) ====================== */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: transparent;
    color: #f8fafc;
    /* FIXED: normal line-height for readability */
    line-height: 1.5;
    overflow-x: hidden;
}

.help-header {
    background: transparent;
    color: white;
    padding: 1.2rem 0 0.8rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(109, 40, 217, 0.15);
    position: relative;
    z-index: 11;
    transition: all 0.4s ease;
}

.help-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.4rem;
    letter-spacing: -1px;
    line-height: 1.2;
}

.help-main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 20px;
    position: relative;
    z-index: 12;
}

/* FAQ Section - advanced glassmorphism + purple accents */
.faq-section {
    background: rgba(15, 23, 42, 0.39);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(167, 139, 250, 0.15) inset;
    overflow: hidden;
    margin-bottom: 3rem;
    backdrop-filter: blur(16px);
}

.faq-header {
    padding: 1.8rem 2.2rem;
    border-bottom: 1px solid rgba(167, 139, 250, 0.15);
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(30, 41, 59, 0.425);
}

.faq-header h2 {
    font-size: 1.55rem;
    color: #f8fafc;
    margin: 0;
    line-height: 1.3;
}

.faq-item {
    border-bottom: 1px solid rgba(167, 139, 250, 0.15);
    transition: all 0.3s ease;
}

.faq-question {
    padding: 1.8rem 2.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.15rem;
    color: #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.4;        /* ensures multi-line questions don't overlap */
    word-break: break-word;
}

.faq-question:hover {
    background: rgba(167, 139, 250, 0.08);
}

.faq-toggle {
    font-size: 1.4rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #c084fc;
    margin-left: 16px;        /* prevent overlap with long text */
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 2.2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;         /* readable answer text */
    word-break: break-word;
}

.faq-item.active .faq-answer {
    padding-bottom: 1.8rem;
    max-height: 600px;        /* increased for longer answers */
}

.faq-answer p {
    margin: 0 0 0.75rem;
}
.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer-note {
    text-align: center;
    padding: 2rem 0;
    color: #c4d0ff;
    font-size: 1.05rem;
    line-height: 1.6;         /* prevent overlapping */
    opacity: 0.9;
}

.footer-note a {
    color: #c084fc;
    text-decoration: none;
    word-break: break-all;    /* long email wrap on mobile */
}

.footer-note a:hover {
    text-decoration: underline;
}

.live-globe-note {
    display: block;
    margin-top: 8px;
    font-size: 0.95rem;
    opacity: 0.75;
}

/* ====================== BLUE & PURPLE CUSTOM SCROLLBAR ====================== */
.overlay-content::-webkit-scrollbar,
.faq-section::-webkit-scrollbar,
.help-main-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.overlay-content::-webkit-scrollbar-track,
.faq-section::-webkit-scrollbar-track,
.help-main-container::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.85);
    border-radius: 20px;
}

.overlay-content::-webkit-scrollbar-thumb,
.faq-section::-webkit-scrollbar-thumb,
.help-main-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--purple), var(--blue));
    border-radius: 20px;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.overlay-content::-webkit-scrollbar-thumb:hover,
.faq-section::-webkit-scrollbar-thumb:hover,
.help-main-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7c3aed, #60a5fa);
    box-shadow: 0 0 12px rgba(0, 221, 255, 0.6);
}

/* Firefox support */
.overlay-content,
.faq-section,
.help-main-container {
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #0f172a;
}

/* ====================== RESPONSIVE - MOBILE & SMALL SCREEN ====================== */
@media (max-width: 768px) {
    .globe-section svg {
        width: 720px;
        height: 410px;
    }

    .help-header {
        padding: 1rem 0 0.6rem;
    }
    .help-header h1 {
        font-size: 2.25rem;
    }
    .help-main-container {
        padding: 1.4rem 16px;
    }

    /* Search bar (if used) */
    .search-container {
        margin: 1.2rem auto 2.2rem;
        max-width: 100%;
    }
    .search-input {
        padding: 15px 22px 15px 52px;
        font-size: 1.08rem;
    }
    .search-icon {
        left: 24px;
    }

    .faq-section {
        margin-bottom: 2.2rem;
        border-radius: 20px;
    }
    .faq-header {
        padding: 1.5rem 1.9rem;
    }
    .faq-header h2 {
        font-size: 1.4rem;
    }
    .faq-question {
        padding: 1.5rem 1.9rem;
        font-size: 1.08rem;
        line-height: 1.4;
    }
    .faq-toggle {
        font-size: 1.5rem;
        margin-left: 12px;
    }
    .faq-answer {
        font-size: 1.02rem;
        line-height: 1.55;
    }
    .faq-item.active .faq-answer {
        padding-bottom: 1.5rem;
    }

    .footer-note {
        padding: 1.6rem 0;
        font-size: 0.98rem;
        line-height: 1.5;
    }
    /* Stack email and response on very small screens */
    .footer-note br {
        display: none; /* optional: remove <br> if you want inline stacking */
    }
    /* Instead, we'll let it wrap naturally */
    .footer-note {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
    .footer-note a {
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .globe-section svg {
        width: 520px;
        height: 300px;
    }

    .help-header h1 {
        font-size: 1.95rem;
    }
    .help-main-container {
        padding: 1rem 12px;
    }

    .search-input {
        padding: 13px 18px 13px 48px;
        font-size: 1.02rem;
    }

    .faq-header {
        padding: 1.3rem 1.6rem;
    }
    .faq-header h2 {
        font-size: 1.3rem;
    }
    .faq-question {
        padding: 1.3rem 1.6rem;
        font-size: 1.02rem;
    }
    .faq-answer {
        font-size: 0.98rem;
        line-height: 1.5;
    }

    .footer-note {
        font-size: 0.92rem;
        padding: 1.4rem 0;
    }
}