/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --primary-color: #4F46E5;
    --primary-hover: #4338CA;
    --primary-light: #EEF2FF;

    /* Neutral Colors */
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;

    /* Background Colors */
    --bg-white: #FFFFFF;
    --bg-gray-50: #F9FAFB;
    --bg-gray-100: #F3F4F6;
    --bg-gray-200: #E5E7EB;

    /* Border Colors */
    --border-color: #E5E7EB;
    --border-hover: #D1D5DB;

    /* Success/Info Colors */
    --success-bg: #D1FAE5;
    --success-border: #10B981;
    --info-bg: #DBEAFE;
    --info-border: #3B82F6;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;

    /* Spacing */
    --container-max-width: 1280px;
    --sidebar-width: 280px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Container ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Header ===== */
.header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.25rem;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.logo-text {
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.nav-link.primary:hover {
    background-color: var(--primary-hover);
    color: white;
}

/* ===== Main Content ===== */
.main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0 4rem;
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-white) 100%);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Content Wrapper (Sidebar + Content) ===== */
.content-wrapper {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 3rem;
    align-items: start;
}

/* ===== Sidebar Navigation ===== */
.sidebar {
    position: sticky;
    top: 6rem;
    height: calc(100vh - 8rem);
    overflow-y: auto;
    padding-right: 1rem;
}

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

.sidebar::-webkit-scrollbar-track {
    background: var(--bg-gray-100);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

.docs-nav {
    background-color: var(--bg-gray-50);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.nav-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.nav-heading:first-child {
    margin-top: 0;
}

.nav-list {
    list-style: none;
}

.nav-item {
    display: block;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
}

.nav-item:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.nav-item.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== Documentation Content ===== */
.docs-content {
    max-width: 800px;
}

.doc-section {
    margin-bottom: 3rem;
    scroll-margin-top: 6rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.subsection-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.section-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ===== Lists ===== */
.bullet-list,
.steps-list {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.bullet-list li,
.steps-list li {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.steps-list {
    counter-reset: item;
}

.steps-list li {
    padding-left: 0.5rem;
}

.bullet-list li strong,
.steps-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== Links ===== */
.text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    border-bottom: 1px solid transparent;
}

.text-link:hover {
    color: var(--primary-hover);
    border-bottom-color: var(--primary-hover);
}

/* ===== Info Boxes ===== */
.info-box {
    background-color: var(--info-bg);
    border-left: 4px solid var(--info-border);
    padding: 1rem 1.25rem;
    border-radius: 0.375rem;
    margin: 1.5rem 0;
}

.info-box strong {
    color: var(--info-border);
    font-weight: 600;
}

.info-box.success {
    background-color: var(--success-bg);
    border-left-color: var(--success-border);
}

.info-box.success strong {
    color: var(--success-border);
}

/* ===== FAQ Items ===== */
.faq-item {
    margin: 2rem 0;
}

.faq-item h3,
.faq-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.faq-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
}

/* ===== Contact Box ===== */
.contact-box {
    background-color: var(--bg-gray-50);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.contact-box .bullet-list {
    margin: 0;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--bg-gray-50);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--text-primary);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 240px 1fr;
        gap: 2rem;
    }

    :root {
        --sidebar-width: 240px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar {
        position: static;
        height: auto;
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .docs-nav {
        padding: 1.25rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .subsection-title {
        font-size: 1.25rem;
    }

    .nav {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.875rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .nav {
        width: 100%;
        justify-content: flex-start;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    .header,
    .sidebar,
    .footer {
        display: none;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .hero {
        background: none;
        border: none;
    }

    .doc-section {
        page-break-inside: avoid;
    }
}
