:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(99, 102, 241, 0.15);
}

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

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

/* Navbar */
.navbar {
    background: white !important;
    box-shadow: 0 2px 12px var(--shadow);
    padding: 1.25rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Main Container */
main.container {
    max-width: 900px;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Article Cards */
article.card {
    background: white;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 20px var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

article.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow-lg);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

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

.text-muted {
    color: var(--text-light) !important;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Article Content Styles */
article h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

article h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

article p {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.05rem;
}

article ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

article li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

article strong {
    font-weight: 600;
    color: var(--text-dark);
}

article em {
    font-style: italic;
}

article a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

article a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Code Blocks */
pre {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px var(--shadow);
}

pre code {
    background: transparent;
    padding: 0;
    color: #e2e8f0;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
}

code {
    background: #f1f5f9;
    color: #e11d48;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

/* Footer */
footer {
    background: white;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    padding: 2rem 0;
}

footer p {
    color: var(--text-light);
    margin: 0;
}

/* Card Footer */
.card-footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    main.container {
        padding-top: 2rem;
    }
}