/* GlobalSIMC Blog theme — dark blue edition, palette referenced from
   https://www.globalsimc.com/ (sampled 2026-10-30): deep blue-black background,
   bright-blue CTAs, white headings, light-grey body text. Keeps the refined
   texture: gradient hairline, inset card highlights, soft button glow. */
:root {
  --bg: #0B0F1A;
  --card: #101828;
  --header-bg: #0D1420;
  --text: #A8B0BE;
  --heading: #FFFFFF;
  --muted: #66748E;
  --accent: #2F7DF6;
  --link: #3B82F6;
  --accent-text: #FFFFFF;
  --highlight: #3B82F6;
  --border: #1C2942;
  --ad-bg: #0E1A33;
  --ad-border: #2F7DF6;
  --radius: 12px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(180deg, #0C1222 0%, #090D17 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  font-size: 17px;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--border); position: relative; }
.site-header::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--link) 50%, var(--accent) 70%, transparent);
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 18px; padding-bottom: 14px;
}
.brand { font-size: 1.35rem; font-weight: 800; color: var(--heading); letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.brand .brand-main { color: var(--heading); }
.brand .blogword { color: var(--link); font-weight: 600; font-size: 1.05rem; }

.category-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-bottom: 14px; }
.category-nav a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.category-nav a:hover { color: var(--heading); }

/* Layout */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; padding-top: 28px; padding-bottom: 40px; }
.content { min-width: 0; }
.content h1 { font-size: 1.9rem; line-height: 1.3; margin: 0.2em 0 0.5em; color: var(--heading); }
.content h2 { font-size: 1.4rem; margin: 1.6em 0 0.5em; color: var(--heading); }
.content h3 { font-size: 1.15rem; margin: 1.4em 0 0.4em; color: var(--heading); }
.content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.content blockquote { border-left: 3px solid var(--accent); margin: 1em 0; padding: 0.4em 1em; color: var(--muted); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; }
.content code { background: var(--card); padding: 0.15em 0.4em; border-radius: 4px; font-size: 0.9em; color: var(--link); }
.content pre { background: #070B13; border: 1px solid var(--border); padding: 1em; border-radius: var(--radius); overflow-x: auto; }
.content pre code { background: none; padding: 0; color: var(--text); }
.content hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }
.content table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 0.95rem; }
.content th, .content td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.content th { background: var(--card); color: var(--heading); }

.lede { font-size: 1.1rem; color: var(--muted); }
.post-date { color: var(--muted); font-size: 0.9rem; }
.meta { font-size: 0.9rem; }
.small { font-size: 0.85rem; color: var(--muted); }

.post-list { list-style: none; padding: 0; }
.post-list li { margin-bottom: 1.6em; padding-bottom: 1.6em; border-bottom: 1px solid var(--border); }
.post-list li:last-child { border-bottom: none; }
.post-list li > a { font-size: 1.15rem; font-weight: 700; color: var(--heading); }
.post-list p { margin: 0.3em 0 0; color: var(--muted); }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.card h3 { margin: 0 0 0.7em; font-size: 1.05rem; color: var(--heading); }
.ad-card { border: 1px solid var(--ad-border); background: var(--ad-bg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 24px rgba(47, 125, 246, 0.10); }
.ad-card .ad-lede { font-size: 1.05rem; margin-top: 0; color: var(--heading); }
.ad-card .btn { margin-top: 0.4em; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { margin-bottom: 0.9em; font-size: 0.95rem; }
.side-list li:last-child { margin-bottom: 0; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 999px; font-size: 0.85rem; color: var(--muted);
}
.tag-cloud a:hover { color: var(--heading); border-color: var(--accent); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-text) !important;
  padding: 10px 22px; border-radius: 8px; font-weight: 700; font-size: 1rem;
  box-shadow: 0 2px 14px rgba(47, 125, 246, 0.30);
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 20px 40px; color: var(--muted); font-size: 0.9rem; }
.site-footer p { margin: 0.3em 0; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .content h1 { font-size: 1.6rem; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
}
