/* Blog Styles — websitestasarim.com */

.blog-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f8f7ff 0%, #fff 60%);
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--text-m);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-s); }

.post-category {
    display: inline-block;
    background: #ede9fe;
    color: var(--primary);
    font-size: .78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.post-title {
    font-family: var(--font-d);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--text-m);
    font-size: .9rem;
    margin-bottom: 0;
}
.post-meta svg { flex-shrink: 0; }
.post-meta-item { display: flex; align-items: center; gap: 6px; }

.post-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: start;
    padding: 60px 0 80px;
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text);
}
.post-content h2 {
    font-family: var(--font-d);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin: 48px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}
.post-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin: 32px 0 12px;
}
.post-content p { margin-bottom: 20px; }
.post-content ul, .post-content ol {
    margin: 16px 0 24px 20px;
}
.post-content li { margin-bottom: 8px; }
.post-content strong { color: var(--text); font-weight: 700; }
.post-content a { color: var(--primary); text-decoration: underline; }
.post-content a:hover { color: var(--primary-h); }

.post-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: .95rem;
}
.post-table th {
    background: var(--primary);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}
.post-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.post-table tr:nth-child(even) td { background: var(--bg-2); }

.post-highlight {
    background: #ede9fe;
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    margin: 28px 0;
    color: var(--text);
}
.post-highlight strong { color: var(--primary); }

.post-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    border-radius: 16px;
    padding: 36px;
    color: #fff;
    text-align: center;
    margin: 48px 0;
}
.post-cta h3 { color: #fff; font-size: 1.4rem; margin-bottom: 12px; }
.post-cta p { color: rgba(255,255,255,.85); margin-bottom: 24px; }
.post-cta .btn-cta { background: var(--cta); }

/* Sidebar */
.post-sidebar { position: sticky; top: 100px; }

.sidebar-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
}
.sidebar-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.sidebar-card ul { list-style: none; padding: 0; margin: 0; }
.sidebar-card ul li { margin-bottom: 10px; }
.sidebar-card ul li a {
    color: var(--text-m);
    text-decoration: none;
    font-size: .9rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    transition: color .2s;
}
.sidebar-card ul li a:hover { color: var(--primary); }
.sidebar-card ul li a::before {
    content: "→";
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 1px;
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    border: none;
    color: #fff;
    text-align: center;
}
.sidebar-cta h4 { color: #fff; border-color: rgba(255,255,255,.2); }
.sidebar-cta p { color: rgba(255,255,255,.85); font-size: .9rem; margin-bottom: 16px; }

/* Blog listing */
.blog-listing { padding: 80px 0; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.blog-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card-img {
    height: 160px;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.blog-card-body { padding: 24px; }
.blog-card-cat {
    display: inline-block;
    background: #ede9fe;
    color: var(--primary);
    font-size: .75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4;
}
.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-title a:hover { color: var(--primary); }
.blog-card-excerpt { color: var(--text-m); font-size: .9rem; line-height: 1.6; margin-bottom: 16px; }
.blog-card-meta { font-size: .82rem; color: var(--text-s); }

@media (max-width: 768px) {
    .post-layout { grid-template-columns: 1fr; }
    .post-sidebar { position: static; }
    .blog-hero { padding: 100px 0 40px; }
}
