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

:root {
    --primary-color: #5865f2;
    --primary-hover: #4752c4;
    --secondary-color: #3ba55d;
    --background: #ffffff;
    --sidebar-bg: #f2f3f5;
    --text-primary: #2e3338;
    --text-secondary: #5c5e66;
    --border-color: #e3e5e8;
    --card-bg: #ffffff;
    --code-bg: #f6f8fa;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    padding: 2rem 1.5rem;
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.logo {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.logo h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.logo .subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    flex-grow: 1;
}

.nav-links li {
    margin-bottom: 0.5rem;
}

.nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-links a:hover {
    background: rgba(88, 101, 242, 0.1);
    color: var(--primary-color);
}

.nav-links a.active {
    background: var(--primary-color);
    color: white;
}

.external-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-primary,
.btn-secondary {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Main Content */
.content {
    margin-left: 280px;
    padding: 3rem;
    flex: 1;
    max-width: 1200px;
}

.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

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

.intro {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Info Sections */
.info-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin: 2rem 0;
}

.info-section h2:first-child {
    margin-top: 0;
}

.info-section ul,
.info-section ol {
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.info-section li {
    margin-bottom: 0.5rem;
}

/* Steps */
.steps {
    margin: 2rem 0;
}

.step {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow);
}

.step h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.step ul,
.step ol {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.step li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Quick Start */
.quick-start {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.quick-start h2 {
    color: white;
    margin-top: 0;
}

.quick-start ol {
    margin-left: 1.5rem;
}

.quick-start li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
}

/* Warning Box */
.warning-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.warning-box h3 {
    margin-top: 0;
    color: #856404;
}

.warning-box ul {
    margin-left: 1.5rem;
}

.warning-box li {
    color: #856404;
    margin-bottom: 0.5rem;
}

/* Code Blocks */
code {
    background: var(--code-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: "Monaco", "Courier New", monospace;
    font-size: 0.9em;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* FAQ */
.faq-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.faq-item h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.faq-item ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.faq-item li {
    margin-bottom: 0.25rem;
}

/* Changelog */
.changelog-entry {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.changelog-entry h2 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.changelog-entry .date {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.changelog-entry ul {
    margin-left: 1.5rem;
}

.changelog-entry li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .content {
        margin-left: 0;
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .logo h2 {
        font-size: 1.5rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--sidebar-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
