:root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --border: 214.3 31.8% 91.4%;
    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: hsl(var(--foreground));
    background: hsl(var(--background));
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}


.main-header {
    border-bottom: 1px solid hsl(var(--border));
    padding: 2rem 3rem;
    background: hsl(var(--background));
}

.main-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: hsl(var(--foreground));
    letter-spacing: -0.025em;
}

.main-header p {
    color: hsl(var(--muted-foreground));
    font-size: 0.95rem;
    font-weight: 400;
}


.markdown-body {
    padding: 3rem;
    max-width: 100%;
}

.guide-section {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    animation: fadeIn 0.3s ease-out;
    margin-bottom: 4rem;
    border-bottom: 1px solid hsl(var(--border));
    padding-bottom: 4rem;
}

.guide-section:last-child {
    border-bottom: none;
}


h1 {
    font-size: 2.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    margin-top: 0;
    border: none;
    padding: 0;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
    letter-spacing: -0.025em;
    scroll-margin-top: 5rem;
}

h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: hsl(var(--foreground));
    font-weight: 600;
    letter-spacing: -0.025em;
}

p {
    margin-bottom: 1.25rem;
    color: hsl(var(--muted-foreground));
    max-width: none;
}

ul,
ol {
    margin-bottom: 1.25rem;
    padding-left: 1.75rem;
    color: hsl(var(--muted-foreground));
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}


code {
    background: hsl(var(--muted));
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
    font-size: 0.875em;
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
}

pre {
    margin: 1.5rem 0 !important;
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--muted)) !important;
}

pre code {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.875rem;
}


.code-block-wrapper {
    position: relative;
    margin: 1.5rem 0;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    overflow: hidden;
}

.code-block-wrapper pre {
    margin: 0 !important;
    border: none;
    border-radius: 0;
}

.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: hsl(var(--muted));
    border-bottom: 1px solid hsl(var(--border));
    cursor: pointer;
    user-select: none;
}

.code-block-header:hover {
    background: hsl(210 40% 94%);
}

.code-block-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

.toggle-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.code-block-wrapper.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.code-block-content {
    max-height: 8000px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.code-block-wrapper.collapsed .code-block-content {
    max-height: 0;
}

.copy-button {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-button:hover {
    background: hsl(var(--muted));
    border-color: hsl(var(--border));
    color: hsl(var(--foreground));
}

.copy-button.copied {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgb(34, 197, 94);
    color: rgb(34, 197, 94);
}

.copy-button svg {
    width: 14px;
    height: 14px;
}


footer {
    margin-top: 0;
    padding: 2rem 3rem;
    text-align: left;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    border-top: 1px solid hsl(var(--border));
}

.loader,
.error {
    padding: 3rem;
    font-size: 0.95rem;
    color: hsl(var(--muted-foreground));
}

.error {
    color: #ef4444;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 1.5rem 1.5rem;
    }

    .markdown-body {
        padding: 2rem 1.5rem;
    }

    footer {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.25rem;
    }
}