/* ============================================
   Help Center Styles
   Consistent layout for all help pages
   ============================================ */

/* ----- Base Reset ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #f5f7fa;
}

/* ----- Typography ----- */
h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.75rem;
}

h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: #2c3e50;
}

h3 {
    font-size: 1.25rem;
    margin: 1rem 0 0.75rem;
    color: #374151;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #3b82f6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul, ol {
    margin: 0.75rem 0 1rem 1.75rem;
}

li {
    margin-bottom: 0.25rem;
}

/* ----- Top Navigation ----- */
.top-nav {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-home {
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.nav-links a {
    color: #4b5563;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: #3b82f6;
}

/* ----- Page Layout (Sidebar + Content) ----- */
.page-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
}

/* Sidebar */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 80px;
    height: fit-content;
}

.sidebar h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar li {
    margin-bottom: 0.5rem;
}

.sidebar a {
    color: #4b5563;
    font-size: 0.9rem;
    display: block;
    padding: 0.4rem 0;
}

.sidebar a:hover {
    color: #3b82f6;
}

/* Main Content */
.content {
    flex: 1;
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    min-width: 0;
}

/* ----- Section Styling ----- */
section {
    scroll-margin-top: 100px;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

section:last-child {
    border-bottom: none;
}

/* Images (screenshots) */
.screenshot {
    max-width: 100%;
    height: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.screenshot-caption {
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

/* Notes, Tips, Warnings */
.note {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
}

.tip {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
}

.warning {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
}

/* Code/Keyboard shortcuts */
code {
    background: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
}

kbd {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-family: monospace;
    font-size: 0.8rem;
    box-shadow: 0 1px 0 #d1d5db;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
}

th {
    background: #f9fafb;
    font-weight: 600;
}

/* Cards for help_menu.html */
.help-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.help-header h1 {
    color: white;
    border-bottom: none;
    margin-bottom: 1rem;
}

.help-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.search-bar {
    max-width: 500px;
    margin: 1.5rem auto 0;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

.help-grid {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.help-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: #1a1a1a;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

.help-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-decoration: none;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.help-card h3 {
    margin: 0 0 0.5rem;
    color: #1a1a1a;
}

.help-card p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-link {
    color: #3b82f6;
    font-weight: 500;
    font-size: 0.9rem;
}

.support-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

/* Footer */
.help-footer, .page-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem 2rem;
    text-align: center;
    margin-top: 2rem;
}

.contact-btn {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-decoration: none;
}

.contact-btn:hover {
    background: #2563eb;
    text-decoration: none;
}

.still-stuck {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    text-align: center;
}

/* ----- Print Styles ----- */
@media print {
    .top-nav, .sidebar, .help-footer, .page-footer, .contact-btn {
        display: none;
    }
    
    body {
        background: white;
        padding: 0;
        margin: 0;
    }
    
    .page-container {
        display: block;
        padding: 0;
        margin: 0;
    }
    
    .content {
        padding: 0;
        border: none;
        box-shadow: none;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    .screenshot {
        max-width: 80%;
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        justify-content: center;
        gap: 1rem;
    }
    
    .page-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        margin-bottom: 1rem;
    }
    
    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .sidebar li {
        margin: 0;
    }
    
    .sidebar a {
        background: #f3f4f6;
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
        font-size: 0.8rem;
    }
    
    .content {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .help-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}