/* Custom styles for zolaboo blog - dark theme with modern typography */

/* Import modern font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Dark theme color scheme */
:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #242424;
    --text-primary: #e5e5e5;
    --text-secondary: #a3a3a3;
    --accent: #60a5fa;
    --accent-hover: #3b82f6;
    --border: #2a2a2a;
}

/* Modern typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-primary) !important;
    background: var(--bg-primary) !important;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Override Ananke theme font classes */
.athelas, .helvetica, .avenir, .georgia, .times, .bodoni, .calisto, .garamond, .baskerville {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Ensure all text uses Inter font */
h1, h2, h3, h4, h5, h6, p, a, span, div, li, td, th, label, input, textarea, button {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Code blocks should use monospace */
code, pre, .code, kbd, samp {
    font-family: 'Fira Code', 'Consolas', 'Monaco', 'Menlo', monospace !important;
}

/* Override default backgrounds */
.bg-near-white {
    background: var(--bg-primary) !important;
}

.bg-white {
    background: var(--bg-secondary) !important;
}

/* Reduce header height on home page */
.bg-black {
    background: var(--bg-secondary) !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.is-home .bg-black {
    padding-top: 0.5rem !important;
    padding-bottom: 1rem !important;
}

/* Header navigation */
nav a {
    color: var(--text-primary) !important;
}

/* Dark article background */
article {
    color: var(--text-primary) !important;
}

/* Improve link styling */
article a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(229, 229, 229, 0.3);
    transition: all 0.2s ease;
}

article a:hover {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

/* Better spacing for intro content */
article p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Modern heading styling */
h1 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

h2 {
    font-weight: 600;
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

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

/* Style the email and social links */
article a[href^="mailto:"],
article a[href*="github.com"],
article a[href*="linkedin.com"] {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin: 0.25rem 0.5rem 0.25rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.2s ease;
}

article a[href^="mailto:"]:hover,
article a[href*="github.com"]:hover,
article a[href*="linkedin.com"]:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.15);
}

/* Dark blog post cards */
.bb.b--black-10 {
    border: 1px solid var(--border) !important;
    border-radius: 12px;
    padding: 1.5rem;
    background: var(--bg-secondary) !important;
    transition: all 0.3s ease;
}

.bb.b--black-10:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
    border-color: var(--accent) !important;
}

/* Post titles */
.bb.b--black-10 h1 a,
.bb.b--black-10 h1 a.color-inherit {
    color: var(--text-primary) !important;
    border-bottom: none;
    font-weight: 600;
}

.bb.b--black-10 h1 a:hover {
    color: var(--text-primary) !important;
    opacity: 0.8;
}

/* Individual post page titles */
.athelas {
    color: var(--text-primary) !important;
}

article h1,
article h2,
article h3 {
    color: var(--text-primary) !important;
}

/* Post content text */
.bb.b--black-10 .nested-copy-line-height,
.bb.b--black-10 .lh-copy {
    color: var(--text-secondary) !important;
}

/* Dark gray text override */
.dark-gray {
    color: var(--text-secondary) !important;
}

/* Improve button styling */
.bg-dark-gray {
    background-color: var(--accent) !important;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    letter-spacing: -0.01em;
}

.bg-dark-gray:hover {
    background-color: var(--accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(96, 165, 250, 0.25);
}

/* Section headers */
section h2.f2 {
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

/* Read more links */
.ba.b--moon-gray {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border) !important;
    border-radius: 6px;
    color: var(--text-primary) !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ba.b--moon-gray:hover {
    background: var(--bg-secondary) !important;
    border-color: var(--accent) !important;
    transform: translateX(4px);
}

/* Reduce overall padding on home */
.is-home article.cf {
    padding-top: 2rem !important;
    padding-bottom: 1rem !important;
}

/* Cleaner header title */
header h1 {
    font-weight: 700 !important;
    letter-spacing: -0.03em;
}

/* Better image styling in cards */
.bb.b--black-10 img {
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Footer dark theme */
footer {
    background: var(--bg-secondary) !important;
    border-top: 1px solid var(--border);
}

footer a {
    color: var(--text-secondary) !important;
}

footer a:hover {
    color: var(--accent) !important;
}

/* Light text overrides */
.white-90,
.white-80,
.white-70 {
    color: var(--text-primary) !important;
}

/* Date/metadata styling */
.f6, .f5-l {
    color: var(--text-secondary) !important;
}

/* Link color in posts */
.nested-links a {
    color: var(--accent) !important;
}

.nested-links a:hover {
    color: var(--accent-hover) !important;
}

/* Posts list page titles */
.post-title,
.post-title a,
.f3.near-black,
.f3.near-black a,
h1.f3 a {
    color: var(--text-primary) !important;
}

.post-description {
    color: var(--text-secondary) !important;
}

/* Override any black/gray text */
.near-black,
.black,
.gray {
    color: var(--text-primary) !important;
}

/* Blog card styling for both home and list pages */
.blog-card {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
    border-color: var(--accent);
}

/* Grid spacing adjustments */
.nl3 {
    margin-left: -1rem;
}

.nr3 {
    margin-right: -1rem;
}

.ph3 {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Read more button styling */
.read-more-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.read-more-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    transform: translateX(4px);
}

/* Ensure cards stretch to full height */
.h-100 {
    height: 100%;
}

.flex-auto {
    flex: 1 1 auto;
}

