/* ===================================
   BIKASH.COM.AU — Bold Minimal Dark
   Sidebar layout
   =================================== */

:root {
  --bg:           #0a0a0a;
  --bg-surface:   #111111;
  --border:       #1e1e1e;
  --text:         #c9c9c9;
  --text-dim:     #5a5a5a;
  --heading:      #ffffff;
  --accent:       #f97316;
  --accent-dim:   rgba(249, 115, 22, 0.12);
  --code-bg:      #141414;
  --sidebar-w:    240px;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ---- LAYOUT ---- */
.layout {
  display: flex;
  min-height: 100vh;
}

/* ---- SIDEBAR ---- */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-inner {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Avatar */
.profile-link { display: block; width: fit-content; }
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--border);
  display: block;
  transition: border-color 0.2s;
}
.profile-link:hover .avatar { border-color: var(--accent); }

/* Profile text */
.profile-info { display: flex; flex-direction: column; gap: 0.4rem; }
.profile-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.profile-name:hover { color: var(--accent); }
.profile-bio {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Nav */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.sidebar-nav a {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0;
  transition: color 0.15s;
}
.sidebar-nav a:hover,
.sidebar-nav a.active { color: var(--heading); }
.sidebar-nav a.active {
  color: var(--accent);
}

/* Social icons */
.sidebar-social {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}
.sidebar-social a {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.sidebar-social a:hover { color: var(--heading); }

/* ---- MAIN CONTENT ---- */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 3rem 3rem 6rem;
  max-width: 760px;
}

/* ---- SECTION LABEL ---- */
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}

/* ---- POST CARD ---- */
.post-list {
  display: flex;
  flex-direction: column;
}
.post-card {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.post-card:first-of-type { padding-top: 0; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}
.post-meta time {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.15em 0.55em;
  border-radius: 3px;
}

.post-card .post-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}
.post-card .post-title a {
  color: var(--heading);
  text-decoration: none;
  transition: color 0.15s;
}
.post-card .post-title a:hover { color: var(--accent); }
.post-excerpt {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ---- PAGE HEADER (list pages) ---- */
.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--heading);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.page-header h1::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--accent);
  margin-top: 0.6rem;
}

/* ---- SINGLE POST ---- */
.post-full { max-width: 680px; }

.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.post-header .post-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 900;
  color: var(--heading);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0.6rem 0 0.85rem;
}
.post-lead {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.65;
  font-style: italic;
}

/* ---- POST BODY ---- */
.post-body { font-size: 1rem; line-height: 1.85; }

.post-body h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin: 2.25rem 0 0.6rem;
  line-height: 1.25;
}
.post-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin: 1.75rem 0 0.4rem;
}
.post-body p { margin-bottom: 1.2rem; }

.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-body a:hover { color: var(--heading); }
.post-body strong { color: var(--heading); font-weight: 700; }

.post-body ul, .post-body ol {
  margin: 0.4rem 0 1.2rem 1.25rem;
}
.post-body li { margin-bottom: 0.35rem; }
.post-body li::marker { color: var(--accent); }

.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.7rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--bg-surface);
  border-radius: 0 4px 4px 0;
  color: var(--text-dim);
  font-style: italic;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.25rem 0;
}

/* Code */
.post-body code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: var(--code-bg);
  color: #e8bf6a;
  padding: 0.15em 0.45em;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.post-body pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.1rem 1.4rem;
  overflow-x: auto;
  margin: 1.4rem 0;
  line-height: 1.6;
}
.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  font-size: 0.875rem;
}
.highlight {
  margin: 1.4rem 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.highlight pre { margin: 0; border: none; border-radius: 0; }

/* ---- POST FOOTER ---- */
.post-footer {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.back-link {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.back-link:hover { color: var(--accent); }

/* ---- SITE FOOTER ---- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-left: var(--sidebar-w);
}
.footer-inner {
  padding: 1.25rem 3rem;
}
.site-footer span {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ---- MISC ---- */
.empty-state { color: var(--text-dim); font-style: italic; }

/* ---- RESPONSIVE ---- */
@media (max-width: 700px) {
  .layout { flex-direction: column; }

  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 1.25rem 1.25rem;
    gap: 1rem;
  }
  .avatar { width: 48px; height: 48px; }
  .profile-bio { display: none; }
  .sidebar-nav { flex-direction: row; gap: 1rem; }
  .sidebar-social { margin-left: auto; }

  .main-content { padding: 2rem 1.25rem 4rem; }
  .site-footer { margin-left: 0; }
}
