/* Vertalyze blog - shared styles. Classic, simple, matches site chrome. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #fff; color: #0a0a0a; font-family: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif; min-height: 100dvh; }

/* header / footer (shared with legal pages) */
.site-header { display: flex; align-items: center; padding: 0 1.75rem; height: 96px; border-bottom: 1px solid #eee; gap: 1.5rem; }
.site-logo { flex-shrink: 0; line-height: 0; }
.site-logo img { height: 96px; width: auto; display: block; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; flex-shrink: 0; }
.header-right a { font-size: 0.85rem; font-weight: 500; color: #666; text-decoration: none; }
.header-right a:hover { color: #0a0a0a; }

footer { margin: 4rem auto 0; max-width: 720px; padding: 1.5rem 1.75rem 2.5rem; border-top: 1px solid #eee; font-size: 0.8rem; color: #aaa; display: flex; gap: 1.5rem; flex-wrap: wrap; }
footer a { color: #888; text-decoration: none; }
footer a:hover { color: #0a0a0a; }
footer .copy { margin-left: auto; white-space: nowrap; }

/* generic containers */
main { padding: 2.5rem 1.75rem; max-width: 720px; margin: 0 auto; }

/* tag chips */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.tag { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: #666; background: #f3f3f3; border-radius: 999px; padding: 0.15rem 0.45rem; }

/* ---- blog index ---- */
.blog-intro { margin-bottom: 2.5rem; }
.blog-intro h1 { font-size: 1.8rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.blog-intro p { color: #666; font-size: 0.95rem; line-height: 1.6; }
.post-list { display: flex; flex-direction: column; gap: 1.25rem; }
.post-card { display: block; text-decoration: none; color: inherit; border: 1px solid #eee; border-radius: 10px; padding: 1.25rem 1.4rem; transition: border-color 0.15s, transform 0.15s; }
.post-card:hover { border-color: #0a0a0a; transform: translateY(-1px); }
.post-card h2 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; margin: 0.4rem 0 0.4rem; }
.post-card .excerpt { color: #555; font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.7rem; }
.post-meta { font-size: 0.8rem; color: #aaa; }
.empty { color: #aaa; font-size: 0.9rem; padding: 2rem 0; }

/* ---- article ---- */
.article-header { margin-bottom: 2rem; }
.article-header h1 { font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 0.9rem; }
.article-meta { font-size: 0.85rem; color: #888; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.article-meta .dot { color: #ddd; }
.lead { font-size: 1.1rem; color: #333; line-height: 1.6; margin: 1.5rem 0 0; font-weight: 500; }

article h2 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; margin: 2.25rem 0 0.75rem; }
article h3 { font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
article p { font-size: 0.98rem; color: #2a2a2a; line-height: 1.75; margin-bottom: 1rem; }
article ul, article ol { padding-left: 1.3rem; margin-bottom: 1rem; }
article li { font-size: 0.98rem; color: #2a2a2a; line-height: 1.7; margin-bottom: 0.35rem; }
article strong { font-weight: 600; }
article a { color: #0a0a0a; }
article hr { border: none; border-top: 1px solid #eee; margin: 2rem 0; }

/* tables */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
article table { border-collapse: collapse; width: 100%; font-size: 0.88rem; }
article th, article td { text-align: left; padding: 0.5rem 0.7rem; border-bottom: 1px solid #eee; white-space: nowrap; }
article th { font-weight: 600; color: #111; border-bottom: 2px solid #e5e5e5; }
article tbody tr:hover { background: #fafafa; }

.note { font-size: 0.85rem; color: #777; }

/* share bar */
.share { margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid #eee; }
.share-label { font-size: 0.8rem; color: #aaa; margin-bottom: 0.6rem; }
.share-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; font-weight: 500; color: #0a0a0a; text-decoration: none; border: 1px solid #d8d8d8; border-radius: 6px; padding: 0.45rem 0.8rem; background: none; cursor: pointer; font-family: inherit; transition: border-color 0.15s, background 0.15s; }
.share-btn:hover { border-color: #0a0a0a; background: #fafafa; }

.author-box { margin-top: 2rem; padding: 1.1rem 1.3rem; background: #fafafa; border-radius: 10px; font-size: 0.88rem; color: #555; line-height: 1.6; }
.author-box strong { color: #0a0a0a; }

.back-link { display: inline-block; margin-bottom: 1.5rem; font-size: 0.85rem; color: #888; text-decoration: none; }
.back-link:hover { color: #0a0a0a; }

/* ---- reactions (likes + views) ---- */
.post-reactions { display: flex; align-items: center; gap: 1rem; margin: 2.25rem 0 0; padding-top: 1.5rem; border-top: 1px solid #eee; }
.like-btn { display: inline-flex; align-items: center; gap: 0.45rem; font-family: inherit; font-size: 0.9rem; font-weight: 600; color: #0a0a0a; background: none; border: 1px solid #d8d8d8; border-radius: 999px; padding: 0.4rem 0.95rem; cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s; }
.like-btn:hover { border-color: #0a0a0a; background: #fafafa; }
.like-btn .like-heart { font-size: 1rem; line-height: 1; color: #c8c8c8; transition: color 0.15s, transform 0.15s; }
.like-btn.liked { border-color: #e0245e; color: #e0245e; background: #fdf0f4; }
.like-btn.liked .like-heart { color: #e0245e; transform: scale(1.12); }
.like-btn:disabled { opacity: 0.6; cursor: default; }
.views { font-size: 0.82rem; color: #aaa; }

/* ---- comments ---- */
.comments { margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid #eee; }
.comments-title { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 1.25rem; }
.comments-title span { color: #aaa; font-weight: 500; }
.comments-confirm { background: #f0f8f1; border: 1px solid #cce8cf; color: #2f7a3a; font-size: 0.88rem; border-radius: 8px; padding: 0.7rem 0.95rem; margin-bottom: 1.25rem; }
.comments-empty { color: #aaa; font-size: 0.9rem; margin-bottom: 1.5rem; }
.comment-list { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 2rem; }
.comment { border: 1px solid #eee; border-radius: 10px; padding: 0.9rem 1.1rem; }
.comment-meta { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.35rem; }
.comment-author { font-weight: 600; font-size: 0.9rem; color: #0a0a0a; }
.comment-date { font-size: 0.78rem; color: #aaa; }
.comment-body { font-size: 0.92rem; color: #2a2a2a; line-height: 1.65; white-space: pre-wrap; word-wrap: break-word; }

/* comment form */
.comment-form { display: flex; flex-direction: column; gap: 0.7rem; }
.cf-row { display: flex; gap: 0.7rem; }
.cf-row input { flex: 1; min-width: 0; }
.comment-form input, .comment-form textarea { font-family: inherit; font-size: 0.9rem; color: #0a0a0a; border: 1px solid #d8d8d8; border-radius: 8px; padding: 0.6rem 0.8rem; width: 100%; background: #fff; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: #0a0a0a; }
.comment-form textarea { resize: vertical; line-height: 1.5; }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cf-actions { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.cf-submit { font-family: inherit; font-size: 0.9rem; font-weight: 600; color: #fff; background: #0a0a0a; border: none; border-radius: 8px; padding: 0.6rem 1.3rem; cursor: pointer; transition: opacity 0.15s; }
.cf-submit:hover { opacity: 0.88; }
.cf-submit:disabled { opacity: 0.5; cursor: default; }
.cf-msg { font-size: 0.84rem; }
.cf-msg.ok { color: #2f7a3a; }
.cf-msg.err { color: #c0392b; }
.cf-note { font-size: 0.78rem; color: #aaa; line-height: 1.5; margin-top: 0.1rem; }

@media (max-width: 600px) {
  .cf-row { flex-direction: column; }
}

@media (max-width: 600px) {
  .site-header { padding: 0 1rem; height: 72px; }
  .site-logo img { height: 72px; }
  main { padding: 1.5rem 1.1rem; }
  .article-header h1 { font-size: 1.6rem; }
}
