/*
Theme Name:  VerbaSense Blog
Description: VerbaSense — minimal Notion-style blog, standalone classic theme
Version:     1.2
*/

/* ── TOKENS ── */
:root {
  --blue:    #244BFF;
  --blue-d:  #1a38d4;
  --blue-lt: #EEF1FF;
  --text:    #0f172a;
  --muted:   #64748b;
  --subtle:  #94a3b8;
  --border:  #e2e8f0;
  --bg:      #f8fafc;
  --white:   #ffffff;
}

/* ── BASE RESET — override Twenty Twenty-Five completely ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif !important;
  background: var(--white) !important;
  color: var(--text) !important;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Kill all parent theme layout wrappers */
.wp-site-blocks,
.wp-site-blocks > *:not(body) {
  all: unset;
  display: block;
}

/* ═══════════════════════════════════════
   NAV — identical to verbasense.com
════════════════════════════════════════ */
.vs-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex; align-items: center;
  padding: 0 40px;
}
#wpadminbar ~ * .vs-nav,
.admin-bar .vs-nav { top: 32px; }

.vs-nav-inner {
  max-width: 1140px; margin: 0 auto; width: 100%;
  display: flex; align-items: center;
}
.vs-nav-logo { display: flex; align-items: center; text-decoration: none; margin-right: 40px; flex-shrink: 0; }
.vs-nav-logo img { height: 22px; display: block; }
.vs-nav-links { display: flex; gap: 28px; flex: 1; }
.vs-nav-links a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  text-decoration: none; transition: color 0.15s;
}
.vs-nav-links a:hover, .vs-nav-links a.current { color: var(--text); }
.vs-nav-actions { display: flex; align-items: center; gap: 10px; }
.vs-nav-login {
  font-size: 13px; font-weight: 600; color: var(--muted);
  text-decoration: none; padding: 6px 14px;
  border-radius: 7px; transition: color 0.15s, background 0.15s;
}
.vs-nav-login:hover { color: var(--text); background: var(--bg); }
.vs-nav-cta {
  font-size: 13px; font-weight: 700; color: #fff;
  background: var(--blue); text-decoration: none;
  padding: 8px 18px; border-radius: 8px; transition: background 0.15s;
  white-space: nowrap;
}
.vs-nav-cta:hover { background: var(--blue-d); }

/* ═══════════════════════════════════════
   PAGE WRAPPER
════════════════════════════════════════ */
.vs-page {
  min-height: calc(100vh - 60px);
}

/* ═══════════════════════════════════════
   BLOG INDEX — post list
════════════════════════════════════════ */
.vs-index-wrap {
  max-width: 1100px; margin: 0 auto;
  padding: 72px 40px 96px;
}

.vs-index-header { margin-bottom: 56px; }
.vs-index-tag {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--blue-lt); padding: 4px 12px; border-radius: 20px;
  margin-bottom: 16px;
}
.vs-index-title {
  font-size: clamp(30px, 4vw, 44px); font-weight: 900;
  letter-spacing: -1px; line-height: 1.1; color: var(--text); margin-bottom: 12px;
}
.vs-index-sub {
  font-size: 16px; color: var(--muted); line-height: 1.7; max-width: 500px;
}

/* Featured post (first one, full-width) */
.vs-post-featured {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  padding-bottom: 56px; margin-bottom: 56px;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
}
.vs-post-featured:hover .vs-post-featured-title { color: var(--blue); }
.vs-post-featured-thumb {
  border-radius: 14px; overflow: hidden;
  aspect-ratio: 16/9; background: var(--blue-lt);
}
.vs-post-featured-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vs-post-featured-thumb-placeholder {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center;
  font-size: 48px; opacity: 0.3;
}
.vs-post-featured-label {
  font-size: 11px; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px;
}
.vs-post-featured-title {
  font-size: clamp(22px, 3vw, 32px); font-weight: 800;
  letter-spacing: -0.5px; line-height: 1.2;
  color: var(--text); margin-bottom: 14px;
  transition: color 0.15s;
}
.vs-post-featured-excerpt {
  font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 20px;
}
.vs-post-featured-meta {
  font-size: 12px; color: var(--subtle);
  display: flex; align-items: center; gap: 10px;
}
.vs-post-featured-read {
  font-size: 13px; font-weight: 700; color: var(--blue);
  display: inline-flex; align-items: center; gap: 5px;
}

/* Post grid */
.vs-post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.vs-card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
  background: var(--white);
}
.vs-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.vs-card-thumb {
  aspect-ratio: 16/9; background: var(--blue-lt); overflow: hidden;
}
.vs-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vs-card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; opacity: 0.3;
}
.vs-card-body { padding: 20px 20px 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.vs-card-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--subtle);
}
.vs-card-cat {
  font-size: 10px; font-weight: 700; color: var(--blue);
  background: var(--blue-lt); padding: 2px 7px; border-radius: 10px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.vs-card-title {
  font-size: 15px; font-weight: 800; color: var(--text);
  line-height: 1.35; letter-spacing: -0.1px; flex: 1;
}
.vs-card:hover .vs-card-title { color: var(--blue); }
.vs-card-excerpt {
  font-size: 13px; color: var(--muted); line-height: 1.6;
}

/* Pagination */
.vs-pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; margin-top: 64px;
}
.vs-pagination .page-numbers {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  border: 1.5px solid var(--border); text-decoration: none;
  transition: all 0.15s;
}
.vs-pagination .page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.vs-pagination .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.vs-pagination .page-numbers.dots { border: none; width: auto; padding: 0 4px; }

/* ═══════════════════════════════════════
   SINGLE POST — Notion-style reading
════════════════════════════════════════ */
.vs-single-wrap {
  max-width: 680px; margin: 0 auto;
  padding: 64px 40px 96px;
}

.vs-single-header { margin-bottom: 40px; }
.vs-single-cats { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }

.vs-single-title {
  font-size: clamp(28px, 4vw, 42px); font-weight: 900;
  letter-spacing: -1px; line-height: 1.15; color: var(--text);
  margin-bottom: 20px;
}
.vs-single-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--subtle); padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.vs-single-meta-author {
  display: flex; align-items: center; gap: 8px;
}
.vs-single-meta-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue-lt); color: var(--blue);
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.vs-single-meta-name { font-weight: 600; color: var(--muted); }

.vs-single-thumb {
  width: 100%; border-radius: 12px; overflow: hidden;
  margin: 32px 0; aspect-ratio: 16/9; background: var(--blue-lt);
}
.vs-single-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Article typography — Notion-level ── */
.vs-content {
  font-size: 17px; line-height: 1.85; color: #1e293b;
  letter-spacing: 0.01em;
}
.vs-content > * + * { margin-top: 1.4em; }
.vs-content p { margin: 0; }

.vs-content h2 {
  font-size: 24px; font-weight: 800;
  letter-spacing: -0.3px; line-height: 1.25;
  color: var(--text); margin-top: 2.4em; margin-bottom: 0.5em;
}
.vs-content h3 {
  font-size: 19px; font-weight: 700;
  line-height: 1.3; color: var(--text);
  margin-top: 2em; margin-bottom: 0.4em;
}
.vs-content h4 {
  font-size: 16px; font-weight: 700;
  color: var(--text); margin-top: 1.8em; margin-bottom: 0.3em;
}
.vs-content a {
  color: var(--blue); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.vs-content a:hover { text-decoration-thickness: 2px; }

.vs-content ul, .vs-content ol {
  padding-left: 1.5em; margin: 0;
}
.vs-content li { margin-bottom: 0.4em; line-height: 1.75; }
.vs-content li + li { margin-top: 0.2em; }

.vs-content blockquote {
  border-left: 3px solid var(--blue);
  margin: 0; padding: 14px 22px;
  background: var(--blue-lt); border-radius: 0 8px 8px 0;
  font-size: 18px; font-style: italic; color: var(--text);
  line-height: 1.7;
}

.vs-content pre {
  background: #f1f5f9; border-radius: 8px;
  padding: 18px 22px; overflow-x: auto;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 14px; line-height: 1.65; color: #334155;
}
.vs-content code {
  background: #f1f5f9; border-radius: 4px;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 14px; padding: 2px 6px; color: #334155;
}
.vs-content pre code { background: none; padding: 0; }

.vs-content img {
  max-width: 100%; border-radius: 8px;
  display: block; margin: 0 auto;
}
.vs-content figure { margin: 0; text-align: center; }
.vs-content figcaption {
  font-size: 13px; color: var(--subtle);
  margin-top: 8px; font-style: italic;
}
.vs-content hr {
  border: none;
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin: 2.5em 0;
}
.vs-content hr::after {
  content: "· · ·"; color: var(--border);
  font-size: 20px; letter-spacing: 6px;
}
.vs-content table {
  width: 100%; border-collapse: collapse;
  font-size: 15px; margin: 0;
}
.vs-content th, .vs-content td {
  padding: 10px 14px; border: 1px solid var(--border);
  text-align: left;
}
.vs-content th { background: var(--bg); font-weight: 700; font-size: 13px; }

/* Post nav */
.vs-post-nav {
  display: flex; justify-content: space-between;
  gap: 24px; margin-top: 64px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.vs-post-nav a {
  font-size: 13px; font-weight: 600; color: var(--blue);
  text-decoration: none; display: flex; align-items: center; gap: 5px;
  max-width: 45%; line-height: 1.4;
}
.vs-post-nav a:hover { text-decoration: underline; }
.vs-post-nav-next { text-align: right; margin-left: auto; }

/* Back to blog */
.vs-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  text-decoration: none; margin-bottom: 36px;
  transition: color 0.15s;
}
.vs-back:hover { color: var(--text); }

/* ═══════════════════════════════════════
   FOOTER — identical to verbasense.com
════════════════════════════════════════ */
.vs-footer {
  background: var(--text); color: rgba(255,255,255,0.6);
  padding: 60px 40px 36px;
}
.vs-footer-inner { max-width: 1140px; margin: 0 auto; }
.vs-footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.vs-footer-brand-desc {
  font-size: 13px; line-height: 1.65; max-width: 260px; margin-top: 10px;
}
.vs-footer-col-title {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.85);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}
.vs-footer-col a {
  display: block; font-size: 13px; color: rgba(255,255,255,0.55);
  text-decoration: none; margin-bottom: 9px; transition: color 0.15s;
}
.vs-footer-col a:hover { color: #fff; }
.vs-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.vs-footer-bottom-text { font-size: 12px; }
.vs-footer-bottom-links { display: flex; gap: 20px; }
.vs-footer-bottom-links a {
  font-size: 12px; color: rgba(255,255,255,0.45); text-decoration: none;
}
.vs-footer-bottom-links a:hover { color: rgba(255,255,255,0.8); }

/* ═══════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 900px) {
  .vs-nav { padding: 0 20px; }
  .vs-nav-links { display: none; }
  .vs-index-wrap { padding: 48px 20px 72px; }
  .vs-post-featured { grid-template-columns: 1fr; gap: 24px; }
  .vs-post-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .vs-single-wrap { padding: 48px 20px 72px; }
  .vs-footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .vs-footer { padding: 48px 20px 28px; }
}
@media (max-width: 580px) {
  .vs-post-featured { display: none; } /* show as regular card on mobile */
  .vs-post-grid { grid-template-columns: 1fr; }
  .vs-footer-top { grid-template-columns: 1fr; }
  .vs-content { font-size: 16px; }
  .vs-single-title { font-size: 26px; }
}
