/* === IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* === CSS VARIABLES === */
:root {
  --radius: 12px;
  --radius-sm: 6px;
  --transition: 200ms ease;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
  --shadow-hover: 0 4px 12px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.08);
  --accent: #4f9cf9;
  --accent-hover: #2f7de0;
  --danger: #f87171;
  --success: #4ade80;
  --sidebar-width: 280px;
  --content-max: 680px;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --masthead-height: 175px;
  --navbar-height: 42px;
}

/* Light theme */
:root[data-theme="light"] {
  --bg: #f0ece4;
  --bg-alt: #e8e4dc;
  --surface: #ffffff;
  --surface-alt: #f8f7f5;
  --border: #e2ddd6;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --text-faint: #a0a0a0;
  --badge-bg: #f0ece4;
  --code-bg: #1e1e2e;
  --code-text: #cdd6f4;
  --toggle-icon: '☀️';
}

/* Dark theme */
:root[data-theme="dark"] {
  --bg: #1a1a1b;
  --bg-alt: #111112;
  --surface: #272729;
  --surface-alt: #1e1e20;
  --border: #343536;
  --text: #d7dadc;
  --text-muted: #818384;
  --text-faint: #4a4a4b;
  --badge-bg: #1a1a1b;
  --code-bg: #0d0d0f;
  --code-text: #cdd6f4;
  --toggle-icon: '🌙';
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* === TOP BAR moderne === */
#topbar {
  background: #0f0f10;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: sticky;
  top: 0;
  z-index: 200;
}
#topbar::after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #a855f7, #ec4899);
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Gauche — date avec icône */
.topbar-left { flex-shrink: 0; }
.topbar-date {
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(255,255,255,.38);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-date::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.8); }
}

/* Centre — liens */
.topbar-nav { display: flex; align-items: center; }
.topbar-nav a {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  padding: 0 13px;
  height: 38px;
  display: flex;
  align-items: center;
  letter-spacing: .4px;
  position: relative;
  transition: color .2s;
}
.topbar-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--accent);
  transition: left .2s, right .2s;
  border-radius: 2px 2px 0 0;
}
.topbar-nav a:hover { color: #fff; }
.topbar-nav a:hover::after { left: 10%; right: 10%; }

/* Séparateurs nav */
.topbar-nav a + a { border-left: 1px solid rgba(255,255,255,.06); }

/* Droite */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Icônes sociales — cercle au hover */
.topbar-socials { display: flex; align-items: center; gap: 2px; }
.topbar-social-link {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.35);
  border-radius: 50%;
  transition: color .2s, background .2s, transform .2s;
  text-decoration: none;
  position: relative;
}
.topbar-social-link:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
  transform: translateY(-1px);
}

/* Séparateur vertical */
.topbar-sep {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,.1);
  margin: 0 4px;
  flex-shrink: 0;
}

/* Bouton recherche — pill */
.topbar-search { position: relative; display: flex; align-items: center; }
.topbar-search-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 26px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  color: rgba(255,255,255,.45);
  cursor: pointer;
  font-size: 11px;
  font-family: var(--font-body);
  letter-spacing: .3px;
  transition: all .2s;
  white-space: nowrap;
}
.topbar-search-btn:hover {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  border-color: rgba(255,255,255,.2);
}
.topbar-search-btn span { display: none; }
.topbar-search-btn kbd {
  display: none;
  font-size: 9px;
  padding: 1px 5px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
  color: rgba(255,255,255,.3);
  font-family: var(--font-body);
  margin-left: 2px;
}
@media (min-width: 900px) {
  .topbar-search-btn span { display: inline; }
  .topbar-search-btn kbd  { display: inline; }
}

/* Dropdown recherche */
.topbar-search-box {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: 280px;
  background: #0f0f10;
  border: 1px solid rgba(255,255,255,.1);
  border-top: 2px solid var(--accent);
  padding: 12px;
  border-radius: 0 0 10px 10px;
  display: none;
  z-index: 300;
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
  backdrop-filter: blur(12px);
}
.topbar-search-box.is-open {
  display: block;
  animation: fadeSlideDown .15s ease;
}
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.topbar-search-box .search-form { display: flex; gap: 8px; }
.topbar-search-box input[type="search"] {
  flex: 1;
  padding: 8px 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .2s;
}
.topbar-search-box input[type="search"]:focus { border-color: var(--accent); }
.topbar-search-box input[type="search"]::placeholder { color: rgba(255,255,255,.25); }
.topbar-search-box button[type="submit"] {
  padding: 8px 14px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background .2s;
}
.topbar-search-box button[type="submit"]:hover { background: var(--accent-hover); }

/* === TOGGLE DARK/LIGHT === */
#theme-toggle {
  position: relative;
  width: 70px;
  height: 28px;
  border-radius: 0%;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background var(--transition), border-color var(--transition);
  flex-shrink: 0;
  padding: 0;
  overflow: hidden;
}
#theme-toggle:hover { border-color: var(--accent); }

/* Icônes ☀️ et 🌙 dans le toggle rectangulaire */
.toggle-icons {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  pointer-events: none;
  z-index: 1;
}
.toggle-sun-icon  { font-size: 13px; transition: opacity .25s; }
.toggle-moon-icon { font-size: 13px; transition: opacity .25s; }

:root[data-theme="light"] .toggle-sun-icon  { opacity: 1; }
:root[data-theme="light"] .toggle-moon-icon { opacity: .3; }
:root[data-theme="dark"]  .toggle-sun-icon  { opacity: .3; }
:root[data-theme="dark"]  .toggle-moon-icon { opacity: 1; }

/* Curseur glissant — rectangle comme le bouton */
.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 20px;
  border-radius: 0;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(79,156,249,.4);
  transition: transform .35s cubic-bezier(.34,1.2,.64,1), background .3s;
  pointer-events: none;
  z-index: 2;
}

:root[data-theme="light"] .toggle-thumb {
  transform: translateX(0);
  background: #facc15;
  box-shadow: 0 0 8px rgba(250,204,21,.5);
}

:root[data-theme="dark"] .toggle-thumb {
  transform: translateX(36px);
  background: #4f9cf9;
  box-shadow: 0 0 8px rgba(79,156,249,.5);
}

/* Mobile */
@media (max-width: 640px) {
  .topbar-nav { display: none; }
  .topbar-date { display: none; }
}

/* === LAYOUT === */
#page { display: flex; flex-direction: column; min-height: 100vh; }

.site-inner {
  display: flex;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 24px;
  width: 100%;
  align-items: flex-start;
  /* Les tuiles remontent légèrement par-dessus le bas du logo */
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

#primary {
  flex: 1;
  min-width: 0;
  max-width: var(--content-max);
}

#secondary {
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: sticky;
  top: 16px;
}

/* === HEADER — fond identique au site, aucune séparation visuelle === */
#masthead {
  background: transparent;
  border: none;
  position: relative;
  z-index: 1; /* DERRIÈRE les tuiles (z-index: 2) */
}

/* Le header utilise le même conteneur que .site-inner
   pour que le logo s'aligne pile avec #primary */
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

/* === LOGO aligné avec #primary === */
.site-branding {
  flex: 1;
  max-width: var(--content-max);
  display: flex;
  align-items: flex-end;
}

.logo-link { display: inline-flex; align-items: flex-end; text-decoration: none; }

.site-logo-img {
  height: 250px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity var(--transition);
}

/* Dark mode : fond blanc du PNG masqué */
:root[data-theme="dark"] .site-logo-img {
  mix-blend-mode: screen;
  filter: brightness(1.05);
}
.logo-link:hover .site-logo-img { opacity: .8; }

.site-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

/* Toggle en haut à droite, dans l'espace de la sidebar */
.header-actions {
  width: var(--sidebar-width);
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 16px;
  flex-shrink: 0;
}

#theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background var(--transition), border-color var(--transition);
}
#theme-toggle:hover { background: var(--bg-alt); }

/* === SIDEBAR === */
.sidebar-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  transition: background var(--transition);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 3px solid var(--border);
}

.profile-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.profile-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.profile-stats {
  display: flex;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.stat { text-align: center; }
.stat-number { display: block; font-size: 16px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }

.sidebar-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-faint);
  margin-bottom: 12px;
}

/* Widget styles */
.widget { margin-bottom: 0; }
.widget ul { list-style: none; }
.widget ul li { padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text-muted); }
.widget ul li a:hover { color: var(--text); }
.widget_search .search-form { display: flex; gap: 8px; }
.widget_search input[type="search"] {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font-body);
}
.widget_search button {
  padding: 8px 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
}

/* === POST FEED === */
.posts-feed { display: flex; flex-direction: column; gap: 16px; }

/* === POST CARD BASE === */
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
}
.post-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }

.post-card-body { padding: 20px; }
.post-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Post type badge */
.post-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* Badge colors per format */
.format-standard .post-type-badge { background: rgba(79,156,249,.12); color: var(--accent); }
.format-image .post-type-badge, .format-gallery .post-type-badge { background: rgba(168,85,247,.12); color: #a855f7; }
.format-quote .post-type-badge { background: rgba(234,179,8,.12); color: #ca8a04; }
.format-link .post-type-badge { background: rgba(16,185,129,.12); color: #059669; }
.format-video .post-type-badge { background: rgba(239,68,68,.12); color: #dc2626; }
.format-audio .post-type-badge { background: rgba(249,115,22,.12); color: #ea580c; }
.format-chat .post-type-badge { background: rgba(14,165,233,.12); color: #0284c7; }
.format-aside .post-type-badge { background: rgba(99,102,241,.12); color: #6366f1; }

/* Post title */
.post-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.post-title a { color: var(--text); }
.post-title a:hover { color: var(--accent); }

/* Post excerpt */
.post-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* Post meta */
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-faint);
}
.post-meta a { color: var(--text-faint); }
.post-meta a:hover { color: var(--text-muted); }
.meta-dot::before { content: '·'; }

/* Tags */
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-link {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.tag-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Read more */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-top: 12px;
}
.read-more:hover { gap: 8px; }

/* === FORMAT: IMAGE === */
.post-cover-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.post-card.has-cover .post-card-body { padding-top: 16px; }

/* === FORMAT: GALLERY === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 4px;
}
.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  cursor: pointer;
  transition: opacity var(--transition);
}
.gallery-grid img:hover { opacity: .85; }

/* === FORMAT: QUOTE === */
.post-card.format-quote .post-card-body { padding: 28px; }
.quote-mark {
  font-size: 64px;
  line-height: .6;
  color: var(--accent);
  font-family: Georgia, serif;
  margin-bottom: 8px;
  display: block;
}
.quote-text {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  font-style: italic;
  margin-bottom: 16px;
}
.quote-source {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.quote-source::before { content: '—'; color: var(--text-faint); }

/* === FORMAT: LINK === */
.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 12px;
  transition: background var(--transition);
}
.link-card:hover { background: var(--bg); }
.link-favicon { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.link-info { min-width: 0; }
.link-title { font-weight: 600; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-url { font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-arrow { margin-left: auto; color: var(--text-faint); font-size: 18px; flex-shrink: 0; }

/* === FORMAT: VIDEO === */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}
.video-embed iframe,
.video-embed video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* === FORMAT: AUDIO === */
.audio-player {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.audio-cover {
  width: 56px; height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border);
}
.audio-info { flex: 1; min-width: 0; }
.audio-title { font-weight: 600; font-size: 14px; }
.audio-artist { font-size: 12px; color: var(--text-muted); }
.audio-player audio { width: 100%; margin-top: 6px; }

/* === FORMAT: CHAT === */
.chat-messages { display: flex; flex-direction: column; gap: 10px; }
.chat-message { display: flex; gap: 8px; }
.chat-message.is-me { flex-direction: row-reverse; }
.chat-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
}
.chat-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
}
.chat-message:not(.is-me) .chat-bubble { background: var(--bg-alt); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-message.is-me .chat-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-author { font-size: 11px; color: var(--text-faint); margin-bottom: 3px; font-weight: 500; }

/* === FORMAT: ASIDE (note rapide) === */
.post-card.format-aside .post-card-body { padding: 20px; }
.aside-content { font-size: 16px; color: var(--text); line-height: 1.6; border-left: 3px solid var(--accent); padding-left: 14px; }

/* === CODE BLOCK === */
.code-block {
  position: relative;
  background: var(--code-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.code-file-info { display: flex; align-items: center; gap: 10px; }
.code-filename { font-size: 12px; color: rgba(255,255,255,.6); font-family: var(--font-mono); }
.code-lang { font-size: 10px; color: rgba(255,255,255,.3); font-family: var(--font-mono); text-transform: uppercase; background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 3px; }
.copy-code-btn {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--transition);
}
.copy-code-btn:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); }
.code-block pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  color: var(--code-text);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

/* === POLL === */
.poll-widget { display: flex; flex-direction: column; gap: 10px; }
.poll-option {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition);
  user-select: none;
}
.poll-option:hover { border-color: var(--accent); }
.poll-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: rgba(79,156,249,.12);
  width: 0;
  transition: width 600ms ease;
}
.poll-option-inner { position: relative; display: flex; justify-content: space-between; font-size: 14px; }
.poll-pct { font-size: 12px; color: var(--text-muted); font-weight: 600; display: none; }
.voted .poll-pct { display: block; }
.voted .poll-option { cursor: default; }

/* === SINGLE POST === */
.single-post .post-card-body { padding: 28px; }
.single-post .post-title { font-size: 28px; margin-bottom: 16px; }
.entry-content h2 { font-size: 20px; font-weight: 700; margin: 24px 0 10px; }
.entry-content h3 { font-size: 17px; font-weight: 600; margin: 20px 0 8px; }
.entry-content ul, .entry-content ol { padding-left: 22px; margin-bottom: 1em; }
.entry-content li { margin-bottom: 4px; }
.entry-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 18px;
  margin: 16px 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-muted);
}
.entry-content pre {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 16px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 1em;
}
.entry-content code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--bg-alt);
  padding: 2px 5px;
  border-radius: 3px;
}
.entry-content pre code { background: transparent; padding: 0; }
.entry-content img { border-radius: var(--radius-sm); margin: 12px 0; }

/* === PAGINATION === */
.posts-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.posts-pagination a, .posts-pagination span {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  background: var(--surface);
  transition: all var(--transition);
}
.posts-pagination a:hover, .posts-pagination .current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* === NO POSTS === */
.no-posts { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.no-posts-icon { font-size: 48px; margin-bottom: 12px; }

/* === PAGE === */
.page-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.page-title { font-size: 26px; font-weight: 700; margin-bottom: 20px; }

/* === FOOTER === */
#colophon {
  margin-top: auto;
  padding: 24px 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  background: var(--surface);
}
#colophon a { color: var(--text-faint); }
#colophon a:hover { color: var(--text-muted); }

/* === COMMENTS === */
.comments-area { margin-top: 16px; }
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.comment .comment-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.comment-author { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.comment-content { font-size: 14px; color: var(--text-muted); }
.comment-form input, .comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  margin-bottom: 12px;
}
.comment-form input:focus, .comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.comment-form textarea { min-height: 100px; resize: vertical; }
.comment-form input[type="submit"] {
  width: auto;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.comment-form input[type="submit"]:hover { background: var(--accent-hover); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .site-inner { flex-direction: column; }
  #secondary { width: 100%; position: static; }
  #primary { max-width: 100%; }
  .quote-text { font-size: 18px; }
  .post-title { font-size: 17px; }
}
