/* Centered entry header for detail pages */
.entry-header-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 2rem;
}

.entry-header-centered .entry-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}
/* CSS Variables for theming */
:root {
    /* Light theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --code-bg: #f8fafc;
    --code-inline-bg: #f1f5f9;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

[data-theme="dark"] {
    /* Dark theme */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: #334155;
    --border-hover: #475569;
    --accent: #60a5fa;
    --accent-hover: #3b82f6;
    --success: #34d399;
    --warning: #fbbf24;
    --error: #f87171;
    --code-bg: #1e293b;
    --code-inline-bg: #334155;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.3), 0 1px 2px -1px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s, color 0.3s;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-content {
    min-height: calc(100vh - 200px);
}

/* Theme toggle */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    transition: opacity 0.2s;
}

[data-theme="light"] .moon-icon,
[data-theme="dark"] .sun-icon {
    opacity: 0;
}

[data-theme="light"] .sun-icon,
[data-theme="dark"] .moon-icon {
    opacity: 1;
}

/* Navigation */
.navbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-brand .navbar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.navbar-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.navbar-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--accent);
}

.navbar-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-toggle-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: all 0.3s;
}

.navbar-toggle-icon::before,
.navbar-toggle-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

.navbar-toggle-icon::before {
    top: -8px;
}

.navbar-toggle-icon::after {
    bottom: -8px;
}

/* Mobile navigation */
@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }

    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-top: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .navbar-menu.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
}

/* Hero section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 200px;
    background: var(--bg-secondary);
    border-radius: 50%;
    margin: 0 auto;
    color: var(--accent);
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-actions {
    text-align: center;
    margin-top: 2rem;
}

/* Grid layouts */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card-image {
    height: 300px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card:hover .card-thumbnail {
    transform: scale(1.05);
}

.card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
}

.card-content {
    padding: 1.5rem;
}

.card-header {
    margin-bottom: 1rem;
}

.card-title {
    margin-bottom: 0.5rem;
}

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

.card-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.blog-card-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
    text-align: center;
}

.tag-more {
    background: var(--accent);
    color: #fff;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    display: inline-block;
    text-align: center;
}
    /* display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem; */

.card-summary {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Project controls */
.projects-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.tag-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag-filter {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.tag-filter:hover,
.tag-filter.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Sections */

#featured-projects {
    padding: 3rem 0;
}

#hobbies {
    padding: 3rem 0;
}



/* Hobby widgets */
.hobby-widget {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hobby-title {
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
}
.strava-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: var(--bg-primary);
}

.hardcover-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: var(--bg-primary);
}
.hobby-widget iframe {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.widget-placeholder {
    background: var(--bg-secondary);
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

/* Strava Widget Styles */
.strava-activities {
    width: 100%;
    background: transparent;
}

.activities-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.activities-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.strava-link {
    font-size: 0.875rem;
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.strava-link:hover {
    opacity: 0.8;
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: transparent;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.activity-item:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.activity-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
    min-width: 0;
}

.activity-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.activity-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.activity-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.strava-loading,
.strava-empty,
.strava-error {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.strava-error a {
    color: var(--accent);
    text-decoration: none;
}

.strava-error a:hover {
    text-decoration: underline;
}

/* Hardcover Widget Styles */
.hardcover-books {
    width: 100%;
    background: transparent;
}

.books-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.books-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.hardcover-link {
    font-size: 0.875rem;
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.hardcover-link:hover {
    opacity: 0.8;
}

.books-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: transparent;
}

.book-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: all 0.2s;
    min-height: 80px; /* Match Strava card height */
}

.book-item:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.book-cover {
    flex-shrink: 0;
    width: 50px;
    height: 75px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-cover .book-status {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.65rem;
    padding: 0.1rem 0.35rem;
    background: var(--accent);
    color: white;
    border-radius: 10px;
    font-weight: 500;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.book-details {
    flex: 1;
    min-width: 0;
}

.book-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.3;
}

.book-author {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.book-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.book-rating {
    font-size: 0.75rem;
}

.book-status {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    background: var(--accent);
    color: white;
    border-radius: 12px;
    font-weight: 500;
}

.book-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.hardcover-loading,
.hardcover-empty,
.hardcover-error {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hardcover-error a {
    color: var(--accent);
    text-decoration: none;
}

.hardcover-error a:hover {
    text-decoration: underline;
}

/* Resume page */
.resume-preview {
    margin: 1.5rem 0;
}

.pdf-embed {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.pdf-viewer {
    width: 100%;
    min-height: 80vh;
    height: 80vh;
    max-height: 90vh;
    border: none;
    display: block;
}

.resume-actions {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.resume-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.resume-navigation {
    text-align: center;
    margin-top: 2rem;
}

/* Portfolio page */
.portfolio-main {
    margin-bottom: 3rem;
}

.portfolio-preview {
    margin: 1.5rem 0;
}

.portfolio-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.portfolio-highlights {
    margin: 3rem 0;
}

.highlights-header {
    text-align: center;
    margin-bottom: 2rem;
}

.highlights-header h2 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.highlights-header p {
    color: var(--text-secondary);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.highlight-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.highlight-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.highlight-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.highlight-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.portfolio-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.portfolio-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.portfolio-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.portfolio-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.portfolio-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.portfolio-navigation .btn {
    flex: 1;
    min-width: 150px;
}

.skills-grid {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.skill-tag {
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Error pages */
.error-page {
    padding: 4rem 0;
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-icon {
    margin-bottom: 2rem;
    color: var(--accent);
}

.error-title {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.error-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.error-links {
    margin-top: 2rem;
}

.error-links-list {
    list-style: none;
    margin-top: 1rem;
}

.error-links-list li {
    margin: 0.5rem 0;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.footer-description {
    color: var(--text-secondary);
}

.footer-subtitle {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    text-align: center;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .resume-grid {
        grid-template-columns: 1fr;
    }

    .resume-actions {
        flex-direction: column;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-card-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--placeholder-bg);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.blog-card-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.blog-card-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-card-tag {
    background: var(--accent-color);
    color: var(--accent-text);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.blog-card-summary {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.blog-card-link:hover {
    color: var(--accent-hover);
    text-decoration: none;
}

/* Blog Search and Filter */
.search-filter-section {
    margin-bottom: 2rem;
}

.search-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--input-bg);
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.search-button {
    padding: 0.75rem 1rem;
    background: var(--accent-color);
    color: var(--accent-text);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-button:hover {
    background: var(--accent-hover);
}

.tag-filter-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tag-filter-label {
    font-weight: 500;
    color: var(--text-primary);
}

.tag-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag-button {
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.tag-button:hover {
    background: var(--hover-bg);
    border-color: var(--accent-color);
}

.tag-button.active {
    background: var(--accent-color);
    color: var(--accent-text);
    border-color: var(--accent-color);
}

/* No Content State */
.no-content {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.no-content-icon {
    margin-bottom: 1rem;
    opacity: 0.6;
}

.no-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.no-content p {
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Lists for markdown */
ul ul {
  margin-left: 2em;
  list-style-type: disc;
}
