/* ============ YOHODIY Blog — Public UI v2 ============ */
:root {
  --brand: #0e7a5f;
  --brand-dark: #0a5c48;
  --brand-light: #e6f4f0;
  --accent: #f59e0b;
  --ink: #16211d;
  --text: #33413c;
  --muted: #6b7a75;
  --border: #e4eae8;
  --bg: #fbfdfc;
  --card: #ffffff;
  --soft: #f2f7f5;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 34, .05), 0 1px 6px rgba(16, 42, 34, .06);
  --shadow-md: 0 4px 14px rgba(16, 42, 34, .08), 0 1px 4px rgba(16, 42, 34, .05);
  --shadow-lg: 0 12px 34px rgba(16, 42, 34, .12);
  --font-head: Georgia, "Times New Roman", "Songti SC", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--text);
  background: var(--bg); line-height: 1.75; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; transition: color .18s; }
a:hover { color: var(--brand-dark); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 66px; flex-wrap: wrap; }
.logo {
  font-family: var(--font-head); font-size: 24px; font-weight: 800;
  letter-spacing: 2.5px; color: var(--ink); position: relative;
}
.logo::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 34px; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 2px;
}
.logo:hover { text-decoration: none; }
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  color: var(--text); font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: background .18s, color .18s;
}
.main-nav a:hover { background: var(--brand-light); color: var(--brand-dark); text-decoration: none; }
.search-form { margin-left: auto; }
.search-form input {
  padding: 8px 18px; border: 1.5px solid var(--border); border-radius: 999px;
  width: 220px; font-size: 14px; background: var(--soft); color: var(--ink);
  transition: border-color .18s, box-shadow .18s, width .25s; outline: none;
}
.search-form input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(14, 122, 95, .12); width: 260px; }
.lang-switch { font-size: 13px; color: var(--muted); white-space: nowrap; }
.lang-switch a { color: var(--muted); font-weight: 600; }
.lang-switch a:hover { color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 22px;
  margin: 34px 0 44px; padding: 64px 56px;
  background: linear-gradient(120deg, #0b3d32 0%, var(--brand) 58%, #14966f 100%);
  color: #eaf7f2; box-shadow: var(--shadow-lg);
}
.hero::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(245, 158, 11, .35), transparent 65%);
}
.hero::after {
  content: ""; position: absolute; left: 40%; bottom: -120px; width: 420px; height: 260px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, .14), transparent 70%);
}
.hero h1 {
  font-family: var(--font-head); font-size: 44px; line-height: 1.2;
  margin: 0 0 14px; color: #fff; max-width: 640px; position: relative; z-index: 1;
}
.hero p { font-size: 18px; margin: 0 0 26px; max-width: 560px; opacity: .92; position: relative; z-index: 1; }
.hero .hero-cta {
  display: inline-block; background: var(--accent); color: #231a05; font-weight: 700;
  padding: 12px 28px; border-radius: 999px; box-shadow: 0 6px 18px rgba(245, 158, 11, .4);
  transition: transform .18s, box-shadow .18s; position: relative; z-index: 1;
}
.hero .hero-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(245, 158, 11, .5); text-decoration: none; }
.hero .hero-badge {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 18px; position: relative; z-index: 1;
}
@media (max-width: 720px) { .hero { padding: 40px 26px; } .hero h1 { font-size: 30px; } }

/* ---------- Layout ---------- */
.main-content { padding: 8px 24px 72px; min-height: 60vh; }
.layout-2col { display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: start; }
@media (max-width: 860px) { .layout-2col { grid-template-columns: 1fr; } }

.page-heading {
  font-family: var(--font-head); font-size: 30px; margin: 6px 0 26px; color: var(--ink);
  padding-bottom: 14px; border-bottom: 3px solid var(--brand-light); position: relative;
}
.page-heading::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 64px; height: 3px; background: var(--brand); }

/* ---------- Post cards ---------- */
.post-card {
  display: flex; gap: 24px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfe2dc; }
.cover-link { flex-shrink: 0; }
.cover-thumb { width: 216px; height: 146px; object-fit: cover; border-radius: 10px; display: block; }
@media (max-width: 640px) { .post-card { flex-direction: column; } .cover-thumb { width: 100%; height: 180px; } }
.post-card h2 { margin: 2px 0 8px; font-size: 21px; line-height: 1.4; font-family: var(--font-head); }
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--brand); text-decoration: none; }
.meta-line { color: var(--muted); font-size: 13.5px; margin: 0 0 8px; }
.meta-line a { color: var(--brand); font-weight: 600; }
.meta-line .author { font-weight: 600; color: var(--text); }
.excerpt { margin: 0 0 12px; color: #4b5a55; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { font-weight: 700; font-size: 14px; letter-spacing: .3px; }
.read-more:hover { text-decoration: none; }

/* ---------- Sidebar ---------- */
.sidebar { position: sticky; top: 90px; }
.sidebar .widget {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.sidebar h3 {
  margin: 0 0 14px; font-size: 15px; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--ink); border-left: 4px solid var(--brand); padding-left: 10px;
}
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar li a { color: var(--text); font-size: 15px; }
.sidebar li a:hover { color: var(--brand); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 10px; margin-top: 30px; justify-content: center; }
.pagination a, .pagination .current {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 10px; background: var(--card);
  font-weight: 600; font-size: 14px; color: var(--text); transition: all .18s;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Single post ---------- */
.single-post { max-width: 780px; margin: 20px auto 0; }
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb span { color: var(--text); }
.single-post h1 {
  font-family: var(--font-head); font-size: 38px; line-height: 1.28;
  margin: 0 0 14px; color: var(--ink); letter-spacing: -.3px;
}
@media (max-width: 640px) { .single-post h1 { font-size: 28px; } }
.tag-line { margin: 14px 0 20px; }
.tag-line .tag {
  display: inline-block; background: var(--brand-light); color: var(--brand-dark);
  border-radius: 999px; padding: 4px 14px; margin: 0 8px 8px 0; font-size: 13px; font-weight: 600;
  transition: background .18s;
}
.tag-line .tag:hover { background: #d2eae2; text-decoration: none; }
.cover { margin: 8px 0 28px; }
.cover img { width: 100%; border-radius: 16px; box-shadow: var(--shadow-md); }

.post-content { font-size: 17.5px; color: var(--text); }
.post-content img { max-width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow-sm); }
.post-content h2 {
  font-family: var(--font-head); font-size: 27px; color: var(--ink);
  margin: 48px 0 16px; padding-top: 28px; border-top: 1px solid var(--border);
}
.post-content h3 { font-size: 21px; color: var(--ink); margin: 34px 0 12px; }
.post-content p { margin: 0 0 18px; }
.post-content pre { background: #122019; color: #d7e8e0; padding: 18px 20px; border-radius: 12px; overflow-x: auto; font-size: 14px; }
.post-content code { font-family: ui-monospace, Consolas, monospace; }
.post-content :not(pre) > code { background: var(--soft); color: var(--brand-dark); padding: 2px 7px; border-radius: 6px; font-size: 14.5px; }
.post-content blockquote {
  border-left: 4px solid var(--brand); background: var(--soft);
  margin: 24px 0; padding: 14px 22px; border-radius: 0 12px 12px 0; color: #43514c;
}
.post-content table { border-collapse: collapse; width: 100%; margin: 24px 0; font-size: 15px; box-shadow: var(--shadow-sm); border-radius: 10px; overflow: hidden; }
.post-content th, .post-content td { border: 1px solid var(--border); padding: 10px 14px; }
.post-content th { background: var(--soft); color: var(--ink); }
.post-content ul, .post-content ol { padding-left: 26px; }
.post-content li { margin-bottom: 6px; }

/* ---------- Author box (E-E-A-T) ---------- */
.author-box {
  display: flex; gap: 18px; align-items: flex-start;
  background: linear-gradient(135deg, var(--brand-light), #f4faf8);
  border: 1px solid #cfe6de; border-radius: var(--radius); padding: 24px; margin-top: 48px;
}
.author-box .avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 22px;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-head);
}
.author-box h3 { margin: 0 0 6px; font-size: 17px; color: var(--ink); }
.author-box h3 small { display: block; font-size: 12px; color: var(--brand); letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }
.author-box p { margin: 0; font-size: 14.5px; color: #4b5a55; }

/* ---------- FAQ (GEO) ---------- */
.faq-section { margin-top: 48px; }
.faq-section h2 { font-family: var(--font-head); font-size: 26px; color: var(--ink); }
.faq-item {
  border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px;
  background: var(--card); overflow: hidden; transition: border-color .18s, box-shadow .18s;
}
.faq-item[open] { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.faq-item summary {
  font-weight: 600; cursor: pointer; padding: 16px 22px; color: var(--ink);
  list-style: none; position: relative; font-size: 16px;
}
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--brand); font-weight: 400; transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer { padding: 0 22px 18px; color: #4b5a55; font-size: 15.5px; }

/* ---------- Related ---------- */
.related { margin-top: 52px; }
.related h2 { font-family: var(--font-head); font-size: 24px; color: var(--ink); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.related-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px; transition: transform .18s, box-shadow .18s; display: block;
}
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.related-card h4 { margin: 0 0 6px; font-size: 15.5px; color: var(--ink); line-height: 1.45; }
.related-card time { font-size: 12.5px; color: var(--muted); }
.related > ul { padding-left: 22px; }

/* ---------- Comments ---------- */
.comments { margin-top: 56px; border-top: 2px solid var(--border); padding-top: 32px; }
.comments h2 { font-family: var(--font-head); color: var(--ink); }
.comment { border-bottom: 1px dashed var(--border); padding: 16px 0; }
.comment-meta { color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.comment-meta strong { color: var(--ink); font-size: 14.5px; }
.comment p:last-child { margin-bottom: 0; }
.flash { background: #ecfdf5; border: 1px solid #a7f3d0; padding: 12px 16px; border-radius: 10px; color: #065f46; font-weight: 500; }
.comment-form { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; background: var(--soft); padding: 26px; border-radius: var(--radius); }
.comment-form h3 { margin: 0; font-family: var(--font-head); color: var(--ink); }
.comment-form input, .comment-form textarea {
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font: inherit; background: #fff; outline: none; transition: border-color .18s, box-shadow .18s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14, 122, 95, .1); }
.comment-form button {
  align-self: flex-start; background: var(--brand); color: #fff; border: 0;
  padding: 12px 30px; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 700;
  transition: background .18s, transform .18s;
}
.comment-form button:hover { background: var(--brand-dark); transform: translateY(-1px); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* ---------- Archive ---------- */
.archive-list { list-style: none; padding: 0; max-width: 720px; }
.archive-list li { padding: 7px 0; }
.archive-list li a { font-size: 16.5px; color: var(--text); }
.archive-list li a:hover { color: var(--brand); }
.archive-year { margin-top: 26px; list-style: none; }
.archive-year h2 { font-family: var(--font-head); color: var(--brand); font-size: 24px; margin: 0; }
.archive-list time { color: var(--muted); font-size: 13.5px; margin-right: 12px; font-variant-numeric: tabular-nums; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 90px 0; }
.not-found h1 {
  font-family: var(--font-head); font-size: 96px; margin: 0; line-height: 1;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px; background: #10211b; color: #9db8ae; padding: 44px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 30px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: #fff; letter-spacing: 2px; }
.site-footer p { font-size: 14px; margin: 8px 0; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: #9db8ae; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

.empty { color: var(--muted); padding: 40px 0; text-align: center; font-size: 17px; }
