/**
 * CP Language Website Styles
 * Modern dark theme with gradient accents
 */

/* ====================
   CSS Variables
   ==================== */
:root {
    /* Brand Colors */
    --cp-primary: #6366f1;
    --cp-primary-dark: #4f46e5;
    --cp-primary-light: #818cf8;
    --cp-secondary: #06b6d4;
    --cp-accent: #f59e0b;
    
    /* Background Colors */
    --bg-dark: #0f172a;
    --bg-dark-light: #1e293b;
    --bg-dark-lighter: #334155;
    --bg-card: rgba(30, 41, 59, 0.8);
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Code Colors */
    --code-bg: #1e1e1e;
    --code-keyword: #c586c0;
    --code-string: #ce9178;
    --code-comment: #6a9955;
    --code-function: #dcdcaa;
    --code-number: #b5cea8;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
}

/* ====================
   Reset & Base
   ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--cp-primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--cp-primary);
}

/* ====================
   Typography
   ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

/* ====================
   Layout
   ==================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ====================
   Header
   ==================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Logo */
.site-branding .logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.site-logo {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
}

.site-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-md);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-bar {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: var(--bg-dark-light);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-md) 0;
}

.mobile-nav-menu {
    list-style: none;
}

.mobile-nav-item {
    margin-bottom: var(--space-sm);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    padding: 0.75rem 0;
}

.mobile-nav-link:hover {
    color: var(--text-primary);
}

/* ====================
   Buttons
   ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* ====================
   Hero Section
   ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(72px + var(--space-xl)) 0 var(--space-xl);
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--cp-primary-light);
    margin-bottom: var(--space-md);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

/* Hero Code Window */
.hero-code {
    max-width: 800px;
    margin: 0 auto;
}

/* ====================
   Code Window
   ==================== */
.code-window {
    background: var(--code-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.code-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27c93f; }

.code-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: auto;
    margin-right: auto;
}

.code-body {
    padding: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-body pre {
    margin: 0;
    background: transparent;
}

.code-body code {
    font-family: inherit;
    color: var(--text-primary);
}

/* Code Syntax Highlighting */
.keyword { color: var(--code-keyword); }
.string { color: var(--code-string); }
.comment { color: var(--code-comment); }
.function { color: var(--code-function); }
.number { color: var(--code-number); }

/* ====================
   Features Section
   ==================== */
.features {
    padding: var(--space-2xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-label {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cp-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-sm);
}

.section-description {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
}

.feature-card {
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* ====================
   Code Showcase
   ==================== */
.code-showcase {
    padding: var(--space-2xl) 0;
    background: var(--bg-dark-light);
}

/* ====================
   CTA Section
   ==================== */
.cta-section {
    padding: var(--space-2xl) 0;
}

.cta-box {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: white;
    margin-bottom: var(--space-sm);
    position: relative;
}

.cta-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
    position: relative;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    position: relative;
}

.cta-actions .btn-secondary {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.cta-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cta-actions .btn-ghost {
    color: rgba(255, 255, 255, 0.8);
}

.cta-actions .btn-ghost:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* ====================
   Page Header
   ==================== */
.page-header {
    padding: calc(72px + var(--space-xl)) 0 var(--space-xl);
    text-align: center;
    background: var(--bg-dark-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-sm);
}

.page-description {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* ====================
   Blog Styles
   ==================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-md);
    padding: var(--space-xl) 0;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-normal);
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-lg);
}

.blog-meta {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.blog-category {
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--cp-primary-light);
}

.blog-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.blog-title a {
    color: var(--text-primary);
}

.blog-title a:hover {
    color: var(--cp-primary-light);
}

.blog-excerpt {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.blog-author {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ====================
   Docs Styles
   ==================== */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    padding: var(--space-xl) 0;
}

.docs-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-normal);
}

.docs-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-lg);
}

.docs-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    font-size: 1.25rem;
    color: white;
}

.docs-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.docs-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.docs-link {
    color: var(--cp-primary-light);
    font-weight: 600;
}

.docs-link:hover {
    color: var(--cp-primary);
}

/* Docs Layout */
.docs-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
}

.docs-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.docs-nav h3 {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.docs-nav ul {
    list-style: none;
}

.docs-nav li {
    margin-bottom: 0.5rem;
}

.docs-nav a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.docs-nav a:hover {
    color: var(--cp-primary-light);
}

.docs-content {
    min-height: 500px;
}

/* ====================
   Tutorials Styles
   ==================== */
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
    padding: var(--space-xl) 0;
}

.tutorial-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-normal);
}

.tutorial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-lg);
}

.tutorial-level {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--cp-primary-light);
    margin-bottom: var(--space-sm);
}

.tutorial-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.tutorial-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.tutorial-link {
    color: var(--cp-primary-light);
    font-weight: 600;
}

.tutorial-link:hover {
    color: var(--cp-primary);
}

/* Tutorial Layout */
.tutorial-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
}

.tutorial-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.tutorial-nav h3 {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.tutorial-nav ul {
    list-style: none;
}

.tutorial-nav li {
    margin-bottom: 0.5rem;
}

.tutorial-nav a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.tutorial-nav a:hover {
    color: var(--cp-primary-light);
}

.tutorial-content {
    min-height: 500px;
}

.tutorial-navigation {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ====================
   Download Styles
   ==================== */
.download-section {
    padding: var(--space-xl) 0;
}

.download-version {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.version-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.version-number {
    font-size: 1.5rem;
    margin: 0;
}

.version-date {
    color: var(--text-muted);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.platform-card {
    text-align: center;
    padding: var(--space-md);
    background: var(--bg-dark);
    border-radius: var(--radius-md);
}

.platform-icon {
    font-size: 2.5rem;
    color: var(--cp-primary-light);
    margin-bottom: var(--space-sm);
}

.platform-name {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.platform-size {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.download-info {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.download-info h3 {
    margin-bottom: var(--space-sm);
}

.download-info ul,
.download-info ol {
    margin-left: var(--space-md);
    margin-bottom: var(--space-md);
}

.download-info li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.download-info code {
    background: var(--bg-dark);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--cp-primary-light);
}

/* ====================
   Error Pages
   ==================== */
.error-404,
.error-500 {
    padding: var(--space-2xl) 0;
    text-align: center;
}

.error-content {
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    font-size: 4rem;
    color: var(--cp-primary-light);
    margin-bottom: var(--space-md);
}

.error-code {
    font-size: 6rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.error-title {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.error-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.error-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.error-details {
    background: var(--bg-dark-light);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.error-details p {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin: 0;
}

/* ====================
   Blog Post
   ==================== */
.blog-post {
    padding: var(--space-xl) 0;
}

.post-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.post-category {
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--cp-primary-light);
}

.post-date {
    color: var(--text-muted);
}

.post-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
}

.post-author {
    color: var(--text-muted);
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: var(--space-md);
}

.post-footer {
    max-width: 800px;
    margin: var(--space-xl) auto 0;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ====================
   Footer
   ==================== */
.site-footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand .site-logo {
    margin-bottom: var(--space-sm);
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 300px;
    margin-bottom: var(--space-md);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark-lighter);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--cp-primary);
    color: white;
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--cp-primary-light);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-legal a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-legal .separator {
    color: var(--text-muted);
}

/* ====================
   Responsive
   ==================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .docs-layout,
    .tutorial-layout {
        grid-template-columns: 1fr;
    }
    
    .docs-sidebar,
    .tutorial-sidebar {
        position: static;
        margin-bottom: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu.is-open {
        display: block;
    }
    
    .header-inner {
        height: 64px;
    }
    
    .hero {
        padding: calc(64px + var(--space-lg)) 0 var(--space-lg);
    }
    
    .features-grid,
    .blog-grid,
    .docs-grid,
    .tutorials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .cta-actions,
    .hero-actions,
    .error-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn,
    .hero-actions .btn,
    .error-actions .btn {
        width: 100%;
    }
    
    .platforms-grid {
        grid-template-columns: 1fr;
    }
    
    .version-header {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

/* ====================
   Animations
   ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* ====================
   Utility Classes
   ==================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
