/* Blog Specific Styles - Dark Theme */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: #cbd5e1; /* slate-300 */
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    border: 1px solid #334155; /* slate-700 */
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.7); /* slate-900/70 */
    transition: var(--transition-base);
    margin-bottom: var(--space-xl);
}

.back-button:hover {
    color: #3b82f6; /* blue-500 */
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(-2px);
}

.back-button svg {
    width: 16px;
    height: 16px;
}

.blog-content-dark {
    padding: var(--space-3xl) 0;
    min-height: calc(100vh - 200px);
    background-color: #0f172a; /* slate-950 */
    color: #f1f5f9; /* slate-100 */
}

.blog-header-dark {
    text-align: center;
    margin-bottom: var(--space-3xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid #1e293b; /* slate-800 */
}

.blog-header-dark h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: #f1f5f9; /* slate-50 */
    letter-spacing: -0.02em;
}

.subtitle-dark {
    color: #94a3b8; /* slate-400 */
    font-size: var(--text-lg);
    font-weight: 400;
}

.blog-post {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.7); /* slate-900/70 */
    border: 1px solid #1e293b; /* slate-800 */
    padding: var(--space-3xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.formula-section {
    margin-bottom: var(--space-3xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid #1e293b; /* slate-800 */
}

.formula-section:last-child {
    border-bottom: none;
}

.formula-section h2 {
    font-size: var(--text-3xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: #3b82f6; /* blue-500 */
    letter-spacing: -0.01em;
}

.formula-section h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: #f1f5f9; /* slate-50 */
}

.formula-section p {
    margin-bottom: var(--space-md);
    color: #cbd5e1; /* slate-300 */
    line-height: 1.8;
}

.formula-section ul {
    margin-left: var(--space-xl);
    margin-bottom: var(--space-md);
}

.formula-section li {
    margin-bottom: var(--space-sm);
    color: #cbd5e1; /* slate-300 */
    line-height: 1.8;
}

.formula-section li strong {
    color: #f1f5f9; /* slate-50 */
}

/* Formula Box */
.formula-box {
    background: rgba(15, 23, 42, 0.9); /* slate-950/90 */
    border-left: 4px solid #3b82f6; /* blue-500 */
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
    border-radius: var(--radius);
    border: 1px solid #1e293b; /* slate-800 */
}

.formula {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-xl);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    margin-bottom: var(--space-sm);
}

.formula-label {
    font-weight: 600;
    color: #f1f5f9; /* slate-50 */
}

.formula-content {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #3b82f6; /* blue-500 */
    font-weight: 500;
}

.formula-content sup {
    font-size: 0.75em;
    vertical-align: super;
}

.formula-content sub {
    font-size: 0.75em;
    vertical-align: sub;
}

.formula-note {
    font-size: var(--text-sm);
    color: #94a3b8; /* slate-400 */
    font-style: italic;
    margin-top: var(--space-sm);
    margin-bottom: 0;
}

/* Code Blocks */
pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

code {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: rgba(15, 23, 42, 0.8); /* slate-950/80 */
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.875em;
    color: #60a5fa; /* blue-400 */
    border: 1px solid #1e293b; /* slate-800 */
}

pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* Dark theme footer */
.footer-dark {
    background: rgba(15, 23, 42, 0.9); /* slate-950/90 */
    padding: var(--space-3xl) 0;
    text-align: center;
    color: #94a3b8; /* slate-400 */
    border-top: 1px solid #1e293b; /* slate-800 */
    margin-top: var(--space-3xl);
}

.footer-dark p {
    font-size: var(--text-sm);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-header-dark h1 {
        font-size: var(--text-3xl);
    }

    .blog-post {
        padding: var(--space-xl) var(--space-lg);
    }

    .formula-section h2 {
        font-size: var(--text-2xl);
    }

    .formula {
        font-size: var(--text-lg);
        flex-wrap: wrap;
    }

    pre {
        font-size: var(--text-xs);
        padding: var(--space-md);
    }
    
    .back-button {
        font-size: var(--text-xs);
        padding: var(--space-xs) var(--space-sm);
    }
}

