/* Blog liste — minimalist, SEO dostu */

.blog-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 0 48px;
}

.blog-hero {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color, #e8e8e8);
}

.blog-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    line-height: 1.2;
}

.blog-hero p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-muted, #6b7280);
    max-width: 560px;
    line-height: 1.6;
}

.blog-filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.blog-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-secondary, #4b5563);
    background: var(--surface-2, #f5f5f5);
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.blog-filter-chip:hover,
.blog-filter-chip.is-active {
    background: var(--text-primary, #111);
    color: #fff;
}

body.dark-theme .blog-filter-chip {
    background: #333;
    color: #d4d4d4;
}

body.dark-theme .blog-filter-chip:hover,
body.dark-theme .blog-filter-chip.is-active {
    background: #404040;
    color: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.blog-card-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #ebebeb);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
}

.blog-card-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

body.dark-theme .blog-card-item {
    background: #2a2a2a;
    border-color: #333;
}

body.dark-theme .blog-card-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.blog-card-item__img {
    aspect-ratio: 16 / 10;
    background: var(--surface-2, #f0f0f0);
    overflow: hidden;
}

.blog-card-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.dark-theme .blog-card-item__img {
    background: #1e1e1e;
}

.blog-card-item__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-card-item__cat {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #10b981;
}

.blog-card-item__title {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-item__excerpt {
    font-size: 0.875rem;
    color: var(--text-muted, #6b7280);
    line-height: 1.5;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-item__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8125rem;
    color: var(--text-muted, #9ca3af);
    margin-top: 8px;
}

.blog-empty {
    text-align: center;
    padding: 64px 24px;
    color: var(--text-muted, #9ca3af);
}

.blog-skel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.blog-skel-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color, #ebebeb);
}

.blog-skel-card .sk-img {
    aspect-ratio: 16/10;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: blogShimmer 1.2s infinite;
}

.blog-skel-card .sk-body { padding: 20px; }

.blog-skel-line {
    height: 14px;
    margin-bottom: 10px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: blogShimmer 1.2s infinite;
}

body.dark-theme .blog-skel-line,
body.dark-theme .blog-skel-card .sk-img {
    background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%);
    background-size: 200% 100%;
}

@keyframes blogShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-secondary, #374151);
    border: 1px solid var(--border-color, #e5e7eb);
}

.blog-pagination a:hover { border-color: #10b981; color: #10b981; }

.blog-pagination .is-current {
    background: #111;
    color: #fff;
    border-color: #111;
}

body.dark-theme .blog-pagination .is-current {
    background: #404040;
    border-color: #404040;
}
