:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --green-rgb: 0, 255, 65;
  --bg3: #1a1a1a;
  --blue: #60a5fa;
  --blue-rgb: 59, 130, 246;
  --orange: #f59e0b;
  --orange-rgb: 245, 158, 11;
  --purple: #a78bfa;
  --purple-rgb: 167, 139, 250;
  --red: #ef4444;
  --red-rgb: 239, 68, 68;
  --text: #e0e0e0;
  --text-dim: #888888;
  --green: #00ff41;
  --green-dim: #00cc33;
  --green-dark: #008822;
  --amber: #ffb000;
  --amber-dim: #cc8800;
  --cyan: #00ccff;
  --purple: #aa66ff;
  --red: #ff4444;
  --border: #2a2a2a;
  --scan: rgba(var(--green-rgb), 0.02);
}

[data-theme="light"] {
  --bg: #f5f5f5;
  --bg2: #ffffff;
  --bg3: #e8e8e8;
  --text: #1a1a1a;
  --text-dim: #666666;
  --green: #008822;
  --green-dim: #006622;
  --green-dark: #00cc33;
  --amber: #cc8800;
  --amber-dim: #aa6600;
  --cyan: #0088aa;
  --purple: #8844cc;
  --red: #cc3333;
  --border: #cccccc;
  --scan: rgba(0, 100, 30, 0.03);
}

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

html {
  scroll-padding-top: 0;
  scroll-behavior: smooth;
  }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, var(--scan) 2px, var(--scan) 4px);
  pointer-events: none;
  z-index: 9999;
}

/* Topbar */
#topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  height: 56px;
  gap: 8px;
  transition: background .3s, border-color .3s;
}

.topbar-logo {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(16px, 4vw, 20px);
  color: var(--green);
  letter-spacing: .15em;
  white-space: nowrap;
}

.topbar-logo span {
  color: var(--text-dim);
  font-size: clamp(9px, 2vw, 11px);
  margin-left: 8px;
  letter-spacing: .04em;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 8px);
  flex-wrap: nowrap;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: clamp(10px, 2.5vw, 12px);
  letter-spacing: .06em;
  padding: 6px 10px;
  border: 1px solid transparent;
  transition: all .2s;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--green);
  border-bottom: 1px solid var(--green-dark);
}

.dropdown { position: relative; }
.dropdown-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: clamp(10px, 2.5vw, 12px);
  letter-spacing: .06em;
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .2s;
}
.dropdown-btn:hover, .dropdown.open .dropdown-btn { color: var(--green); }
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all .2s;
  z-index: 1001;
}
.dropdown.open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.dropdown-item {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 11px;
  border-bottom: 1px solid rgba(26, 46, 29, .5);
  transition: background .2s;
}
.dropdown-item:hover {
  background: rgba(var(--green-rgb), .05);
  color: var(--green);
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item .ext {
  color: var(--text-dim);
  font-size: 9px;
  margin-left: 4px;
}

.auth-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  border: 1px solid var(--purple);
  padding: 4px 8px;
  background: rgba(170, 102, 255, .04);
  transition: all .2s;
  cursor: pointer;
  min-width: 70px;
}
.auth-btn:hover {
  background: rgba(170, 102, 255, .1);
  border-color: var(--purple);
}
.auth-btn.login {
  border-color: var(--amber-dim);
  background: rgba(255, 176, 0, .04);
}
.auth-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(10px, 2.5vw, 13px);
  color: var(--amber);
  letter-spacing: .06em;
}
.auth-hint {
  font-size: 8px;
  color: var(--amber-dim);
}
.auth-btn.user .auth-label { color: var(--purple); }
.auth-btn.user .user-info {
  font-size: 8px;
  color: var(--text-dim);
  margin-top: 1px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--green);
  font-size: 18px;
  padding: 6px;
  cursor: pointer;
  font-family: 'Share Tech Mono', monospace;
  border-radius: 4px;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 16px;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.theme-toggle:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(var(--green-rgb), .05);
}

/* Footer */
footer {
  padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 48px);
  background: var(--bg3);
  border-top: 1px solid var(--border);
  transition: background .3s, border-color .3s;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 40px);
  max-width: 1200px;
  margin: 0 auto;
}
.footer-col h4 {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--green);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  transition: color .3s, border-color .3s;
}
.footer-col ul { list-style: none; }
.footer-col li {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(26, 46, 29, .3);
  transition: border-color .3s;
}
.footer-col li:last-child { border-bottom: none; }
.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 10px;
  transition: color .2s;
  display: block;
  line-height: 1.5;
}
.footer-col a:hover { color: var(--green); }
.footer-col .rss-date {
  font-size: 9px;
  color: var(--text-dim);
  display: block;
  margin-top: 2px;
}
.footer-col .rss-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: var(--text-dim);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.footer-col .rss-meta a { color: var(--cyan); }
.footer-col .rss-loading { color: var(--text-dim); font-style: italic; }
.footer-col .rss-error { color: var(--red); font-size: 10px; }
.pagination {
  display: flex;
  gap: 4px;
  margin-top: 10px;
  justify-content: center;
}
.pagination button {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 4px 8px;
  font-size: 9px;
  cursor: pointer;
  border-radius: 3px;
  transition: all .2s;
}
.pagination button:hover {
  border-color: var(--green);
  color: var(--green);
}
.pagination button.active {
  background: var(--green);
  color: var(--bg);
  border-color: var(--green);
}
.stats-list { list-style:none; padding:0; margin:0; }
.stats-list li { display:flex; align-items:baseline; gap:8px; padding:6px 0; border-bottom:1px solid var(--border); font-size:12px; color:var(--text); }
.stats-list li:last-child { border-bottom:none; }
.stat-num { font-family:"Share Tech Mono",monospace; font-size:18px; font-weight:700; color:var(--green); min-width:36px; text-align:right; }
.stat-label { color:var(--text-dim); font-size:11px; }


/* ── Footer ── */
#footer { border-top: 1px solid var(--border); padding: 24px 32px; background: var(--bg2); width: 100%; max-width: 100%; box-sizing: border-box; }
.footer-bottom { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.footer-bottom-left { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); font-family: "Share Tech Mono", monospace; text-align: center; }
.footer-bottom-right { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; color: var(--text-dim); font-family: "Share Tech Mono", monospace; }
.footer-brand { display: flex; align-items: center; }
.footer-brand svg { height: 18px; width: auto; }
.footer-sep { color: var(--text-secondary); font-size: 12px; }
.footer-domain { color: var(--green); font-weight: 600; }
.footer-author { color: var(--text-dim); display: flex; align-items: center; gap: 3px; font-size: 13px; }
.footer-icon-heart { color: var(--red); display: inline; }
.footer-icon-coffee { color: var(--amber); display: inline; }
.footer-online { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 12px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; animation: pulse 2s infinite; }
.footer-clock { color: var(--text-muted); font-family: "Share Tech Mono", monospace; font-size: 13px; }
.footer-rss { color: var(--orange); display: flex; align-items: center; text-decoration: none; }
.footer-rss:hover { color: var(--amber); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@media (max-width: 640px) { .footer-bottom { flex-direction: row; text-align: center; } .footer-bottom-left, .footer-bottom-right { justify-content: center; } }


/* Buttons */
.btn-primary, .btn-secondary {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(11px, 2.5vw, 13px);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: clamp(8px, 1.5vw, 12px) clamp(16px, 3vw, 24px);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all .2s;
}
.btn-primary {
  color: var(--bg);
  background: var(--green);
  border: none;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.btn-primary:hover {
  background: var(--green-dim);
  box-shadow: 0 0 15px rgba(var(--green-rgb), .3);
  transform: translateY(-1px);
}
.btn-secondary {
  color: var(--green);
  background: transparent;
  border: 1px solid var(--green-dark);
}
.btn-secondary:hover {
  border-color: var(--green);
  background: rgba(var(--green-rgb), .05);
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(20px, 4vw, 40px);
}
.section-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(24px, 5vw, 36px);
  color: var(--green-dark);
  line-height: 1;
  transition: color .3s;
}
.section-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(18px, 4vw, 26px);
  color: var(--green);
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .3s;
}
.section-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
  transition: background .3s;
}

/* Shout Cards */
.shouts-grid, .shouts-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
  width: 100%;
}

/* Timeline layout for homepage */
.shouts-timeline {
  position: relative;
  width: 100%;
}
.shouts-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--green), rgba(0,255,65,.1));
  border-radius: 2px;
  transform: translateX(-50%);
}
.shouts-timeline 
.shout-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  will-change: transform, opacity, box-shadow;
}
.shout-card:hover {  transform: translateY(-4px);  box-shadow: 0 8px 28px rgba(0,0,0,.3);  transition: all .3s cubic-bezier(.4,0,.2,1);}
.shout-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.shout-card-header .shout-views {
  margin-left: auto;
}
.shout-type-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.shout-views {
  font-size: 10px;
  color: var(--text-dim);
  font-family: 'Share Tech Mono', monospace;
}
.shout-author {
  font-size: 11px;
  color: var(--green);
  font-weight: 500;
}
.shout-meta-sep {
  opacity: .3;
  font-size: 11px;
  color: var(--text-dim);
}
.shout-date {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
}
.shout-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.shout-excerpt {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shout-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.shout-tag {
  display: inline-flex;
  padding: 2px 6px;
  font-size: 9px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-dim);
  transition: all .2s;
}
.shout-tag:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(var(--green-rgb), .05);
}
.shout-card .post-img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 4px;
  max-height: 200px;
  object-fit: cover;
}

.shout-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.post-type-badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.post-type-badge[data-type="tutorial"] {
  color: var(--amber);
  background: rgba(255, 176, 0, .15);
  border: 1px solid var(--amber-dim);
}
.post-type-badge[data-type="blog"] {
  color: var(--green);
  background: rgba(var(--green-rgb), .1);
  border: 1px solid var(--green-dark);
}
.post-type-badge[data-type="shout"] {
  color: var(--cyan);
  background: rgba(0, 204, 255, .1);
  border: 1px solid rgba(0, 204, 255, .3);
}
.post-type-badge[data-type="opinion"] {
  color: var(--purple);
  background: rgba(170, 102, 255, .1);
  border: 1px solid rgba(170, 102, 255, .3);
}
.shout-meta {
  margin-left: auto;
  display: flex;
  gap: 10px;
  color: var(--text-dim);
  font-size: 10px;
  align-items: center;
}
.post-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.shout-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(15px, 3vw, 19px);
  color: var(--green);
  margin-bottom: 8px;
  line-height: 1.3;
  transition: color .3s;
}
.shout-excerpt {
  font-size: clamp(12px, 2.5vw, 13px);
  color: var(--text-dim);
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 6px;
  transition: color .3s;
}
.shout-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  transition: border-color .3s;
}
.shout-tag {
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 3px 8px;
  font-size: 9px;
  border-radius: 4px;
  transition: all .2s;
  white-space: nowrap;
}
.shout-tag:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(var(--green-rgb), .05);
}

/* Single Post Layout - Two Column */
.single-post-layout {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.single-post-main {
  flex: 2;
  min-width: 0;
  min-width: 250px;
}
.single-post-sidebar {
  flex: 1;
  min-width: 250px;
}
.sidebar-widget {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 12px;
}
.sidebar-widget h3 {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--green);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.sidebar-widget ul {
  list-style: none;
}
.sidebar-widget li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(26, 46, 29, .3);
}
.sidebar-widget li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.sidebar-widget a {
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  transition: color .2s;
  display: block;
}
.sidebar-widget a:hover {
  color: var(--green);
}
.sidebar-widget .meta {
  font-size: 10px;
  color: var(--text-dim);
  display: block;
  margin-top: 4px;
}
.sidebar-widget .stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
}
.sidebar-widget .stat-label {
  color: var(--text-dim);
}
.sidebar-widget .stat-value {
  color: var(--green);
  font-family: 'Share Tech Mono', monospace;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--green);
  text-decoration: none;
  font-size: 12px;
  padding: 8px 16px;
  border: 1px solid var(--green);
  border-radius: 4px;
  transition: all .2s;
}
.back-btn:hover {
  background: rgba(var(--green-rgb), .1);
  transform: translateX(-4px);
}
.single-header {
  margin-bottom: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.single-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(24px, 5vw, 36px);
  color: var(--green);
  margin-bottom: 6px;
  line-height: 1.2;
}
.single-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 12px;
}
.single-content {
  line-height: 1.85;
  font-size: clamp(14px, 3vw, 15px);
  color: var(--text);
  padding-bottom: 40px;
}
.single-content p { margin: 0 0 20px; }
.single-content h1, .single-content h2, .single-content h3, .single-content h4 {
  color: var(--green);
  margin: 24px 0 12px;
  font-family: 'Share Tech Mono', monospace;
  line-height: 1.3;
}
.single-content h1 { font-size: clamp(22px, 4vw, 28px); border-bottom: 1px solid var(--border); padding-bottom: 8px; margin: 40px 0 16px; }
.single-content h2 { font-size: clamp(20px, 3.5vw, 24px); margin: 40px 0 16px; }
.single-content h3 { font-size: clamp(18px, 3vw, 20px); margin: 36px 0 14px; }
.single-content h4 { font-size: clamp(16px, 2.5vw, 18px); color: var(--cyan); margin: 32px 0 12px; }
.single-content a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px dashed var(--cyan);
}
.single-content a:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}
.single-content code {
  background: var(--bg2);
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--amber);
  font-family: 'IBM Plex Mono', monospace;
}
.single-content pre {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 16px;
  overflow-x: auto;
  border-radius: 6px;
  margin: 16px 0;
}
.single-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  line-height: 1.7;
  font-size: 13px;
}
.single-content ul, .single-content ol { padding-left: 24px; margin-bottom: 6px; }
.single-content li { margin-bottom: 8px; }
.single-content blockquote {
  border-left: 3px solid var(--green-dark);
  padding-left: 16px;
  margin: 20px 0;
  color: var(--text-dim);
  font-style: italic;
  background: rgba(var(--green-rgb), .03);
  padding: 12px 16px;
  border-radius: 0 4px 4px 0;
}
.single-content img {
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin: 24px auto;
  display: block;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.single-tags {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.single-tags span {
  display: inline-block;
  padding: 3px 8px;
  font-size: 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  margin: 2px;
  color: var(--text-dim);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 20px 0;
}
.page-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(var(--green-rgb), .05);
}
.page-btn.active {
  background: var(--green);
  color: var(--bg);
  border-color: var(--green);
}
.page-btn:disabled { opacity: .3; cursor: not-allowed; }
.page-info {
  font-size: 11px;
  color: var(--text-dim);
  margin: 0 8px;
}

/* ============================================
   PRISM.JS SYNTAX HIGHLIGHTING
   ============================================ */
pre[class*="language-"], code[class*="language-"] {
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  background: var(--bg2) !important;
  color: var(--text) !important;
}

pre[class*="language-"] {
  background: var(--bg2) !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  padding: 16px !important;
  margin: 16px 0 !important;
  overflow-x: auto !important;
  white-space: pre !important;
  word-wrap: normal !important;
}

code[class*="language-"] {
  background: transparent !important;
  white-space: pre !important;
}

/* Prism Toolbar */
.code-toolbar {
  position: relative !important;
  margin: 16px 0 !important;
}

.code-toolbar .toolbar {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  z-index: 10 !important;
  display: flex !important;
  gap: 4px !important;
  opacity: 0 !important;
  transition: opacity .2s !important;
}

pre:hover .toolbar,
.code-toolbar:hover .toolbar {
  opacity: 1 !important;
}

.code-toolbar .toolbar-item button,
div.code-toolbar > .toolbar > .toolbar-item > button,
div.code-toolbar > .toolbar > .toolbar-item > a,
div.code-toolbar > .toolbar > .toolbar-item > span {
  background: var(--bg3) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-dim) !important;
  padding: 4px 12px !important;
  font-size: 10px !important;
  font-family: 'IBM Plex Mono', monospace !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: all .2s !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  box-shadow: none !important;
}

div.code-toolbar > .toolbar > .toolbar-item > button:hover,
div.code-toolbar > .toolbar > .toolbar-item > a:hover,
div.code-toolbar > .toolbar > .toolbar-item > span:hover {
  background: var(--green) !important;
  color: var(--bg) !important;
  border-color: var(--green) !important;
}

/* Line Numbers */
.line-numbers .line-numbers-rows {
  border-right: 1px solid var(--border) !important;
  padding-right: 8px !important;
  margin-right: 8px !important;
  color: var(--text-dim) !important;
  font-size: 11px !important;
  user-select: none !important;
}

/* Token Colors */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: var(--text-dim) !important;
  font-style: italic !important;
}

.token.punctuation {
  color: var(--text) !important;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
  color: var(--cyan) !important;
}

.token.boolean,
.token.number {
  color: var(--amber) !important;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: var(--green) !important;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: var(--purple) !important;
}

.token.atrule,
.token.attr-value,
.token.keyword,
.token.function,
.token.class-name {
  color: var(--green) !important;
  font-weight: 500 !important;
}

.token.regex,
.token.important,
.token.variable {
  color: var(--amber) !important;
}

.token.important,
.token.bold {
  font-weight: bold !important;
}

.token.italic {
  font-style: italic !important;
}

.token.entity {
  cursor: help !important;
}

/* ============================================
   RESPONSIVE LAYOUT
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .topbar-nav {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
    gap: 2px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
    z-index: 999;
  }
  
  .topbar-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-link {
    padding: 12px 20px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    white-space: normal;
  }
  
  .dropdown {
    width: 100%;
  }
  
  .dropdown-btn {
    padding: 12px 20px;
    width: 100%;
    justify-content: space-between;
  }
  
  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
    transform: none;
    opacity: 0;
    display: none;
  }
  
  .dropdown.open .dropdown-menu {
    display: block;
    opacity: 1;
    transform: none;
  }
  
  .dropdown-item {
    padding: 10px 20px 10px 35px;
  }
  
  .auth-btn {
    margin: 8px 16px;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
  }
  
  .theme-toggle {
    margin: 8px 16px;
    width: auto;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .single-post-layout {
    flex-direction: column;
  }
  
  .single-post-sidebar {
    order: 2;
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  .contact-layout {
    grid-template-columns: 1fr !important;
  }
  
  .about-layout {
    grid-template-columns: 1fr !important;
  }
  
  .hero-layout {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }
  
  .hero-content {
    text-align: center !important;
  }
  
  .hero-ctas {
    justify-content: center !important;
  }
  
  .section-header {
    flex-wrap: wrap;
  }
  
  .shouts-grid, .shouts-preview-grid {
    grid-template-columns: 1fr;
  }
  
  .chat-container {
    flex-direction: column !important;
    padding: calc(56px + 24px) 16px 40px !important;
  }
  
  .chat-sidebar {
    max-width: 100% !important;
    min-width: auto !important;
  }
  
  .message-content {
    max-width: 85% !important;
  }
  
  .chat-messages {
    max-height: 50vh !important;
  }
  
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
  
  .form-grid {
    grid-template-columns: 1fr !important;
  }
  
  #adminSidebar {
    width: 50px !important;
  }
  
  #adminSidebar .sidebar-link span:not(.icon) {
    display: none !important;
  }
  
  #adminSidebar .sidebar-link {
    justify-content: center !important;
    padding: 10px !important;
  }
  
  #adminMain {
    margin-left: 50px !important;
    padding: 20px !important;
  }
  
  .backup-grid {
    grid-template-columns: 1fr !important;
  }
  
  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .data-table th,
  .data-table td {
    padding: 8px 6px !important;
    font-size: 9px !important;
  }
}

@media (max-width: 480px) {
  .topbar-logo {
    font-size: 12px;
  }
  
  .topbar-logo span {
    display: none;
  }
  
  .section-title {
    font-size: 14px;
  }
  
  .section-num {
    font-size: 20px;
  }
  
  .shout-title {
    font-size: 14px;
  }
  
  .shout-excerpt {
    font-size: 11px;
  }
  
  .single-title {
    font-size: 20px;
  }
  
  .single-meta {
    font-size: 10px;
    gap: 8px;
  }
  
  .single-content {
    font-size: 13px;
  }
  
  .btn-primary, .btn-secondary {
    padding: 8px 16px;
    font-size: 10px;
  }
}

/* Post content: tables */
.single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 13px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.single-content thead {
  background: rgba(var(--green-rgb), .08);
}
.single-content th {
  padding: 12px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--green);
  border-bottom: 1px solid var(--border);
  font-family: 'Share Tech Mono', monospace;
}
.single-content td {
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  color: var(--text);
  line-height: 1.6;
}
.single-content tbody tr:nth-child(even) {
  background: rgba(255,255,255,.02);
}
.single-content tbody tr:hover {
  background: rgba(var(--green-rgb), .03);
}
.single-content tbody tr:last-child td {
  border-bottom: none;
}

/* Post content: Recursos section */

/* Better code blocks */
.single-content pre {
  position: relative;
}
.single-content pre::before {
  content: attr(data-lang);
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 9px;
  font-family: 'Share Tech Mono', monospace;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .5;
}

/* ============================================
   Layout Option 1 — Masonry/Grid Assimétrico
   Uso: class="shouts-masonry"
   Card #1 em destaque (2 colunas), #2+#3 lado a lado, #4 largo
   ============================================ */
.shouts-masonry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
}
.shouts-masonry .shout-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.shouts-masonry .shout-card::before {
  content: attr(data-number);
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,255,65,.1);
  border: 1px solid rgba(0,255,65,.3);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  font-family: 'Share Tech Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.shouts-masonry .shout-card:first-child {
  grid-column: 1 / -1;
  padding: 28px;
}
.shouts-masonry .shout-card:first-child .shout-title {
  font-size: 20px;
}
.shouts-masonry .shout-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,255,65,.1);
}
.shouts-masonry .shout-card:hover::before {
  background: var(--green);
  color: #000;
  transform: scale(1.1);
}
.shouts-masonry .shout-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.shouts-masonry .shout-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.shouts-masonry .shout-author { color: var(--green); font-weight: 500; }
.shouts-masonry .shout-sep { opacity: .3; }
.shouts-masonry .shout-date { font-family: 'Share Tech Mono', monospace; font-size: 10px; }
.shouts-masonry .shout-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  transition: color .3s;
}
.shouts-masonry .shouts-masonry .shout-excerpt {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 12px;
}
.shouts-masonry .shout-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.shouts-masonry .shout-tag {
  padding: 2px 8px;
  font-size: 9px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-dim);
  transition: all .2s;
}
.shouts-masonry .shout-tag:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(0,255,65,.05);
}
.shouts-masonry .shout-card .post-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
  max-height: 200px;
  object-fit: cover;
}
@media (max-width: 768px) {
  .shouts-masonry { grid-template-columns: 1fr; }
  .shouts-masonry .shout-card:first-child { grid-column: 1; }
}

/* ============================================
   Layout Option 2 — Spotlight / Editorial
   Uso: class="shouts-spotlight"
   Card #1 featured (full width), #2-#4 em grid
   ============================================ */
.shouts-spotlight {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}
.shouts-spotlight .shout-card:first-child {
  background: linear-gradient(135deg, var(--bg2), rgba(0,255,65,.04));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  cursor: pointer;
  transition: all .3s ease;
  position: relative;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.shouts-spotlight .shout-card:first-child .shout-title {
  font-size: 22px;
  line-height: 1.3;
}
.shouts-spotlight .shout-card:first-child .shout-excerpt {
  -webkit-line-clamp: 4;
  font-size: 13px;
}
.shouts-spotlight .shout-card:first-child .post-img {
  width: 240px;
  min-width: 240px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
}
.shouts-spotlight .shout-card:not(:first-child) {
  flex: 0 0 calc(33.33% - 14px);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all .3s ease;
  box-sizing: border-box;
}
.shouts-spotlight .shout-card:not(:first-child) .shout-title {
  font-size: 14px;
}
.shouts-spotlight .shout-card:not(:first-child) .shout-excerpt {
  -webkit-line-clamp: 1;
}
.shouts-spotlight .shout-card:not(:first-child) .post-img {
  display: none;
}
.shouts-spotlight .shout-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,255,65,.08);
}
.shouts-spotlight .shout-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.shouts-spotlight .shout-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.shouts-spotlight .shout-author { color: var(--green); font-weight: 500; }
.shouts-spotlight .shout-sep { opacity: .3; }
.shouts-spotlight .shout-date { font-family: 'Share Tech Mono', monospace; font-size: 10px; }
.shouts-spotlight .shout-title {
  margin: 0 0 6px;
  color: var(--text);
  line-height: 1.4;
}
.shouts-spotlight .shout-excerpt {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 10px;
}
.shouts-spotlight .shout-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.shouts-spotlight .shout-tag {
  padding: 2px 8px;
  font-size: 9px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-dim);
  transition: all .2s;
}
.shouts-spotlight .shout-tag:hover {
  border-color: var(--green);
  color: var(--green);
}

.shouts-spotlight .shout-card:not(:first-child):last-child {
  margin-right: 0;
}
.shouts-spotlight .shout-card:not(:first-child) .shout-card-header .shout-views {
  display: none;
}
@media (max-width: 900px) {
  .shouts-spotlight .shout-card:first-child { flex-direction: column; }
  .shouts-spotlight .shout-card:first-child .post-img { width: 100%; min-width: auto; }
  .shouts-spotlight .shout-card:not(:first-child) { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 600px) {
  .shouts-spotlight .shout-card:not(:first-child) { flex: 0 0 100%; }
}

/* ============================================
   Layout Option 3 — Carousel / Horizontal Scroll
   Uso: class="shouts-carousel"
   4 cards em scroll horizontal com snap
   ============================================ */
.shouts-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--green) var(--border);
  width: 100%;
}
.shouts-carousel::-webkit-scrollbar {
  height: 4px;
}
.shouts-carousel::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 2px;
}
.shouts-carousel::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 2px;
}
.shouts-carousel .shout-card {
  min-width: 280px;
  max-width: 320px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all .3s ease;
  position: relative;
}
.shouts-carousel .shout-card::before {
  content: attr(data-number);
  position: absolute;
  top: -8px;
  left: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Share Tech Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,255,65,.3);
}
.shouts-carousel .shout-card:hover {
  border-color: var(--green);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0,255,65,.12);
}
.shouts-carousel .shout-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-top: 8px;
}
.shouts-carousel .shout-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.shouts-carousel .shout-author { color: var(--green); font-weight: 500; }
.shouts-carousel .shout-sep { opacity: .3; }
.shouts-carousel .shout-date { font-family: 'Share Tech Mono', monospace; font-size: 10px; }
.shouts-carousel .shout-title {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
}
.shouts-carousel .shout-excerpt {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 12px;
}
.shouts-carousel .shout-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.shouts-carousel .shout-tag {
  padding: 2px 8px;
  font-size: 9px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-dim);
  transition: all .2s;
}
.shouts-carousel .shout-tag:hover {
  border-color: var(--green);
  color: var(--green);
}
@media (max-width: 768px) {
  .shouts-carousel .shout-card { min-width: 240px; }
}

/* ============================================
   OPCAO 1 — Timeline Classic (zigzag)
   Classe: .tl-classic
   Barra central, cards alternam L/R
   ============================================ */
.shouts-timeline.tl-classic {
  position: relative;
  width: 100%;
}
.shouts-timeline.tl-classic::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green), rgba(0,255,65,.1));
  transform: translateX(-50%);
}
.shouts-timeline.tl-classic .shout-card {
  position: relative;
  width: calc(50% - 40px);
  padding: 14px 16px 12px;
  margin-bottom: 6px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all .25s ease;
}
.shouts-timeline.tl-classic .shout-card:nth-child(odd) { margin-left: auto; }
.shouts-timeline.tl-classic .shout-card:nth-child(even) { margin-right: auto; margin-top: -28px; }
.shouts-timeline.tl-classic .shout-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,255,65,.08);
}
.shouts-timeline.tl-classic .shout-card::before {
  content: attr(data-number);
  position: absolute;
  top: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--green);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  font-family: 'Share Tech Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.shouts-timeline.tl-classic .shout-card:nth-child(odd)::before { left: -45px; }
.shouts-timeline.tl-classic .shout-card:nth-child(even)::before { right: -45px; }
.shouts-timeline.tl-classic .shout-card:nth-child(odd)::after {
  content: '';
  position: absolute;
  top: 25px;
  left: -20px;
  width: 20px;
  height: 2px;
  background: var(--green);
  opacity: .4;
}
.shouts-timeline.tl-classic .shout-card:nth-child(even)::after {
  content: '';
  position: absolute;
  top: 25px;
  right: -20px;
  width: 20px;
  height: 2px;
  background: var(--green);
  opacity: .4;
}
.shouts-timeline.tl-classic .tl-date {
  position: absolute;
  top: -8px;
  font-size: 8px;
  font-family: 'Share Tech Mono', monospace;
  background: var(--green);
  color: #000;
  padding: 1px 8px;
  font-weight: 700;
  z-index: 3;
  border-radius: 4px;
  letter-spacing: .04em;
  box-shadow: 0 2px 8px rgba(0,255,65,.2);
}
.shouts-timeline.tl-classic .shout-card:nth-child(odd) .tl-date { left: -10px; }
.shouts-timeline.tl-classic .shout-card:nth-child(even) .tl-date { right: -10px; }

/* ============================================
   OPCAO 2 — Timeline Modern (sobreposto)
   Classe: .tl-modern
   Cards sobrepostos, numero grande translucido no fundo
   ============================================ */
.shouts-timeline.tl-modern {
  position: relative;
  width: 100%;
}
.shouts-timeline.tl-modern::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0,255,65,.15);
  transform: translateX(-50%);
}
.shouts-timeline.tl-modern .shout-card {
  position: relative;
  width: calc(50% - 30px);
  padding: 16px 16px 12px;
  margin-bottom: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all .25s ease;
  overflow: hidden;
}
.shouts-timeline.tl-modern .shout-card:nth-child(odd) { margin-left: auto; margin-top: 0; }
.shouts-timeline.tl-modern .shout-card:nth-child(even) { margin-right: auto; margin-top: -50px; }
.shouts-timeline.tl-modern .shout-card:hover {
  border-color: var(--green);
  z-index: 5;
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.shouts-timeline.tl-modern .shout-card::before {
  content: attr(data-number);
  position: absolute;
  font-size: 64px;
  font-weight: 900;
  color: rgba(0,255,65,.04);
  font-family: 'Share Tech Mono', monospace;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
}
.shouts-timeline.tl-modern .shout-card:nth-child(odd)::before { bottom: -10px; right: -10px; }
.shouts-timeline.tl-modern .shout-card:nth-child(even)::before { bottom: -10px; left: -10px; }
.shouts-timeline.tl-modern .shout-card-header,
.shouts-timeline.tl-modern .shout-meta-row,
.shouts-timeline.tl-modern .shout-title,
.shouts-timeline.tl-modern .shout-excerpt,
.shouts-timeline.tl-modern .shout-tags { position: relative; z-index: 1; }
.shouts-timeline.tl-modern .tl-date {
  display: inline-block;
  font-size: 9px;
  font-family: 'Share Tech Mono', monospace;
  color: var(--green);
  font-weight: 600;
  margin-top: 6px;
}
.shouts-timeline.tl-modern 
/* ============================================
   OPCAO 3 — Timeline Compact (lado unico)
   Classe: .tl-compact
   Barra à esquerda, todos os cards à direita
   ============================================ */
.shouts-timeline.tl-compact {
  position: relative;
  width: 100%;
  padding-left: 30px;
}
.shouts-timeline.tl-compact::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--green), rgba(0,255,65,.05));
}
.shouts-timeline.tl-compact .shout-card {
  position: relative;
  width: 100%;
  padding: 16px 16px 12px 24px;
  margin-bottom: 8px;
  background: transparent;
  border: none;
  border-left: none;
  cursor: pointer;
  transition: all .2s ease;
}
.shouts-timeline.tl-compact .shout-card:hover {
  background: rgba(0,255,65,.03);
  border-radius: 8px;
}
.shouts-timeline.tl-compact .shout-card::before {
  content: attr(data-number);
  position: absolute;
  left: -28px;
  top: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--green);
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
  font-family: 'Share Tech Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.shouts-timeline.tl-compact .shout-card:hover::before {
  background: var(--green);
  color: #000;
}
.shouts-timeline.tl-compact .tl-date {
  position: absolute;
  left: -32px;
  top: 38px;
  font-size: 7px;
  font-family: 'Share Tech Mono', monospace;
  color: var(--text-dim);
  white-space: nowrap;
}
.shouts-timeline.tl-compact .shout-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.shouts-timeline.tl-compact .shout-type-badge {
  font-size: 8px;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.shouts-timeline.tl-compact .shout-views {
  font-size: 9px;
  color: var(--text-dim);
  margin-left: auto;
}
.shouts-timeline.tl-compact .shout-meta-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-dim);
  margin: 2px 0;
}
.shouts-timeline.tl-compact .shout-author { color: var(--green); }
.shouts-timeline.tl-compact .shout-title {
  margin: 4px 0 2px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--text);
}
.shouts-timeline.tl-compact .shout-excerpt {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.shouts-timeline.tl-compact .shout-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 4px;
}
.shouts-timeline.tl-compact .shout-tag {
  padding: 1px 6px;
  font-size: 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-dim);
}

/* Common responsive */
@media (max-width: 768px) {
  .shouts-timeline.tl-classic .shout-card { width: calc(100% - 50px); margin-left: 50px !important; margin-right: 0 !important; }
  .shouts-timeline.tl-classic .shout-card:nth-child(odd)::before,
  .shouts-timeline.tl-classic .shout-card:nth-child(even)::before { left: -40px; right: auto; }
  .shouts-timeline.tl-classic .shout-card:nth-child(odd)::after,
  .shouts-timeline.tl-classic .shout-card:nth-child(even)::after { left: -18px; right: auto; }
  .shouts-timeline.tl-classic .shout-card:nth-child(odd) .tl-date,
  .shouts-timeline.tl-classic .shout-card:nth-child(even) .tl-date { left: -24px; right: auto; }
  .shouts-timeline.tl-classic::before { left: 15px; transform: none; }
  
  .shouts-timeline.tl-modern .shout-card { width: calc(100% - 40px); margin-left: 40px !important; margin-right: 0 !important; }
  .shouts-timeline.tl-modern .shout-card:nth-child(even) { margin-top: 0; }
  .shouts-timeline.tl-modern::before { left: 10px; transform: none; }
  
  .shouts-timeline.tl-compact { padding-left: 20px; }
}


/* Circular Timeline */
.shouts-circular {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 0 10px;
}

.shouts-circular input[type="radio"] {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.shouts-circular .cards-container {
  --base-rotation: 0deg;
  --full-circle: 360deg;
  --radius: 300px;
  --duration: 400ms;
  --items: 8;
  --cards-container-size: calc(var(--radius) * 2);
  --label-offset: calc(var(--radius) * -1 - 8px);
  --label-size: 34px;
  --label-color: var(--text-dim);
  --label-color-hover: var(--green);
  --label-dot-size: 10px;

  width: var(--cards-container-size);
  height: var(--cards-container-size);
  margin: 0 auto;
  position: relative;
}

.shouts-circular .cards {
  position: absolute;
  inset: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(0,255,65,.12);
  transition: transform .5s ease-in-out var(--duration);
  list-style: none;
  margin: 0; padding: 0;
  box-shadow: 0 0 40px rgba(0,255,65,.03), inset 0 0 40px rgba(0,255,65,.03);
}

.shouts-circular .cards li {
  position: absolute;
  inset: 0;
  margin: 0; padding: 0;
  transform-origin: center;
  display: grid;
  place-content: center;
  transform: rotate(calc(var(--i) * 360deg / var(--items)));
  pointer-events: none;
}

.shouts-circular .cards li > label {
  position: absolute;
  inset: 0;
  margin: auto;
  transform: translateY(var(--label-offset));
  width: var(--label-size);
  height: var(--label-size);
  cursor: pointer;
  pointer-events: initial;
  text-align: center;
  color: var(--label-color);
  font-size: 9px;
  font-weight: 600;
  font-family: 'Share Tech Mono', monospace;
  transition: all .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  word-break: break-all;
  max-width: 60px;
}

.shouts-circular .cards li > label::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  translate: -50% 3px;
  width: var(--label-dot-size);
  height: var(--label-dot-size);
  border-radius: 50%;
  background: var(--label-color);
  transition: all .3s ease;
}

.shouts-circular .cards li > label {
  position: relative;
}

/* Custom tooltip */
.shouts-circular .cards li > label::after {
  content: attr(data-tip);
  position: absolute;
  top: auto;
  bottom: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg2);
  color: var(--text);
  font-size: 10px;
  font-family: 'Share Tech Mono', monospace;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 10;
}
.shouts-circular .cards li > label:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.shouts-circular .cards li > label:hover {
  color: var(--label-color-hover);
  transform: translateY(var(--label-offset)) scale(1.1);
}
.shouts-circular .cards li > label:hover::before {
  background: var(--label-color-hover);
  box-shadow: 0 0 8px rgba(0,255,65,.4);
}

/* Card central — aparece no meio do círculo */
.shouts-circular .cards li .card-content {
  position: absolute;
  left: 50%;
  top: 55%;
  width: min(380px, 75vw);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
  transition: opacity .4s ease, top .4s ease, border-color .4s ease;
  transform: translate(-50%, -50%) rotate(calc(var(--i) * -360deg / var(--items)));
}
.shouts-circular .card-content {
  /* Keep base styles for reference */
}
.shouts-circular li:has(input:checked) .card-content {
  opacity: 1;
  top: 50%;
  pointer-events: auto;
  border-color: rgba(0,255,65,.35);
  box-shadow: 0 8px 40px rgba(0,0,0,.4), 0 0 40px rgba(0,255,65,.06);
  transform: translate(-50%, -50%) rotate(calc(var(--i) * -360deg / var(--items)));
}

.shouts-circular .card-content .card-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: 'Share Tech Mono', monospace;
}

.shouts-circular .card-content h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
  line-height: 1.35;
}

.shouts-circular .card-content .card-meta {
  font-size: 10px;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-family: 'Share Tech Mono', monospace;
}
.shouts-circular .card-content .card-meta .author {
  color: var(--green);
}

.shouts-circular .card-content p {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.45;
}

.shouts-circular .card-content .card-tags {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
}
.shouts-circular .card-content .card-tag {
  padding: 2px 8px;
  font-size: 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-dim);
  transition: all .2s;
}
.shouts-circular .card-content .card-tag:hover {
  border-color: var(--green);
  color: var(--green);
}

/* Checked state — marcador ativo */
.shouts-circular li:has(input:checked) {
  --label-color: var(--green);
}
.shouts-circular li:has(input:checked) > label::before {
  background: var(--green);
  box-shadow: 0 0 10px rgba(0,255,65,.6);
  width: 10px;
  height: 10px;
}

.shouts-circular .cards:has(input:checked) {
  transform: rotate(calc(var(--base-rotation) - (var(--index) * var(--full-circle) / var(--items))));
}

/* nth-child rotations for up to 12 items */
.shouts-circular .cards:has(li:nth-child(1)>input:checked) { --index: 0; }
.shouts-circular .cards:has(li:nth-child(2)>input:checked) { --index: 1; }
.shouts-circular .cards:has(li:nth-child(3)>input:checked) { --index: 2; }
.shouts-circular .cards:has(li:nth-child(4)>input:checked) { --index: 3; }
.shouts-circular .cards:has(li:nth-child(5)>input:checked) { --index: 4; }
.shouts-circular .cards:has(li:nth-child(6)>input:checked) { --index: 5; }
.shouts-circular .cards:has(li:nth-child(7)>input:checked) { --index: 6; }
.shouts-circular .cards:has(li:nth-child(8)>input:checked) { --index: 7; }
.shouts-circular .cards:has(li:nth-child(9)>input:checked) { --index: 8; }
.shouts-circular .cards:has(li:nth-child(10)>input:checked) { --index: 9; }
.shouts-circular .cards:has(li:nth-child(11)>input:checked) { --index: 10; }
.shouts-circular .cards:has(li:nth-child(12)>input:checked) { --index: 11; }

/* Rotating hint */
.shouts-circular .rotate-hint {
  text-align: center;
  font-size: 9px;
  color: var(--text-dim);
  font-family: 'Share Tech Mono', monospace;
  opacity: .4;
  margin-top: 8px;
}

@media (max-width: 1024px) {
  .shouts-circular .cards-container { --radius: 220px; }
}
@media (max-width: 768px) {
  .shouts-circular .cards-container { --radius: 160px; }
  .shouts-circular .cards li .card-content {
    width: min(260px, 80vw);
    padding: 20px 16px;
  }
  .shouts-circular .cards li .card-content h3 { font-size: 14px; }
}
@media (max-width: 480px) {
  .shouts-circular .cards-container { --radius: 120px; }
  .shouts-circular .cards li > label { font-size: 8px; max-width: 40px; }
  .shouts-circular .cards li > label::after { display: none; }
}
/* Subtle top glow on footer */
#siteFooter::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--green-rgb), 0.15), transparent);
}

/* ============================================================
   FOOTER GRID
   ============================================================ */
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1.2fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-col-related {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-col-related {
    grid-column: auto;
  }
  #siteFooter {
    padding: 32px 16px 0;
  }
}

/* ============================================================
   FOOTER COLUMNS
   ============================================================ */
.footer-col {
  min-width: 0;
}

/* ============================================================
   FOOTER HEADING
   ============================================================ */
.footer-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', 'Share Tech Mono', monospace;
}

.footer-heading .heading-icon {
  color: var(--green);
  font-size: 10px;
}

/* ============================================================
   FOOTER LISTS (posts recentes + relacionados)
   ============================================================ */
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list-loading,
.footer-list-empty {
  padding: 12px 0;
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', 'Share Tech Mono', monospace;
  letter-spacing: 0.02em;
}

.footer-list-empty {
  color: var(--text-muted);
}

/* Post item */
.footer-post-item {
  padding: 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.2s;
}

.footer-post-item:last-child {
  border-bottom: none;
}

.footer-post-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 0;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  position: relative;
}

.footer-post-link::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--green);
  opacity: 0;
  transform: scaleY(0);
  transition: all 0.2s;
}

.footer-post-link:hover {
  color: var(--green);
  padding-left: 4px;
}

.footer-post-link:hover::before {
  opacity: 0.3;
  transform: scaleY(0.6);
}

.footer-post-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.2s;
}

.footer-post-date {
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', 'Share Tech Mono', monospace;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ============================================================
   PROJECTS — MINI-CARDS
   ============================================================ */
.footer-projects-wrapper {
  /* wrapper for scroll if needed */
}

.footer-projects-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Project mini-card */
.project-card {
  display: block;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
  pointer-events: none;
}

.project-card:hover {
  border-color: rgba(var(--green-rgb), 0.25);
  background: #0d0d18;
  transform: translateX(3px);
}

.project-card:hover::after {
  border-color: rgba(var(--green-rgb), 0.15);
}

/* Card header: icon + name + access badge */
.project-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.project-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.project-icon-fallback {
  color: var(--text-muted);
  font-size: 10px;
}

.project-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
}

.project-card:hover .project-name {
  color: var(--green);
}

/* Access badge */
.project-access {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', 'Share Tech Mono', monospace;
  line-height: 1.4;
}

.project-access-public {
  background: rgba(var(--green-rgb), 0.08);
  color: var(--green);
  border: 1px solid rgba(var(--green-rgb), 0.15);
}

.project-access-private {
  background: rgba(239, 68, 68, 0.08);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.project-access-external {
  background: rgba(0, 204, 255, 0.08);
  color: var(--cyan);
  border: 1px solid rgba(0, 204, 255, 0.15);
}

/* Description */
.project-desc {
  margin: 4px 0 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-right: 4px;
}

/* Tech badges */
.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.project-tech-badge {
  display: inline-block;
  padding: 1px 6px;
  font-size: 9px;
  font-weight: 600;
  font-family: 'JetBrains Mono', 'Share Tech Mono', monospace;
  letter-spacing: 0.02em;
  background: rgba(0, 204, 255, 0.06);
  color: var(--cyan);
  border: 1px solid rgba(0, 204, 255, 0.12);
  border-radius: 4px;
  line-height: 1.5;
  transition: all 0.2s;
}

.project-card:hover .project-tech-badge {
  border-color: rgba(0, 204, 255, 0.25);
}

.project-tech-more {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border-color: var(--border-subtle);
}

/* Maintenance badge */
.project-maint-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  font-size: 9px;
  font-weight: 600;
  font-family: 'JetBrains Mono', 'Share Tech Mono', monospace;
  color: var(--amber);
  letter-spacing: 0.03em;
}

/* ============================================================
   FOOTER BOTTOM
   ============================================================ */
.footer-bottom {
  margin-top: 0;
  padding: 0;
  border-top: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-dim);
  font-family: "Share Tech Mono", monospace;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-sep {
  color: var(--text-secondary);
  font-size: 12px;
}

.footer-domain {
  color: var(--green);
  font-weight: 600;
}

.footer-author {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
  font-family: "Share Tech Mono", monospace;
}

.footer-online {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 12px;
}

/* Status pulse dot */
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  animation: pulse 2s infinite;
}

.footer-clock {
  color: var(--text-muted);
  font-family: "Share Tech Mono", monospace;
  font-size: 13px;
}

.footer-rss {
  color: var(--orange);
  display: flex;
  align-items: center;
  text-decoration: none;
}
.footer-rss:hover {
  color: var(--amber);
}

.footer-icon-heart {
  color: var(--red);
  display: inline;
}
.footer-icon-coffee {
  color: var(--amber);
  display: inline;
}

/* ============================================================
   FOOTER RESPONSIVE (bottom)
   ============================================================ */
@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
  }

  .footer-bottom-right {
    justify-content: center;
  }

  .footer-bottom-left {
    font-size: 11px;
  }
}

/* ============================================================
   STAGGERED ENTRY ANIMATION
   ============================================================ */
#siteFooter {
  animation: footerFadeIn 0.6s ease-out;
}

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

.footer-post-item {
  animation: footerSlideIn 0.4s ease-out both;
}

.footer-post-item:nth-child(1) { animation-delay: 0.05s; }
.footer-post-item:nth-child(2) { animation-delay: 0.1s; }
.footer-post-item:nth-child(3) { animation-delay: 0.15s; }
.footer-post-item:nth-child(4) { animation-delay: 0.2s; }
.footer-post-item:nth-child(5) { animation-delay: 0.25s; }

.project-card {
  animation: footerSlideIn 0.4s ease-out both;
}

.project-card:nth-child(1) { animation-delay: 0.05s; }
.project-card:nth-child(2) { animation-delay: 0.1s; }
.project-card:nth-child(3) { animation-delay: 0.15s; }
.project-card:nth-child(4) { animation-delay: 0.2s; }
.project-card:nth-child(5) { animation-delay: 0.25s; }

@keyframes footerSlideIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* Projects pagination */

/* Enhanced projects pagination */
.project-pagination { display:flex; align-items:center; justify-content:center; gap:6px; margin-top:14px; padding-top:12px; border-top:1px solid var(--border); }
.proj-page-btn { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border:1px solid var(--border); border-radius:6px; background:var(--bg); color:var(--text-dim); cursor:pointer; font-size:12px; transition:all .2s ease; font-family:'IBM Plex Mono',monospace; }
.proj-page-btn:hover:not(:disabled) { border-color:var(--green); color:var(--green); background:rgba(0,255,65,.08); box-shadow:0 0 10px rgba(0,255,65,.12); transform:scale(1.05); }
.proj-page-btn:active:not(:disabled) { transform:scale(.95); }
.proj-page-btn:disabled { opacity:.2; cursor:default; }
.proj-page-info { font-size:11px; color:var(--text-dim); font-family:'Share Tech Mono',monospace; font-weight:500; padding:0 4px; letter-spacing:.04em; }
.project-card {
  display: block;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
  pointer-events: none;
}

.project-card:hover {
  border-color: rgba(var(--green-rgb), 0.25);
  background: #0d0d18;
  transform: translateX(3px);
}

.project-card:hover::after {
  border-color: rgba(var(--green-rgb), 0.15);
}

/* Card header: icon + name + access badge */
.project-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.project-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.project-icon-fallback {
  color: var(--text-muted);
  font-size: 10px;
}

.project-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
}

.project-card:hover .project-name {
  color: var(--green);
}

/* Access badge */
.project-access {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', 'Share Tech Mono', monospace;
  line-height: 1.4;
}

.project-access-public {
  background: rgba(var(--green-rgb), 0.08);
  color: var(--green);
  border: 1px solid rgba(var(--green-rgb), 0.15);
}

.project-access-private {
  background: rgba(239, 68, 68, 0.08);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.project-access-external {
  background: rgba(0, 204, 255, 0.08);
  color: var(--cyan);
  border: 1px solid rgba(0, 204, 255, 0.15);
}

/* Description */
.project-desc {
  margin: 4px 0 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-right: 4px;
}

/* Tech badges */
.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.project-tech-badge {
  display: inline-block;
  padding: 1px 6px;
  font-size: 9px;
  font-weight: 600;
  font-family: 'JetBrains Mono', 'Share Tech Mono', monospace;
  letter-spacing: 0.02em;
  background: rgba(0, 204, 255, 0.06);
  color: var(--cyan);
  border: 1px solid rgba(0, 204, 255, 0.12);
  border-radius: 4px;
  line-height: 1.5;
  transition: all 0.2s;
}

.project-card:hover .project-tech-badge {
  border-color: rgba(0, 204, 255, 0.25);
}

.project-tech-more {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border-color: var(--border-subtle);
}

/* Maintenance badge */
.project-maint-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  font-size: 9px;
  font-weight: 600;
  font-family: 'JetBrains Mono', 'Share Tech Mono', monospace;
  color: var(--amber);
  letter-spacing: 0.03em;
}

/* ============================================================
   POST MINI-CARD META (tipo + data)
   ============================================================ */
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.post-meta-date {
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', 'Share Tech Mono', monospace;
  letter-spacing: 0.02em;
}

/* Post type badge */
.post-type-badge {
  display: inline-block;
  padding: 1px 7px;
  font-size: 9px;
  font-weight: 700;
  font-family: 'JetBrains Mono', 'Share Tech Mono', monospace;
  letter-spacing: 0.03em;
  border-radius: 4px;
  line-height: 1.5;
  text-transform: uppercase;
  transition: all 0.2s;
}

.post-type-tutorial {
  background: rgba(var(--blue-rgb), 0.08);
  color: var(--blue);
  border: 1px solid rgba(var(--blue-rgb), 0.15);
}

.project-card:hover .post-type-tutorial {
  border-color: rgba(59, 130, 246, 0.3);
}

.post-type-blog {
  background: rgba(var(--green-rgb), 0.08);
  color: var(--green);
  border: 1px solid rgba(var(--green-rgb), 0.12);
}

.project-card:hover .post-type-blog {
  border-color: rgba(var(--green-rgb), 0.3);
}

.post-type-opiniao {
  background: rgba(249, 115, 22, 0.08);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.15);
}

.project-card:hover .post-type-opiniao {
  border-color: rgba(249, 115, 22, 0.3);
}

.post-type-shout {
  background: rgba(234, 179, 8, 0.08);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.15);
}

.project-card:hover .post-type-shout {
  border-color: rgba(234, 179, 8, 0.3);
}

/* ============================================================
   PAGINATION (◀ 1/N ▶) — partilhado entre colunas
   ============================================================ */
.post-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.proj-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
  font-family: 'JetBrains Mono', 'Share Tech Mono', monospace;
  line-height: 1;
  user-select: none;
}

.proj-page-btn:hover:not(:disabled) {
  border-color: var(--green);
  color: var(--green);
  background: rgba(var(--green-rgb), 0.08);
  box-shadow: 0 0 10px rgba(var(--green-rgb), 0.12);
  transform: scale(1.05);
}

.proj-page-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.proj-page-btn:disabled {
  opacity: 0.2;
  cursor: default;
}

.proj-page-info {
  font-size: 11px;
  color: var(--text-dim);
  font-family: 'Share Tech Mono', 'JetBrains Mono', monospace;
  font-weight: 500;
  padding: 0 6px;
  letter-spacing: 0.04em;
}

/* Staggered entry for post cards too */
.project-card {
  animation: footerSlideIn 0.4s ease-out both;
}

.project-card:nth-child(1) { animation-delay: 0.05s; }
.project-card:nth-child(2) { animation-delay: 0.1s; }
.project-card:nth-child(3) { animation-delay: 0.15s; }
.project-card:nth-child(4) { animation-delay: 0.2s; }
.project-card:nth-child(5) { animation-delay: 0.25s; }
.project-card:nth-child(6) { animation-delay: 0.3s; }
.project-card:nth-child(7) { animation-delay: 0.35s; }
.project-card:nth-child(8) { animation-delay: 0.4s; }

/* ============================================================
   FOOTER BOTTOM
   ============================================================ */
.footer-bottom {
  margin-top: 0;
  padding: 0;
  border-top: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-dim);
  font-family: "Share Tech Mono", monospace;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-sep {
  color: var(--text-secondary);
  font-size: 12px;
}

.footer-domain {
  color: var(--green);
  font-weight: 600;
}

.footer-author {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
  font-family: "Share Tech Mono", monospace;
}

.footer-online {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 12px;
}

/* Status pulse dot */
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  animation: pulse 2s infinite;
}

.footer-clock {
  color: var(--text-muted);
  font-family: "Share Tech Mono", monospace;
  font-size: 13px;
}

.footer-rss {
  color: var(--orange);
  display: flex;
  align-items: center;
  text-decoration: none;
}
.footer-rss:hover {
  color: var(--amber);
}

.footer-icon-heart {
  color: var(--red);
  display: inline;
}
.footer-icon-coffee {
  color: var(--amber);
  display: inline;
}

/* ============================================================
   FOOTER RESPONSIVE (bottom)
   ============================================================ */
@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
  }

  .footer-bottom-right {
    justify-content: center;
  }

  .footer-bottom-left {
    font-size: 11px;
  }
}

/* ============================================================
   STAGGERED ENTRY ANIMATION
   ============================================================ */
#siteFooter {
  animation: footerFadeIn 0.6s ease-out;
}

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

@keyframes footerSlideIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Post category badge in footer cards */
.post-cat-badge { font-size:8px; padding:1px 5px; border-radius:3px; background:rgba(0,204,255,.1); color:var(--cyan); border:1px solid rgba(0,204,255,.15); text-transform:uppercase; letter-spacing:.04em; font-weight:600; white-space:nowrap; }

/* Unified card heights - all footer columns same card size */
.footer-col .project-card { min-height:72px; display:flex; flex-direction:column; justify-content:center; align-items:normal; gap:0; padding:10px 14px; }
.footer-col .post-meta { margin-top:4px; }

/* Unified card sizes across all footer columns */
.footer-grid .project-card { min-height:88px; display:flex; flex-direction:column; justify-content:center; }
.footer-grid .project-card .project-desc { font-size:10px; color:var(--text-dim); line-height:1.35; margin:4px 0 0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.footer-grid .project-card .post-meta { margin-top:auto; padding-top:6px; }
.footer-grid .footer-col { display:flex; flex-direction:column; }
.footer-grid .footer-col .footer-projects-grid { flex:1; display:flex; flex-direction:column; gap:6px; }
.footer-grid .footer-col .post-pagination { margin-top:auto; }

/* Fixed card height for perfect alignment across all columns */
.footer-grid .footer-col .project-card { height:92px; min-height:92px; overflow:hidden; display:flex; flex-direction:column; justify-content:center; align-items:normal; gap:0; padding:10px 14px; margin:0; }
.footer-grid .footer-col .post-meta { margin-top:auto; padding-top:4px; flex-shrink:0; }
.footer-grid .footer-col .project-card .project-desc { -webkit-line-clamp:1; line-clamp:1; margin:2px 0 0; }
.footer-grid .footer-col .project-name { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Ensure all footer columns have same flex layout for consistent heights */
.footer-grid .footer-col { display:flex; flex-direction:column; min-height:350px; }
.footer-grid .footer-col .footer-projects-grid { flex:1; display:flex; flex-direction:column; gap:6px; }
.footer-grid .footer-col .post-pagination { margin-top:auto; }
.footer-grid .footer-col .footer-heading { flex-shrink:0; }

/* Footer unified - force same layout on ALL pages */
#siteFooter { width:100%; }
#siteFooter .footer-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:24px; max-width:1100px; margin:0 auto; padding:0 24px; }
#siteFooter .footer-col { display:flex; flex-direction:column; min-height:380px; }
#siteFooter .footer-col .footer-projects-grid { flex:1; display:flex; flex-direction:column; gap:6px; }
#siteFooter .footer-col .post-pagination { margin-top:auto; }
#siteFooter .footer-col .project-card { height:92px; min-height:92px; overflow:hidden; display:flex; flex-direction:column; justify-content:center; align-items:normal; gap:0; padding:10px 14px; margin:0; }
#siteFooter .footer-col .project-card .project-name { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#siteFooter .footer-col .project-card .project-desc { -webkit-line-clamp:1; line-clamp:1; margin:2px 0 0; font-size:10px; }
#siteFooter .footer-col .post-meta { margin-top:auto; padding:4px 0 0; background:none; border:none; border-radius:0; flex-shrink:0; }
#siteFooter .footer-col .footer-heading { flex-shrink:0; }
@media (max-width:900px) {
  #siteFooter .footer-grid { grid-template-columns:1fr 1fr; }
  #siteFooter .footer-col { min-height:auto; }
}
@media (max-width:640px) {
  #siteFooter .footer-grid { grid-template-columns:1fr; }
}

/* Force footer styles regardless of page context */
#siteFooter .post-meta,
#siteFooter .post-type-badge,
#siteFooter .post-cat-badge,
#siteFooter .meta-tag,
#siteFooter .meta-tags { all:unset; display:revert; }

#siteFooter .post-meta { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin:0; padding:4px 0 0; background:none; border:none; border-radius:0; }
#siteFooter .post-type-badge { font-size:8px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; padding:1px 5px; border-radius:3px; white-space:nowrap; }
#siteFooter .post-cat-badge { font-size:8px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; padding:1px 5px; border-radius:3px; white-space:nowrap; background:rgba(0,204,255,.1); color:var(--cyan); border:1px solid rgba(0,204,255,.15); }
#siteFooter .post-meta-date { font-size:9px; color:var(--text-dim); font-family:'Share Tech Mono',monospace; white-space:nowrap; }


/* Footer type badge colors (scoped to override page CSS) */
#siteFooter .post-type-tutorial { color:var(--amber); background:rgba(255,176,0,.12); border:1px solid rgba(255,176,0,.2); }
#siteFooter .post-type-blog { color:var(--green); background:rgba(0,255,65,.1); border:1px solid rgba(0,255,65,.15); }
#siteFooter .post-type-opiniao { color:var(--purple); background:rgba(170,102,255,.1); border:1px solid rgba(170,102,255,.2); }
#siteFooter .post-type-shout { color:var(--cyan); background:rgba(0,204,255,.1); border:1px solid rgba(0,204,255,.2); }



