/* ----------------------------------------------------------------
	MEGAFORCE Blog (static archive of 強力大磁鐵)
	Builds on css/megaforce.min.css — same fonts, accent #B238D6.
-----------------------------------------------------------------*/

.mf-blog { --mf-accent: #B238D6; --mf-text: #444; --mf-muted: #888; --mf-line: #EEE; }

/* Page title */
#page-title.mf-page-title { padding: 60px 0 44px; background: #F7F4F9; border-bottom: 1px solid var(--mf-line); }
#page-title.mf-page-title h1 { font-size: 30px; line-height: 1.45; letter-spacing: 1px; text-transform: none; margin: 0; color: #222; }
#page-title.mf-page-title span { display: block; margin-top: 10px; font-size: 17px; color: var(--mf-muted); font-weight: 300; }
.mf-back { display: inline-block; margin-bottom: 14px; font-size: 14px; color: var(--mf-accent); }
.mf-back:hover { color: #222; }

.mf-meta { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--mf-muted); }
.mf-meta i { color: var(--mf-accent); margin-right: 4px; }
.mf-meta a { color: var(--mf-muted); }
.mf-meta a:hover { color: var(--mf-accent); }

/* Category filter */
.mf-filter { list-style: none; margin: 0 0 36px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.mf-filter a { display: block; padding: 7px 16px; border: 1px solid #DDD; border-radius: 20px; font-size: 14px; color: #555; line-height: 1.4; transition: all .2s; }
.mf-filter a small { color: #AAA; margin-left: 2px; }
.mf-filter a:hover { border-color: var(--mf-accent); color: var(--mf-accent); }
.mf-filter .active a { background: var(--mf-accent); border-color: var(--mf-accent); color: #FFF; }
.mf-filter .active a small { color: rgba(255,255,255,.75); }

/* Post cards */
.mf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.mf-card { display: flex; flex-direction: column; background: #FFF; border: 1px solid var(--mf-line); border-radius: 4px; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.mf-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.08); transform: translateY(-3px); }
.mf-card[hidden] { display: none; }
.mf-card-img { display: block; aspect-ratio: 3 / 2; background: #F2F2F2; overflow: hidden; }
.mf-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mf-card:hover .mf-card-img img { transform: scale(1.04); }
.mf-card-body { flex: 1; display: flex; flex-direction: column; padding: 20px 22px 22px; }
.mf-card-cats span { display: inline-block; margin: 0 6px 8px 0; font-size: 12px; color: var(--mf-accent); letter-spacing: 1px; }
.mf-card h2 { font-size: 18px; line-height: 1.55; margin: 0 0 8px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.mf-card h2 a { color: #222; }
.mf-card h2 a:hover { color: var(--mf-accent); }
.mf-card time { font-size: 13px; color: var(--mf-muted); }
.mf-card p { flex: 1; margin: 12px 0 16px; font-size: 14px; line-height: 1.8; color: #666; }
.mf-more { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--mf-accent); }

/* Single post */
.mf-post { max-width: 780px; margin: 0 auto; }
.mf-post-hero { margin-bottom: 36px; }
.mf-post-hero img { width: 100%; height: auto; border-radius: 4px; }
.mf-post-body { font-size: 16px; line-height: 1.95; color: var(--mf-text); word-wrap: break-word; }
.mf-post-body p { margin-bottom: 22px; }
.mf-post-body h2, .mf-post-body h3, .mf-post-body h4, .mf-post-body h5, .mf-post-body h6 { text-transform: none; letter-spacing: .5px; line-height: 1.5; margin: 40px 0 16px; color: #222; }
.mf-post-body h2 { font-size: 24px; }
.mf-post-body h3 { font-size: 21px; padding-left: 12px; border-left: 4px solid var(--mf-accent); }
.mf-post-body h4 { font-size: 18px; }
.mf-post-body h5, .mf-post-body h6 { font-size: 16px; }
.mf-post-body img { max-width: 100%; height: auto; border-radius: 3px; }
.mf-post-body img.aligncenter, .mf-post-body img.alignnone { display: block; margin: 10px auto 26px; }
.mf-post-body img.alignleft { float: left; margin: 6px 24px 16px 0; max-width: 45%; }
.mf-post-body img.alignright { float: right; margin: 6px 0 16px 24px; max-width: 45%; }
.mf-post-body a { color: var(--mf-accent); text-decoration: underline; text-underline-offset: 3px; }
.mf-post-body a:has(> img) { text-decoration: none; }
.mf-post-body ul, .mf-post-body ol { margin: 0 0 22px 22px; }
.mf-post-body li { margin-bottom: 6px; }
.mf-post-body blockquote { margin: 0 0 24px; padding: 14px 22px; border-left: 4px solid var(--mf-accent); background: #FAF6FC; font-size: 16px; }
.mf-post-body blockquote p:last-child { margin-bottom: 0; }
.mf-post-body blockquote.mf-embed a { text-decoration: none; font-weight: 600; }
.mf-post-body blockquote.mf-embed a::before { content: "延伸閱讀　"; color: var(--mf-muted); font-weight: 400; }
.mf-post-body::after { content: ""; display: table; clear: both; }
.mf-hl { color: var(--mf-accent); }
.mf-muted { color: var(--mf-muted); }
.mf-u { text-decoration: underline; }

.mf-video { position: relative; aspect-ratio: 16 / 9; margin: 10px 0 28px; background: #000; }
.mf-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.mf-tags { clear: both; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--mf-line); font-size: 13px; color: var(--mf-muted); }
.mf-tags span { display: inline-block; margin: 0 6px 6px 0; padding: 3px 10px; background: #F3F3F3; border-radius: 3px; color: #666; }

.mf-post-nav { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--mf-line); }
.mf-post-nav a { display: block; font-size: 15px; line-height: 1.6; color: #333; }
.mf-post-nav a span { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: 2px; color: var(--mf-accent); }
.mf-post-nav a:hover { color: var(--mf-accent); }
.mf-post-nav .next { text-align: right; }

/* Header on blog pages: solid, not over a slider */
.mf-blog #header.full-header #header-wrap { border-bottom: 1px solid var(--mf-line); }
/* At ~992–1200px the menu wraps under the logo and overflows the 100px header; keep the page below it */
.mf-blog #page-title, .mf-blog #content { clear: both; }

@media (max-width: 991px) {
	.mf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	#page-title.mf-page-title { padding: 40px 0 30px; }
	#page-title.mf-page-title h1 { font-size: 23px; }
	.mf-grid { grid-template-columns: 1fr; gap: 24px; }
	.mf-post-body { font-size: 15px; }
	.mf-post-body img.alignleft, .mf-post-body img.alignright { float: none; max-width: 100%; margin: 10px auto 22px; display: block; }
	.mf-post-nav { grid-template-columns: 1fr; }
	.mf-post-nav .next { text-align: left; }
}
