
/* ═══════════════════════════════════════════════
   БЛОГ — додај го ова на крајот на style.css
   ═══════════════════════════════════════════════ */

/* ── Филтер ── */
.blog-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.filter-btn {
    padding: 7px 18px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-2);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .18s;
}
.filter-btn:hover { background: var(--bg-alt); color: var(--text); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Blog grid ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 2.5rem;
}
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: all .2s;
    box-shadow: var(--shadow);
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-h);
    border-color: rgba(232,80,10,.2);
}
.blog-card-img {
    height: 160px;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.blog-card-icon { font-size: 3rem; }
.blog-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-cat {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 7px;
}
.blog-cat-app  { color: var(--accent); }
.blog-cat-web  { color: #1565C0; }
.blog-cat-news { color: #2E7D32; }
.blog-title {
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 8px;
    letter-spacing: -.01em;
}
.blog-excerpt {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1rem;
}
.blog-meta {
    font-size: 11.5px;
    color: var(--text-3);
    font-weight: 500;
}

/* ── Прикажи повеќе ── */
.blog-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

/* ── Post ── */
.post-wrap { padding-bottom: 5rem; }
.post-hero {
    max-width: var(--max);
    margin: 2rem auto 3rem;
    padding: 0 2rem;
    border-radius: var(--r);
    overflow: hidden;
}
.post-hero img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--r);
}
.post-hero-icon { font-size: 5rem; }
.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3.5rem;
    align-items: start;
}
.post-breadcrumb {
    margin-bottom: 1.25rem;
}
.post-breadcrumb a {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    transition: opacity .18s;
}
.post-breadcrumb a:hover { opacity: .75; }
.post-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.15;
    margin-bottom: .75rem;
    color: var(--text);
}
.post-meta-bar {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.post-body { font-size: 15px; color: var(--text-2); line-height: 1.85; }
.post-body p { margin-bottom: 1.25rem; }
.post-body h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin: 2rem 0 .75rem;
    letter-spacing: -.01em;
}
.post-body ul {
    list-style: none;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.post-body ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
}
.post-body ul li::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 7px;
    flex-shrink: 0;
}

.post-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.post-meta-bar { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.share-copy-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 8px 20px; border-radius: 20px; border: none; background: var(--accent); color: #fff; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; transition: all .18s; box-shadow: 0 3px 12px rgba(232,80,10,.25); }
.share-copy-btn:hover { opacity: .88; transform: translateY(-1px); }

/* ── Sidebar ── */
.post-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}
.sidebar-icon { font-size: 3rem; margin-bottom: .75rem; }
.sidebar-name {
    font-family: 'Fraunces', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}
.sidebar-free { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.sidebar-related {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}
.sidebar-related-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-3);
    margin-bottom: 1rem;
}
.related-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: color .18s;
}
.related-item:last-child { border-bottom: none; }
.related-item:hover .related-title { color: var(--accent); }
.related-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.related-title { font-size: 13px; color: var(--text-2); line-height: 1.4; }

/* ── Responsive ── */
@media (max-width: 960px) {
    .blog-grid { grid-template-columns: 1fr 1fr; }
    .post-layout { grid-template-columns: 1fr; }
    .post-sidebar { position: static; }
}
@media (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr; }
    .post-hero { height: 220px; margin-bottom: 15px; }
}

@media (max-width: 600px) {
    .post-content { padding: 20px 1.25rem 1.25rem 1.25rem !important; }
    .post-layout { gap: 1.5rem; }
    .wrap { padding: 0 1rem; }
}