/**
 * Help Center Stylesheet - SkillCertify
 * Comprehensive, scoped, responsive, accessible design (320px to 1440px)
 */

.sc-help-page {
    font-family: var(--sc-font-sans, 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    color: var(--sc-text-primary, #0F172A);
    background: #F8FAFC;
    min-height: 100vh;
    padding-bottom: 80px;
    scroll-behavior: smooth;
}

.sc-help-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.sc-help-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #FFFFFF;
    padding: 64px 0 52px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sc-help-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.sc-help-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93C5FD;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 9999px;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.sc-help-hero__title {
    font-size: 42px;
    line-height: 1.15;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.sc-help-hero__subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: #94A3B8;
    max-width: 720px;
    margin: 0 0 28px 0;
}

.sc-help-quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sc-help-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #F1F5F9;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 180ms ease;
}

.sc-help-quick-btn:hover {
    background: rgba(37, 99, 235, 0.3);
    border-color: #3B82F6;
    color: #FFFFFF;
    transform: translateY(-1px);
}

/* ==========================================================================
   Sticky Subnav
   ========================================================================== */
.sc-help-subnav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.sc-help-subnav__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    overflow-x: auto;
    padding: 12px 24px;
    scrollbar-width: thin;
    white-space: nowrap;
}

.sc-help-subnav__link {
    font-size: 13.5px;
    font-weight: 600;
    color: #64748B;
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: all 150ms ease;
}

.sc-help-subnav__link:hover {
    color: #2563EB;
    border-bottom-color: #2563EB;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.sc-help-section {
    padding: 60px 0 0;
}

.sc-help-section__header {
    margin-bottom: 32px;
}

.sc-help-section__tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2563EB;
    margin-bottom: 8px;
    display: block;
}

.sc-help-section__title {
    font-size: 28px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
}

.sc-help-section__desc {
    font-size: 16px;
    line-height: 1.6;
    color: #64748B;
    max-width: 680px;
    margin: 0;
}

/* ==========================================================================
   8-Step Flow Grid
   ========================================================================== */
.sc-help-flow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sc-help-flow-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 180ms ease, box-shadow 180ms ease;
    display: flex;
    flex-direction: column;
}

.sc-help-flow-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    border-color: #CBD5E1;
}

.sc-help-flow-card__num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2563EB;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.sc-help-flow-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 8px 0;
}

.sc-help-flow-card__desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: #64748B;
    margin: 0;
}

/* ==========================================================================
   Content Cards (Journey Sections)
   ========================================================================== */
.sc-help-content-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.sc-help-content-card__title {
    font-size: 26px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 16px 0;
    letter-spacing: -0.015em;
}

.sc-help-content-card__subtitle {
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
    margin: 28px 0 12px 0;
}

.sc-help-content-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 16px 0;
}

.sc-help-content-card a {
    color: #2563EB;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.sc-help-content-card__notice {
    background: #F8FAFC;
    border-left: 3px solid #2563EB;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    color: #334155 !important;
    margin: 16px 0 24px 0 !important;
}

.sc-help-bullet-list {
    margin: 0 0 20px 0;
    padding-left: 20px;
    color: #475569;
    font-size: 14.5px;
    line-height: 1.7;
}

.sc-help-bullet-list li {
    margin-bottom: 8px;
}

/* Grid 2 Columns */
.sc-help-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 20px;
}

/* Info Box */
.sc-help-info-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px;
}

.sc-help-info-box__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 12px 0;
}

.sc-help-info-box__title svg {
    color: #2563EB;
}

.sc-help-info-box p {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 12px;
}

.sc-help-info-box__note {
    font-size: 13px !important;
    color: #64748B !important;
    margin-bottom: 0 !important;
}

/* Spec Grid (Exam Numbers) */
.sc-help-spec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0 28px 0;
}

.sc-help-spec-item {
    background: #F1F5F9;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.sc-help-spec-item__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748B;
    margin-bottom: 4px;
}

.sc-help-spec-item__value {
    font-size: 18px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 4px;
}

.sc-help-spec-item__desc {
    font-size: 12px;
    color: #64748B;
    line-height: 1.4;
}

/* Cert Features Grid */
.sc-help-cert-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 24px 0 28px 0;
}

.sc-help-cert-feature {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
}

.sc-help-cert-feature__icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #EFF6FF;
    color: #2563EB;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.sc-help-cert-feature__title {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 8px 0;
}

.sc-help-cert-feature p {
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
}

/* Verification URL Box */
.sc-help-verify-box {
    background: #0F172A;
    border: 1px solid #1E293B;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.sc-help-verify-box__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sc-help-verify-box__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    display: inline-block;
}

.sc-help-verify-box__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94A3B8;
}

.sc-help-verify-box__url {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #E2E8F0;
    word-break: break-all;
    overflow-wrap: anywhere;
    white-space: normal;
}

.sc-help-verify-box__base {
    color: #E2E8F0;
}

.sc-help-verify-box__param {
    color: #60A5FA;
    font-weight: 700;
}

/* ==========================================================================
   Troubleshooting Grid
   ========================================================================== */
.sc-help-trouble-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sc-help-trouble-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sc-help-trouble-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #FEF3C7;
    color: #D97706;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.sc-help-trouble-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 14px 0;
}

.sc-help-trouble-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sc-help-trouble-list li {
    font-size: 13.5px;
    line-height: 1.6;
    color: #475569;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 12px;
}

.sc-help-trouble-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sc-help-trouble-list strong {
    color: #0F172A;
    display: block;
    margin-bottom: 2px;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.sc-help-faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 920px;
}

.sc-help-faq-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.sc-help-faq-item[open] {
    border-color: #93C5FD;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
}

.sc-help-faq-summary {
    padding: 18px 24px;
    font-size: 15.5px;
    font-weight: 600;
    color: #0F172A;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    user-select: none;
}

.sc-help-faq-summary::-webkit-details-marker {
    display: none;
}

.sc-help-faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #64748B;
    transition: transform 200ms ease;
}

.sc-help-faq-item[open] .sc-help-faq-icon {
    transform: rotate(180deg);
    color: #2563EB;
}

.sc-help-faq-content {
    padding: 0 24px 20px;
    font-size: 14.5px;
    line-height: 1.7;
    color: #475569;
    border-top: 1px solid #F1F5F9;
    margin-top: 2px;
    padding-top: 16px;
}

.sc-help-faq-content p {
    margin: 0 0 10px 0;
}

.sc-help-faq-content p:last-child {
    margin-bottom: 0;
}

.sc-help-faq-content a {
    color: #2563EB;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ==========================================================================
   Support Contact Card
   ========================================================================== */
.sc-help-support-card {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border-radius: 16px;
    padding: 44px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 40px;
}

.sc-help-support-content {
    max-width: 640px;
}

.sc-help-support-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: #FFFFFF;
}

.sc-help-support-desc {
    font-size: 15px;
    line-height: 1.65;
    color: #94A3B8;
    margin: 0 0 16px 0;
}

.sc-help-support-meta {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: #60A5FA;
}

.sc-help-support-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    background: #2563EB;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 200ms ease;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.sc-help-support-cta:hover {
    background: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    color: #FFFFFF;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .sc-help-flow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sc-help-spec-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sc-help-cert-features {
        grid-template-columns: 1fr;
    }

    .sc-help-trouble-grid {
        grid-template-columns: 1fr;
    }

    .sc-help-support-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 36px;
    }
}

@media (max-width: 768px) {
    .sc-help-hero {
        padding: 48px 0 40px;
    }
    
    .sc-help-hero__title {
        font-size: 32px;
    }
    
    .sc-help-hero__subtitle {
        font-size: 16px;
    }
    
    .sc-help-content-card {
        padding: 28px 20px;
    }

    .sc-help-grid-2col {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sc-help-section {
        padding: 44px 0 0;
    }
    
    .sc-help-section__title {
        font-size: 24px;
    }
}

@media (max-width: 580px) {
    .sc-help-hero {
        padding: 36px 0 32px;
    }

    .sc-help-hero__title {
        font-size: 26px;
        word-break: break-word;
    }

    .sc-help-hero__subtitle {
        font-size: 14.5px;
        line-height: 1.55;
    }

    .sc-help-hero__badge {
        font-size: 12px;
        padding: 5px 12px;
    }

    .sc-help-flow-grid {
        grid-template-columns: 1fr;
    }
    
    .sc-help-spec-grid {
        grid-template-columns: 1fr;
    }

    .sc-help-content-card {
        padding: 20px 14px;
        border-radius: 12px;
    }

    .sc-help-content-card__title {
        font-size: 21px;
    }

    .sc-help-content-card__subtitle {
        font-size: 16px;
        margin: 22px 0 10px 0;
    }

    .sc-help-code-sample {
        padding: 10px 12px;
        font-size: 12px;
    }

    .sc-help-section__title {
        font-size: 22px;
    }

    .sc-help-faq-summary {
        padding: 16px 18px;
        font-size: 14.5px;
    }

    .sc-help-faq-content {
        padding: 0 18px 18px;
        font-size: 14px;
    }

    .sc-help-support-card {
        padding: 24px 16px;
        margin-top: 32px;
    }

    .sc-help-support-title {
        font-size: 21px;
    }

    .sc-help-support-desc {
        font-size: 14px;
    }
    
    .sc-help-support-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .sc-help-support-cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .sc-help-container {
        padding: 0 12px;
    }

    .sc-help-content-card {
        padding: 18px 12px;
    }

    .sc-help-code-sample {
        padding: 8px 10px;
        font-size: 11.5px;
    }
}

@media (max-width: 360px) {
    .sc-help-hero__title {
        font-size: 22px;
    }

    .sc-help-container {
        padding: 0 10px;
    }

    .sc-help-content-card {
        padding: 16px 10px;
    }

    .sc-help-code-sample {
        padding: 8px;
        font-size: 11px;
    }

    .sc-help-subnav__inner {
        padding: 10px 12px;
        gap: 12px;
    }
}
