/* AiWorkflowLab - Futuristic Dark / Glassmorphism / Gradients */
:root {
    /* Colors */
    --color-primary: #a855f7;
    --color-primary-hover: #9333ea;
    --color-primary-light: rgba(168, 85, 247, 0.08);
    --color-secondary: #ec4899;
    --color-accent: #f97316;
    --color-background: #0a0a1a;
    --color-surface: rgba(255, 255, 255, 0.05);
    --color-text: #e8e2f0;
    --color-text-muted: #a89bc4;
    --color-border: rgba(168, 85, 247, 0.15);

    /* Header */
    --header-bg: rgba(10, 10, 26, 0.85);
    --header-border: 1px solid rgba(168, 85, 247, 0.1);
    --header-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    --header-height: 68px;
    --logo-font-size: 1.25rem;
    --logo-font-weight: 700;
    --logo-letter-spacing: -0.01em;

    /* Footer */
    --footer-bg: #050510;
    --footer-text: #a89bc4;
    --footer-accent: #a855f7;

    /* Typography */
    --font-family-sans: 'Inter', system-ui, sans-serif;
    --font-family-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-size-base: 1rem;
    --font-weight-heading: 700;
    --line-height-base: 1.7;
    --line-height-heading: 1.2;

    /* Layout */
    --max-width-content: 1180px;
    --border-radius: 0.75rem;
    --border-radius-lg: 1.25rem;
    --spacing-xl: 2.25rem;
    --spacing-2xl: 3.5rem;

    /* Cards */
    --card-border: 1px solid rgba(168, 85, 247, 0.12);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    --card-shadow-hover: 0 8px 40px rgba(168, 85, 247, 0.2);
    --card-transform-hover: translateY(-4px);
    --card-image-height: 200px;
    --card-padding: 1.5rem;

    /* Decorative */
    --accent-gradient: linear-gradient(135deg, #a855f7, #ec4899, #f97316);
    --header-decoration: linear-gradient(90deg, #a855f7, #ec4899, #f97316);
    --code-bg: #12121f;
    --code-text: #c4b5fd;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* Tags */
    --tag-bg: rgba(168, 85, 247, 0.08);
    --tag-border: 1px solid rgba(168, 85, 247, 0.2);
    --tag-radius: 9999px;
    --tag-font-size: 0.8125rem;

    /* Pagination */
    --pagination-radius: 9999px;
    --pagination-active-bg: linear-gradient(135deg, #a855f7, #ec4899);
    --pagination-active-text: #ffffff;

    /* Nav */
    --nav-link-font-weight: 500;
}

/* Glassmorphism header with backdrop blur */
.site-header {
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
}

/* Gradient decoration bar */
.site-header::after {
    height: 2px;
    background: linear-gradient(90deg, #a855f7, #ec4899, #f97316, #a855f7);
    background-size: 200% 100%;
    animation: gradient-flow 4s linear infinite;
}

@keyframes gradient-flow {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* Glassmorphism cards */
.article-card {
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.35s ease;
}
.article-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(168, 85, 247, 0.3);
}

/* Neon glow on card hover */
.article-card:hover {
    box-shadow: 0 8px 40px rgba(168, 85, 247, 0.2), 0 0 1px rgba(168, 85, 247, 0.5);
}

/* Gradient category text */
.article-card-category {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Logo gradient */
.site-logo {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.site-logo:hover {
    background: linear-gradient(135deg, #c084fc, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav links on dark */
.nav-link {
    color: #8b7fa8;
}
.nav-link:hover {
    color: #e8e2f0;
}

/* Tag neon hover */
.tag-badge {
    color: #a78bfa;
    transition: all 0.25s ease;
}
.tag-badge:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
    color: #e8e2f0;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

/* Sidebar gradient titles */
.sidebar-title,
.category-nav-title {
    border-bottom-color: transparent;
    border-image: linear-gradient(90deg, #a855f7, #ec4899) 1;
}

/* Blockquote with gradient border */
.prose blockquote {
    border-left: 4px solid transparent;
    border-image: linear-gradient(to bottom, #a855f7, #ec4899) 1;
    background: rgba(168, 85, 247, 0.05);
    border-radius: 0;
}

/* Pagination glow */
.pagination-link {
    border-color: rgba(168, 85, 247, 0.2);
    color: #8b7fa8;
}
.pagination-link:hover {
    border-color: #a855f7;
    color: #a855f7;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.25);
}
.pagination-current {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border: none;
}

/* Footer subtle glow */
.site-footer {
    border-top: 1px solid rgba(168, 85, 247, 0.15);
}

/* Language Picker - Glassmorphism neon grid */
.language-picker-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 1.25rem;
    padding: 2.5rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: none;
}
.language-picker-title {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}
.language-picker-subtitle {
    color: #6b5f80;
}
.language-picker-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.5rem;
}
.language-picker-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 0.75rem;
    padding: 0.75rem;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}
.language-picker-item:hover {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.15), 0 0 1px rgba(168, 85, 247, 0.3);
}
.language-picker-item.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}
.language-picker-item.active .language-native {
    color: #e8e2f0;
}
.language-picker-item.active .language-name {
    color: #a78bfa;
}
.language-picker-item .language-native {
    color: #c4b5fd;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
}
.language-picker-item .language-name {
    color: #6b5f80;
    font-size: 0.6875rem;
}
