/* Nemo Wiki Styles */

:root {
    --primary-color: #0a1628;
    --secondary-color: #1a365d;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-dark: #1e293b;
    --bg-light: #ffffff;
    --border-color: #334155;
    --sidebar-width: 280px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f1f5f9;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 20px;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0 30px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.logo-icon {
    font-size: 32px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

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

.nav-links li {
    margin-bottom: 4px;
}

.nav-links a {
    display: block;
    padding: 10px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.nav-links a:hover {
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
}

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

/* Mobile menu toggle button */
.menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 200;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
}

.sidebar-overlay.active {
    display: block;
}

/* Close button inside sidebar for mobile */
.sidebar-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Main Content */
.content {
    margin-left: var(--sidebar-width);
    padding: 40px 60px;
    max-width: 1000px;
}

.page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
}

.page-header h1 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.page-header .subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Sections */
section {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

section h2 {
    color: var(--secondary-color);
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

section h3 {
    color: var(--text-dark);
    font-size: 20px;
    margin: 25px 0 15px;
}

section h4 {
    color: var(--text-dark);
    font-size: 16px;
    margin: 20px 0 10px;
}

p {
    margin-bottom: 15px;
    color: #475569;
}

/* Lists */
ul, ol {
    margin: 15px 0;
    padding-left: 25px;
}

li {
    margin-bottom: 8px;
    color: #475569;
}

li strong {
    color: var(--text-dark);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background-color: var(--secondary-color);
    color: var(--text-primary);
    font-weight: 600;
}

tr:hover {
    background-color: #f8fafc;
}

/* Code */
code {
    background-color: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    color: var(--secondary-color);
}

pre {
    background-color: var(--primary-color);
    color: var(--text-primary);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 13px;
    line-height: 1.5;
}

/* Callouts */
.callout {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid;
}

.callout.info {
    background-color: #eff6ff;
    border-color: var(--accent-color);
}

.callout.success {
    background-color: #ecfdf5;
    border-color: var(--success-color);
}

.callout.warning {
    background-color: #fffbeb;
    border-color: var(--warning-color);
}

.callout.tip {
    background-color: #f0fdf4;
    border-color: #22c55e;
}

.callout strong {
    display: block;
    margin-bottom: 5px;
}

/* Color boxes */
.color-box {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 5px;
}

.color-box.green { background-color: #22c55e; }
.color-box.yellow { background-color: #eab308; }
.color-box.red { background-color: #ef4444; }

/* Warning Example */
.warning-example {
    background: linear-gradient(90deg, #dc2626 0%, #f97316 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
    margin: 15px 0;
}

/* FAQ Items */
.faq-item {
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.faq-item h4 {
    margin-top: 0;
    color: var(--secondary-color);
}

.faq-item ul {
    margin-bottom: 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    font-size: 14px;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive — Tablet */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }

    .content {
        margin-left: 240px;
        padding: 30px;
    }
}

/* Responsive — Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .sidebar-close {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
        height: 100vh;
        position: fixed;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .content {
        margin-left: 0;
        padding: 70px 20px 20px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    section {
        padding: 20px;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 8px 10px;
    }
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Print Styles */
@media print {
    .sidebar, .menu-toggle, .sidebar-overlay {
        display: none !important;
    }

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

    section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
