/* ════════════════════════════════════════════
   EupCAD Blog — styles.css token'larını kullanır
   (blog sayfaları styles.css + blog.css yükler)
   ════════════════════════════════════════════ */

.blog-main {
	min-height: calc(100vh - var(--nav-h));
	padding: 44px 0 72px;
}

/* nav'da aktif Blog linki */
.nav-links a.nav-on { color: var(--blue); font-weight: 600; }

/* ── Liste / kategori sayfaları ── */
.list-head { max-width: 680px; margin-bottom: 26px; }
.list-head h1 {
	font-size: 34px; line-height: 1.2; letter-spacing: -.01em;
	margin: 6px 0 10px;
}
.list-head .sub { color: var(--text-2); font-size: 16.5px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
	font-size: 13px; font-weight: 600; color: var(--text-2);
	background: var(--surface); border: 1px solid var(--line-2);
	padding: 6px 14px; border-radius: 999px;
	transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.chip:hover { color: var(--blue); border-color: var(--blue); background: var(--soft-blue); }

.list-intro { color: var(--text-2); max-width: 720px; margin-bottom: 26px; }

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
}
.post-card {
	position: relative;
	display: flex; flex-direction: column;
	background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--r-lg); padding: 22px 22px 18px;
	box-shadow: var(--sh-sm);
	transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--line-2); }
.card-link { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.post-card > * { position: relative; z-index: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-cat {
	font-size: 12px; font-weight: 600;
	background: var(--soft-blue); color: var(--blue);
	padding: 3px 10px; border-radius: 999px;
}
.card-top time { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.post-card h2 { font-size: 18px; line-height: 1.4; margin-bottom: 8px; letter-spacing: -.005em; }
.post-card h2 a { color: var(--navy); transition: color .15s ease; }
.post-card:hover h2 a { color: var(--blue); }
.card-desc {
	font-size: 14px; color: var(--text-2); margin-bottom: 14px;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
	overflow: hidden;
}
.card-more { margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--blue); }
.post-card:hover .card-more { color: var(--blue-600); }

/* ── Makale sayfası ── */
.post-wrap { max-width: 780px; }
.crumbs {
	display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
	font-size: 13px; color: var(--muted); margin-bottom: 24px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.crumbs span { color: var(--line-2); }

.post-cat {
	display: inline-block;
	font-size: 12.5px; font-weight: 600;
	color: var(--blue); background: var(--soft-blue);
	padding: 4px 13px; border-radius: 999px; margin-bottom: 14px;
}
.post-cat a { color: inherit; }
.post-head h1 { font-size: 32px; line-height: 1.25; letter-spacing: -.01em; margin-bottom: 12px; }
.post-desc { font-size: 17px; line-height: 1.6; color: var(--text-2); margin-bottom: 16px; }
.post-meta {
	display: flex; align-items: center; gap: 8px;
	font-size: 13.5px; color: var(--muted);
	padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 28px;
}
.post-meta .dot { color: var(--line-2); }
.post-lang { font-size: 13.5px; color: var(--muted); margin-top: -14px; margin-bottom: 24px; }
.post-lang a { color: var(--blue); text-decoration: none; }
.post-lang a:hover { text-decoration: underline; }

.post-body { font-size: 16.5px; line-height: 1.75; }
.post-body h2 { font-size: 24px; line-height: 1.3; letter-spacing: -.01em; margin: 38px 0 12px; }
.post-body h3 { font-size: 19px; line-height: 1.35; margin: 28px 0 10px; }
.post-body p { margin-bottom: 16px; }
.post-body ul, .post-body ol { margin: 0 0 16px 22px; }
.post-body li { margin-bottom: 8px; }
.post-body li::marker { color: var(--blue); }
.post-body strong { color: var(--navy); }
.post-body a { text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--blue-600); }
.post-body blockquote {
	border-left: 3px solid var(--blue);
	background: var(--soft-blue);
	padding: 12px 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0;
	margin-bottom: 16px;
}
.post-body pre {
	background: var(--navy); color: #E6EDF7;
	padding: 16px 18px; border-radius: var(--r-md);
	overflow-x: auto; margin-bottom: 16px;
}
.post-body pre code { background: none; color: inherit; padding: 0; }

/* makale CTA kutusu */
.post-cta {
	margin-top: 48px;
	background: linear-gradient(135deg, var(--navy) 0%, #123a6b 100%);
	border-radius: var(--r-lg); padding: 30px 32px;
	color: #fff; box-shadow: var(--sh-md);
}
.post-cta h2 { font-size: 21px; margin-bottom: 8px; color: #fff; }
.post-cta p { color: rgba(255,255,255,.78); font-size: 15px; margin-bottom: 18px; max-width: 520px; }

/* ── Mobil ── */
@media (max-width: 640px) {
	.blog-main { padding: 28px 0 56px; }
	.list-head h1, .post-head h1 { font-size: 26px; }
	.post-wrap { max-width: none; }
	.post-cta { padding: 24px 22px; }
	.cards { grid-template-columns: 1fr; }
}
