/* ========================================
   BENJAMINWINKELMAN.NET
   Dark Glass - Sharp Edition
   ======================================== */

:root {
  --bg-deep: #030304;
  --bg-dark: #08080a;
  --bg-surface: #0e0e12;
  --bg-elevated: #15151a;
  --bg-hover: #1c1c22;

  --glass-bg: rgba(120, 100, 180, 0.015);
  --glass-border: rgba(140, 120, 200, 0.06);
  --glass-highlight: rgba(140, 120, 200, 0.025);
  --glass-shadow: rgba(0, 0, 0, 0.7);
  --glass-blur: 20px;

  --text-primary: #c8c4d0;
  --text-secondary: #7a7585;
  --text-muted: #35323d;

  --accent: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.3);
  --accent-soft: rgba(139, 92, 246, 0.07);
  --accent-bright: #c4b5fd;

  --green: #34d399;
  --yellow: #fbbf24;
  --teal: #2dd4bf;
  --red: #f87171;

  --sidebar-width: 250px;
  --topbar-height: 50px;
  --radius: 4px;
  --radius-sm: 3px;
  --radius-xs: 2px;
  --radius-card: 2px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.12s ease;

  --font-scale: 1;
  --page-hue: 0;
  --page-sat: 0%;
  --text-hue: 0;
  --text-sat: 0%;
  --text-light: 85%;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: calc(15px * var(--font-scale));
  scroll-behavior: smooth;
  scroll-padding-top: 62px;
}

body {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'JetBrains Mono', 'Consolas', monospace;
  background: var(--bg-deep);
  color: hsl(var(--text-hue), var(--text-sat), var(--text-light));
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 100% 70% at 10% 5%, hsla(var(--page-hue), var(--page-sat), 35%, 0.035), transparent 50%),
    radial-gradient(ellipse 80% 60% at 90% 90%, hsla(calc(var(--page-hue) + 50), var(--page-sat), 35%, 0.02), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
input, textarea, select { border: none; background: none; font: inherit; color: inherit; outline: none; }

/* ========================================
   GLASS CARD - SHARP
   ======================================== */

.glass-card {
  background: linear-gradient(
    168deg,
    rgba(255, 255, 255, 0.025) 0%,
    rgba(255, 255, 255, 0.008) 100%
  );
  backdrop-filter: blur(var(--glass-blur)) saturate(1.1);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03) inset,
    0 12px 40px -8px var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 30%,
    rgba(255, 255, 255, 0.06) 70%,
    transparent 100%
  );
  z-index: 1;
}

/* ========================================
   SIDEBAR - SHARP
   ======================================== */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
  transform: translateX(0);
}

.sidebar.hidden { transform: translateX(-100%); }

.sidebar.collapsed {
  width: 52px;
  overflow: hidden;
}

.sidebar.collapsed .sidebar-title,
.sidebar.collapsed .sidebar-search,
.sidebar.collapsed .nav-section-label,
.sidebar.collapsed .nav-link span,
.sidebar.collapsed .sidebar-footer .nav-link span {
  display: none;
}

.sidebar.collapsed .sidebar-header {
  justify-content: center;
  padding: 14px 8px;
}

.sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 8px 0;
  border-left: none;
}

.sidebar.collapsed .nav-link:hover,
.sidebar.collapsed .nav-link.active {
  border-left: none;
}

.sidebar.collapsed .sidebar-footer .nav-link {
  justify-content: center;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar-logo {
  width: 24px;
  height: 24px;
  opacity: 0.6;
  cursor: pointer;
}

.sidebar-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 3px;
  flex: 1;
  color: var(--text-muted);
  text-transform: uppercase;
}

.sidebar-toggle {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.sidebar-toggle:hover { color: var(--text-secondary); }

.sidebar-search {
  padding: 10px 14px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  opacity: 0.5;
}

.search-input {
  width: 100%;
  padding: 7px 10px 7px 32px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.sidebar-nav::-webkit-scrollbar { width: 2px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.05); }

.nav-section-label {
  padding: 16px 16px 4px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-muted);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  position: relative;
  cursor: pointer;
  border-left: 2px solid transparent;
}

.nav-link img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.4;
  transition: opacity var(--transition-fast);
}

.nav-link span { flex: 1; }

.nav-link:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  border-left-color: rgba(255, 255, 255, 0.06);
}

.nav-link:hover img { opacity: 0.7; }

.nav-link.active {
  color: var(--accent-bright);
  background: var(--accent-soft);
  border-left-color: var(--accent);
}

.nav-link.active img { opacity: 1; }

.sidebar-footer {
  padding: 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar-open-btn {
  position: fixed;
  top: 8px;
  left: 8px;
  width: 34px;
  height: 34px;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  color: var(--text-muted);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
}

.sidebar-open-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-open-btn:hover {
  border-color: var(--accent);
  color: var(--text-secondary);
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  transition: margin-left var(--transition);
}

.sidebar.collapsed ~ .main-content {
  margin-left: 52px;
}

.main-content.expanded { margin-left: 0; }

/* ========================================
   TOP BAR
   ======================================== */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-height);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin: 0 -24px;
  padding: 0 20px 0 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.page-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.icon-btn:hover { color: var(--text-secondary); }

/* ========================================
   HERO
   ======================================== */

.hero-card {
  margin-top: 20px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 160px;
  background: linear-gradient(168deg, rgba(139, 92, 246, 0.03), transparent);
}

.hero-content { max-width: 500px; }

.hero-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.hero-content p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 8px; }

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.auth-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-options .divider {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  position: relative;
}

.auth-options .divider::before,
.auth-options .divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 16px);
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.auth-options .divider::before { left: 0; }
.auth-options .divider::after { right: 0; }

.btn-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ========================================
   SECTIONS
   ======================================== */

.section { margin-top: 40px; }

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-icon {
  width: 18px;
  height: 18px;
  opacity: 0.4;
}

.section-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.section-subtitle {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-left: auto;
}

.section-link {
  font-size: 0.74rem;
  color: var(--accent-bright);
  margin-left: auto;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.section-link:hover { color: var(--accent); }

.see-all-posts { text-align: center; padding: 8px 0; }

/* ========================================
   TOPIC CARDS
   ======================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.topic-card {
  padding: 20px;
  background: var(--bg-dark);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  border-radius: 0;
}

.topic-card:hover {
  background: var(--bg-surface);
}

.topic-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  margin-bottom: 12px;
}

.topic-icon img { width: 18px; height: 18px; }

.topic-card h3 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 5px;
  letter-spacing: 0.2px;
}

.topic-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================
   HARTFORD INTRO
   ======================================== */

.hartford-intro {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1px;
  background: linear-gradient(168deg, rgba(45, 212, 191, 0.03), transparent);
}

.hartford-intro-content { max-width: 560px; }

.hartford-intro-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.hartford-intro-content p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hartford-intro-art { flex-shrink: 0; margin-left: 20px; }
.hartford-icon { width: 48px; height: 48px; opacity: 0.08; }

/* ========================================
   OBSIDIAN VAULT
   ======================================== */

.vault-card { overflow: hidden; }

.vault-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.vault-toolbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.vault-toolbar-left img { width: 12px; height: 12px; opacity: 0.3; }
.vault-toolbar-right { display: flex; gap: 2px; }

.vault-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.vault-btn:hover { color: var(--text-secondary); }

.vault-frame { position: relative; width: 100%; height: 460px; }
.vault-frame iframe { width: 100%; height: 100%; border: none; display: block; }

.vault-placeholder {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(5, 5, 5, 0.8);
}

.vault-placeholder-icon { width: 36px; height: 36px; opacity: 0.1; }

.vault-placeholder h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.vault-placeholder p {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 360px;
  line-height: 1.6;
}

.vault-placeholder code {
  font-size: 0.74rem;
  color: var(--accent-bright);
  background: var(--bg-surface);
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* ========================================
   UPDATES FEED
   ======================================== */

.updates-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 1px;
  background: rgba(255, 255, 255, 0.03);
}

.updates-feed {
  display: flex;
  flex-direction: column;
}

.post-card {
  padding: 18px 20px;
  background: var(--bg-dark);
  border: none;
  border-radius: 0;
  transition: background var(--transition-fast);
}

.post-card:hover { background: var(--bg-surface); }

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.post-category {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
}

.post-category:hover { color: var(--accent); }
.post-category img { width: 12px; height: 12px; }

.post-header time {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.post-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.35;
  letter-spacing: -0.2px;
}

.post-card h3 a {
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.post-card h3 a:hover { color: var(--accent-bright); }

.post-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 10px;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-tags { display: flex; gap: 4px; flex-wrap: wrap; }

.post-tag {
  font-size: 0.62rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all var(--transition-fast);
}

.post-tag:hover {
  color: var(--accent-bright);
  border-color: rgba(99, 102, 241, 0.2);
}

.post-read-more {
  font-size: 0.74rem;
  color: var(--accent-bright);
  font-weight: 600;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.post-read-more:hover { color: var(--accent); }

/* Updates Sidebar */

.updates-sidebar {
  display: flex;
  flex-direction: column;
}

.sidebar-card {
  padding: 16px;
  background: var(--bg-dark);
  border: none;
  border-radius: 0;
}

.sidebar-card h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-card h3 img { width: 13px; height: 13px; opacity: 0.4; }

.focus-list li, .links-list li { padding: 5px 0; }

.focus-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.focus-list img { width: 13px; height: 13px; opacity: 0.4; flex-shrink: 0; }

.links-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 4px 6px;
  margin: -4px -6px;
  transition: all var(--transition-fast);
}

.links-list a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.links-list img { width: 13px; height: 13px; opacity: 0.4; flex-shrink: 0; }

/* ========================================
   POSTS LISTING
   ======================================== */

.posts-filters { margin-top: 16px; }

.filter-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar { display: none; }
.filter-row-secondary { justify-content: space-between; }

.filter-tabs { display: flex; gap: 2px; flex-wrap: nowrap; }

.filter-tab {
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-tab:hover { color: var(--text-secondary); }

.filter-tab.active {
  color: var(--accent-bright);
  border-color: rgba(99, 102, 241, 0.2);
  background: var(--accent-soft);
}

.filter-sort { display: flex; align-items: center; gap: 4px; }
.filter-label { font-size: 0.7rem; color: var(--text-muted); margin-right: 3px; }

.filter-pill {
  padding: 2px 10px;
  font-size: 0.68rem;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all var(--transition-fast);
}

.filter-pill:hover { color: var(--text-secondary); }

.filter-pill.active {
  color: var(--accent-bright);
  border-color: rgba(99, 102, 241, 0.2);
  background: var(--accent-soft);
}

.filter-count { font-size: 0.7rem; color: var(--text-muted); }

.active-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.1);
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.active-filter-bar strong { color: var(--accent-bright); }

.filter-clear {
  font-size: 0.72rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.filter-clear:hover { color: var(--text-secondary); }

.posts-grid {
  display: flex;
  flex-direction: column;
}

.no-posts {
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
}

/* ========================================
   SINGLE POST
   ======================================== */

.back-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.back-link:hover { color: var(--text-secondary); }

.post-full { margin-top: 20px; max-width: 720px; }
.post-full-header { margin-bottom: 20px; }

.post-full-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.post-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-bright);
  background: var(--accent-soft);
  padding: 3px 10px;
  border: 1px solid rgba(99, 102, 241, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-category-badge img { width: 12px; height: 12px; }

.post-full-meta time { font-size: 0.72rem; color: var(--text-muted); }

.post-full-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.post-full-excerpt {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
}

.post-full-tags { display: flex; gap: 4px; flex-wrap: wrap; }

.post-full-body {
  padding: 24px;
  line-height: 1.85;
  font-size: 0.88rem;
}

.post-full-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 22px 0 10px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-full-body p { margin-bottom: 14px; color: var(--text-secondary); }
.post-full-body p:first-child { margin-top: 0; }
.post-full-body p:last-child { margin-bottom: 0; }
.post-full-body strong { color: var(--text-primary); font-weight: 700; }

.post-full-body a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-full-body a:hover { color: var(--accent); }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.post-nav-prev, .post-nav-next {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 48%;
  transition: color var(--transition-fast);
}

.post-nav-next { text-align: right; margin-left: auto; }
.post-nav-prev:hover, .post-nav-next:hover { color: var(--accent-bright); }

/* ========================================
   SETTINGS PANEL
   ======================================== */

.settings-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.settings-overlay.open { opacity: 1; pointer-events: auto; }

.settings-panel {
  position: fixed;
  top: 0; right: 0;
  width: 300px;
  max-width: 90vw;
  height: 100vh;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(40px);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
}

.settings-panel.open { transform: translateX(0); }

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.settings-header h2 {
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.settings-close {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.settings-close:hover { color: var(--text-secondary); }

.settings-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.settings-group { margin-bottom: 22px; }

.settings-group-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.settings-label { font-size: 0.82rem; color: var(--text-secondary); }
.settings-value { font-size: 0.74rem; color: var(--text-muted); min-width: 40px; text-align: right; }

.settings-slider-wrap { width: 100%; margin-top: 6px; }

.settings-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 3px;
  background: var(--bg-surface);
  border-radius: 0;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.settings-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--accent);
  cursor: pointer;
}

.settings-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--accent);
  cursor: pointer;
  border: none;
  border-radius: 0;
}

.settings-swatches {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.settings-swatch {
  width: 26px;
  height: 26px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  border: 2px solid transparent;
}

.settings-swatch:hover { transform: scale(1.1); }

.settings-swatch.active {
  border-color: var(--accent-bright);
}

.settings-swatch.active::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  background: white;
}

.settings-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.settings-reset {
  width: 100%;
  padding: 7px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all var(--transition-fast);
  text-align: center;
}

.settings-reset:hover { color: var(--text-secondary); background: rgba(255, 255, 255, 0.02); }

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  margin-top: 48px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-contact { display: flex; align-items: center; gap: 6px; }
.footer-contact img { width: 13px; height: 13px; opacity: 0.3; }

.footer-contact a {
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-contact a:hover { color: var(--accent-bright); }

.footer-stance { display: flex; gap: 6px; flex-wrap: wrap; }

.stance-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(52, 211, 153, 0.04);
  border: 1px solid rgba(52, 211, 153, 0.1);
  padding: 3px 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.stance-badge img { width: 11px; height: 11px; }

.footer-copy { font-size: 0.7rem; color: var(--text-muted); }

.footer-legal {
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
}

.footer-legal a {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-legal a:hover { color: var(--accent-bright); }

/* ========================================
   POST CATEGORY BADGES (CARD)
   ======================================== */

.post-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent-bright);
  background: var(--accent-soft);
  padding: 2px 8px;
  border: 1px solid rgba(139, 92, 246, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-category-badge img { width: 11px; height: 11px; }

/* ========================================
   POST CARD HEADER REFINEMENT
   ======================================== */

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.post-header .post-category-badge {
  font-size: 0.6rem;
}

/* ========================================
   POST FULL - EXCERPT
   ======================================== */

.post-full-excerpt {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
}

/* ========================================
   CATEGORY FILTER TABS
   ======================================== */

.filter-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar { display: none; }

.filter-tabs { display: flex; gap: 2px; flex-wrap: nowrap; }

.filter-tab {
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-tab:hover { color: var(--text-secondary); }

.filter-tab.active {
  color: var(--accent-bright);
  border-color: rgba(139, 92, 246, 0.2);
  background: var(--accent-soft);
}

/* ========================================
   SCROLLBAR
   ======================================== */

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.05); }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.08); }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1100px) {
  .updates-layout { grid-template-columns: 1fr; }
  .updates-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-open-btn { opacity: 1; pointer-events: auto; }
  .main-content { margin-left: 0; }

  .hero-card { padding: 20px; }

  .hartford-intro { flex-direction: column; text-align: center; }
  .hartford-intro-art { display: none; }

  .updates-sidebar { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .footer-stance { flex-direction: column; align-items: center; }
}

/* ========================================
   SITE CLOSED
   ======================================== */

.site-closed {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--bg-dark);
}

.closed-card {
  text-align: center;
  padding: 60px 48px;
  max-width: 420px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.06);
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.closed-icon {
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
}

.closed-icon:hover {
  opacity: 1;
  transform: scale(1.05);
}

.closed-card h1 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  color: var(--text-primary);
}

.closed-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ========================================
   NAV BRAND
   ======================================== */

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
}

.nav-logo {
  opacity: 0.6;
}

.nav-title {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
}

/* ========================================
   LOGIN MODAL
   ======================================== */

.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-modal {
  width: 100%;
  max-width: 400px;
  padding: 0;
  overflow: hidden;
}

.login-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.login-modal-header h2 {
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-modal-body {
  padding: 20px;
}

.login-modal .form-group {
  margin-bottom: 12px;
}

.login-modal .form-group label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}

.login-modal .form-group input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s;
}

.login-modal .form-group input:focus {
  border-color: var(--accent);
}

.login-modal .error-msg {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.15);
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  font-size: 0.75rem;
  color: var(--red);
  margin-bottom: 12px;
  display: none;
}

.login-modal .error-msg.visible {
  display: block;
}

.login-modal .btn {
  width: 100%;
}

.login-modal .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
