:root {
    --bg-color: #080a0f;
    --surface-bg: #121824;
    --surface-border: #1e293b;
    --card-bg: #1a2234;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent-cyan: #38bdf8;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;
    --code-bg: #0d1117;
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
}

/* Global Reset & High Legibility Baseline */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 12px !important;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.7;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-pink);
    text-decoration: underline;
}

/* Site Layout Structure */
.cs-site-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
    flex: 1;
}

/* Header Navigation */
.cs-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2rem;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--surface-border);
}

.cs-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cs-logo i {
    color: var(--accent-cyan);
}

.cs-nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.cs-nav-links a {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.cs-nav-links a:hover {
    color: var(--accent-cyan);
    text-decoration: none;
}

/* Cards & Posts Grid */
.cs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.cs-card {
    background: var(--surface-bg);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.cs-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
}

.cs-card-title {
    font-size: 1.6rem !important;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.cs-card-title a {
    color: var(--text-primary);
}

.cs-card-title a:hover {
    color: var(--accent-cyan);
    text-decoration: none;
}

/* Badges */
.cs-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.9rem !important;
    font-weight: 800;
    font-family: var(--font-code);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.cs-badge-cyan { background: rgba(56, 189, 248, 0.18); color: var(--accent-cyan); }
.cs-badge-pink { background: rgba(236, 72, 153, 0.18); color: var(--accent-pink); }
.cs-badge-green { background: rgba(16, 185, 129, 0.18); color: var(--accent-green); }

/* Typography & Content Styles */
.gh-content h1, .gh-content h2, .gh-content h3 {
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
    font-weight: 800;
}

.gh-content h1 { font-size: 2.8rem; }
.gh-content h2 { font-size: 2.2rem; border-bottom: 1px solid var(--surface-border); padding-bottom: 0.5rem; }
.gh-content h3 { font-size: 1.6rem; color: var(--accent-cyan); }

.gh-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.25rem;
}

/* Global Code Styling */
code {
    background: var(--code-bg);
    border: 1px solid var(--surface-border);
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    font-family: var(--font-code);
    font-size: 1.1rem !important;
    color: var(--accent-cyan);
}

pre {
    background: var(--code-bg) !important;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.8rem 0;
}

pre code {
    border: none;
    padding: 0;
    color: #e2e8f0;
    font-size: 1.15rem !important;
}

/* Global Tables */
.gh-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--surface-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--surface-border);
}

.gh-content th {
    background: var(--card-bg);
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-align: left;
    border-bottom: 2px solid var(--surface-border);
}

.gh-content td {
    padding: 1.2rem;
    border-bottom: 1px solid var(--surface-border);
    font-size: 1.15rem;
}

/* Footer */
.cs-footer {
    margin-top: 5rem;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    border-top: 2px solid var(--surface-border);
}