/* =====================================================
   HELP PAGE STYLES
   Uses theme.css variables only - no hardcoded colors
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* HELP CONTAINER */
.help-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* BACK BUTTON */
.back-btn {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 1rem 1.5rem;
    background: var(--btn-bg);
    border: 2px solid var(--btn-border);
    color: var(--btn-text);
    text-decoration: none;
    border-radius: 2px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-align: center;
}

.back-btn-top {
    margin-bottom: 2rem;
}

.back-btn-bottom {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.back-btn:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-text);
    border-color: var(--btn-hover-border);
}

/* HELP SECTIONS */
.help-section {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-primary);
    border-radius: 2px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.help-section h1 {
    color: var(--accent-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.help-section h2 {
    color: var(--accent-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.help-section h3 {
    color: var(--accent-secondary);
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.help-section p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.help-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.help-section code {
    background: var(--bg-card);
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    font-family: 'Courier New', monospace;
    color: var(--accent-secondary);
    font-size: 0.9rem;
}

/* NOTE BOX */
.note {
    background: var(--alert-bg);
    border-left: 3px solid var(--accent-primary);
    padding: 0.75rem;
    margin: 1rem 0;
    border-radius: 2px;
    color: var(--accent-secondary);
}

/* HELP SUBTITLE */
.help-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* TABLE OF CONTENTS */
.toc {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toc-link {
    display: block;
    padding: 0.6rem 1rem;
    background: var(--bg-card);
    border-left: 2px solid var(--border-color);
    border-radius: 2px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all 0.2s ease;
}

.toc-link:hover {
    border-left-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--bg-secondary);
    padding-left: 1.25rem;
}

/* STEP CARDS */
.step-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: var(--bg-card);
    border-radius: 2px;
    border-left: 3px solid var(--accent-primary);
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 2px;
}

.step-content h3 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-content p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.step-content a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.step-content a:hover {
    color: var(--accent-secondary);
}

/* GITHUB CARD */
.github-card {
    margin: 1.5rem 0;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 2px;
    transition: border-color 0.2s ease;
}

.github-card:hover {
    border-color: var(--accent-primary);
}

.github-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
}

.github-link svg {
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.github-card:hover .github-link svg {
    color: var(--accent-primary);
}

.github-link div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.github-link strong {
    color: var(--accent-primary);
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.github-link span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* HELP SECTION LINKS */
.help-section a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.help-section a:hover {
    color: var(--accent-secondary);
}

/* METRIC BOX */
.metric-box {
    background: var(--bg-card);
    padding: 1rem;
    margin: 0.75rem 0;
    border-left: 2px solid var(--border-color);
    border-radius: 2px;
}

.metric-box strong {
    display: block;
    color: var(--accent-primary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-box p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.7rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* RESPONSIVE */
/* =====================================================
   RESPONSIVE DESIGN (Mobile-First)
   ===================================================== */

/* Base: Mobile (320px+) */
.help-container {
    padding: 1rem;
}

.help-section {
    padding: 1.5rem;
}

.help-section h1 {
    font-size: 1.5rem;
}

.help-section h2 {
    font-size: 1.2rem;
}

.help-section h3 {
    font-size: 1rem;
}

.step-card {
    flex-direction: column;
    gap: 0.75rem;
}

.step-number {
    width: 32px;
    height: 32px;
    font-size: 1rem;
}

/* Modern phones (390px+) */
@media (min-width: 390px) {
    .help-container {
        padding: 1.25rem;
    }
    
    .help-section {
        padding: 1.75rem;
    }
}

/* Tablets (768px+) */
@media (min-width: 768px) {
    .help-container {
        padding: 2rem;
    }
    
    .help-section {
        padding: 2rem;
    }
    
    .help-section h1 {
        font-size: 2rem;
    }
    
    .help-section h2 {
        font-size: 1.5rem;
    }
    
    .help-section h3 {
        font-size: 1.2rem;
    }

    .step-card {
        flex-direction: row;
        gap: 1.25rem;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}

/* Laptops (1024px+) */
@media (min-width: 1024px) {
    .help-section {
        padding: 2.5rem;
    }
}

/* Desktop (1280px+) */
@media (min-width: 1280px) {
    .help-container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .help-section h1 {
        font-size: 2.25rem;
    }
}

/* Large desktop (1920px+) */
@media (min-width: 1920px) {
    .help-container {
        max-width: 1400px;
    }
}

/* 4K displays (2560px+) */
@media (min-width: 2560px) {
    .help-container {
        max-width: 1600px;
    }
    
    body {
        font-size: 17px;
    }
}
