/* Blog & Post Specific Styles */

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10rem 2rem 4rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-title {
    font-family: var(--font-outfit);
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.blog-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
}

.filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

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

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

.blog-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.blog-card-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
    background: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

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

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-summary {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Post Content Styles (Article) */
.post-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 12rem 1.5rem 4rem;
}

.post-content {
    width: 100%;
}

.post-header-area {
    margin-bottom: 3rem;
    text-align: center;
    width: 100%;
}

.post-category {
    display: inline-block;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
}

.post-title {
    font-family: var(--font-outfit);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-weight: 600;
    word-break: keep-all;
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.breadcrumbs {
    margin: 0 auto 2.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb-sep {
    color: #cbd5e1;
    font-size: 0.75rem;
}

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

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

.markdown-body {
    background: white;
    padding: 3.5rem;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    line-height: 1.8;
    color: #334155;
}

.markdown-body h1 { font-size: 2.25rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid #e2e8f0; padding-bottom: 0.5rem; }
.markdown-body h2 { font-size: 1.875rem; font-weight: 700; margin-top: 2rem; margin-bottom: 1.25rem; }
.markdown-body h3 { font-size: 1.5rem; font-weight: 600; margin-top: 1.75rem; margin-bottom: 1rem; }
.markdown-body h4 { font-size: 1.25rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.markdown-body h5 { font-size: 1.125rem; font-weight: 600; margin-top: 1.25rem; margin-bottom: 0.5rem; }
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5 {
    color: var(--text-main);
    line-height: 1.3;
}

.markdown-body p { margin-bottom: 1.25rem; }
.markdown-body img { max-width: 100%; border-radius: 0.75rem; margin: 2rem 0; }
.markdown-body pre { background: #f1f5f9; padding: 1.5rem; border-radius: 0.75rem; overflow-x: auto; margin: 1.5rem 0; }
.markdown-body code { font-family: monospace; background: #f1f5f9; padding: 0.2rem 0.4rem; border-radius: 0.25rem; font-size: 0.9em; }

.back-to-list {
    margin-top: 3rem;
    text-align: center;
}

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

.back-link:hover {
    transform: translateX(-5px);
}

