@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e6edf3;
    background: #0d1117;
    -webkit-font-smoothing: antialiased;
}

.wiki-header {
    background: #161b22;
    color: #e6edf3;
    padding: 1rem 0;
    border-bottom: 1px solid #30363d;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wiki-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.wiki-header h1 a {
    color: #fff;
    text-decoration: none;
}

.header-nav {
    display: flex;
    gap: 1.5rem;
}

.header-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
}

.header-nav a:hover {
    color: #58a6ff;
}

.wiki-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 60px);
}

.wiki-sidebar {
    width: 280px;
    background: #0d1117;
    border-right: 1px solid #30363d;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 2rem 0;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section h3 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #7d8590;
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

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

.nav-section ul li a {
    display: block;
    padding: 0.4rem 1.5rem;
    color: #e6edf3;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.15s;
}

.nav-section ul li a:hover {
    background: #161b22;
}

.nav-section ul li a.active {
    background: #1c2128;
    color: #58a6ff;
    border-left: 2px solid #58a6ff;
    padding-left: calc(1.5rem - 2px);
    font-weight: 500;
}

.wiki-content {
    flex: 1;
    padding: 3rem;
    background: #0d1117;
    margin: 1rem;
    border-radius: 6px;
    border: 1px solid #30363d;
}

.wiki-content h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #30363d;
}

.wiki-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.wiki-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.wiki-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.wiki-content p {
    margin-bottom: 1rem;
}

.wiki-content ul,
.wiki-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.wiki-content li {
    margin-bottom: 0.25rem;
}

.wiki-content ul li::marker {
    color: #7d8590;
}

.wiki-content a {
    color: #58a6ff;
    text-decoration: none;
}

.wiki-content a:hover {
    text-decoration: underline;
}

.wiki-content code {
    background: #161b22;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    color: #79c0ff;
    border: 1px solid #30363d;
}

/* Premium Code Window */
.code-window {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    margin: 1.5rem 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.code-header {
    background: #161b22;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid #30363d;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.code-title {
    font-size: 0.8rem;
    color: #8b949e;
    font-family: 'JetBrains Mono', monospace;
    margin-left: 12px;
}

.wiki-content pre {
    background: transparent;
    padding: 1rem;
    margin: 0;
    border-radius: 0;
    border: none;
    font-family: 'JetBrains Mono', monospace;
}

.wiki-content pre code {
    background: none;
    padding: 0;
    border: none;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e6edf3;
}

/* Prism.js Overrides for GitHub Dark style */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #8b949e;
}

.token.punctuation {
    color: #8b949e;
}

.token.namespace {
    opacity: .7;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #79c0ff;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #a5d6ff;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #79c0ff;
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #ff7b72;
}

.token.function,
.token.class-name {
    color: #d2a8ff;
}

.token.regex,
.token.important,
.token.variable {
    color: #ffa657;
}

.wiki-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.wiki-content table thead {
    background: #161b22;
}

.wiki-content table th,
.wiki-content table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #30363d;
}

.wiki-content table th {
    font-weight: 600;
}

.wiki-content table tr:hover {
    background: #161b22;
}

.info-box {
    background: #1c2128;
    border: 1px solid #388bfd;
    border-left: 4px solid #58a6ff;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.info-box p {
    margin: 0.25rem 0;
}

.warning-box {
    background: #1c1810;
    border: 1px solid #9e6a03;
    border-left: 4px solid #d29922;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.success-box {
    background: #0f1c13;
    border: 1px solid #2ea043;
    border-left: 4px solid #3fb950;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.error-box {
    background: #1c1214;
    border: 1px solid #da3633;
    border-left: 4px solid #f85149;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

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

.link-card {
    background: #161b22;
    border: 1px solid #30363d;
    padding: 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    color: #e6edf3;
    transition: all 0.2s;
}

.link-card:hover {
    background: #1c2128;
    border-color: #388bfd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.link-card h3 {
    margin: 0 0 0.5rem 0;
    color: #58a6ff;
}

.link-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #7d8590;
}

.footer-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #30363d;
}

.footer-nav a {
    color: #58a6ff;
    text-decoration: none;
    font-weight: 500;
}

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

.footer-nav .next-page {
    margin-left: auto;
}

.footer-nav .prev-page {
    margin-right: auto;
}

.step-number {
    display: inline-block;
    background: #58a6ff;
    color: #0d1117;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    font-weight: 600;
    margin-right: 0.5rem;
}

.command-table {
    margin: 1.5rem 0;
}

@media (max-width: 968px) {
    .wiki-sidebar {
        display: none;
    }

    .wiki-content {
        margin: 0;
        border-radius: 0;
        border: none;
        border-top: 1px solid #30363d;
    }

    .header-content {
        padding: 0 1rem;
    }

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