/* =========================================================
   DEV JOURNEY LOG — STYLESHEET
   ========================================================= */

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Cores */
  --bg: #0d1117;
  --surface: #161b22;
  --surface2: #1c2330;
  --border: #21262d;
  --border2: #30363d;

  --text: #e6edf3;
  --text2: #c9d1d9;
  --muted: #7d8590;
  --muted2: #5a6270;

  --primary: #7c3aed;
  --primary-bg: #1e1533;
  --primary-glow: rgba(124, 58, 237, 0.25);

  --accent: #2563eb;
  --accent-bg: #0d1f40;

  --success: #22c55e;
  --success-bg: #0c2218;

  --warning: #f59e0b;
  --warning-bg: #2a1f0a;

  --danger: #ef4444;
  --danger-bg: #2a0e0e;

  --info: #38bdf8;

  /* Dimensões */
  --sidebar-w: 252px;
  --topbar-h: 58px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;

  /* Fontes */
  --font: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Fira Code", monospace;

  /* Transição */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 180ms;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
input {
  font-family: inherit;
}
ul {
  list-style: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted2);
}

/* ── Overlay (mobile) ── */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  z-index: 40;
}
.overlay.show {
  display: block;
}

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

/* ── Sidebar ── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 50;
  transition: transform var(--dur) var(--ease);
  overflow: hidden;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary) 0%, #5b21b6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}
.logo-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: var(--mono);
}

.sidebar-close {
  color: var(--muted);
  padding: 4px;
  border-radius: var(--radius-sm);
  display: none;
  transition:
    color var(--dur),
    background var(--dur);
}
.sidebar-close:hover {
  color: var(--text);
  background: var(--border);
}

/* ── Sidebar Nav ── */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 10px;
}

.nav-group {
  margin-bottom: 20px;
}

.nav-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted2);
  padding: 0 8px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 450;
  transition:
    background var(--dur),
    color var(--dur);
  cursor: pointer;
  margin-bottom: 1px;
}
.nav-item:hover {
  background: var(--border);
  color: var(--text2);
}
.nav-item.active {
  background: var(--primary-bg);
  color: #a78bfa;
  font-weight: 500;
}
.nav-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}
.nav-item.active svg {
  opacity: 1;
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.85;
}

/* ── Sidebar Footer ── */
.sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.github-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 12.5px;
  transition:
    background var(--dur),
    color var(--dur);
}
.github-link:hover {
  background: var(--border);
  color: var(--text2);
}

/* ── Main ── */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Topbar ── */
.topbar {
  position: sticky;
  top: 0;
  height: var(--topbar-h);
  background: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
  z-index: 30;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  color: var(--muted);
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
  transition: background var(--dur);
}
.hamburger:hover span {
  background: var(--text2);
}

.breadcrumb {
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb .bc-sep {
  color: var(--muted2);
}
.breadcrumb .bc-current {
  color: var(--text);
}

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

.topbar-search {
  position: relative;
  display: flex;
  align-items: center;
}
.topbar-search-icon {
  position: absolute;
  left: 10px;
  color: var(--muted);
  pointer-events: none;
}
#topbar-search {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px 6px 32px;
  color: var(--text);
  font-size: 13px;
  width: 200px;
  transition:
    border-color var(--dur),
    width var(--dur);
  outline: none;
}
#topbar-search:focus {
  border-color: var(--primary);
  width: 260px;
}
#topbar-search::placeholder {
  color: var(--muted2);
}

.topbar-github {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  background: var(--surface);
  transition:
    border-color var(--dur),
    color var(--dur),
    background var(--dur);
}
.topbar-github:hover {
  border-color: var(--border2);
  color: var(--text2);
  background: var(--surface2);
}

/* ── Search Dropdown ── */
.search-dropdown {
  display: none;
  position: fixed;
  top: calc(var(--topbar-h) + 6px);
  right: 24px;
  width: 380px;
  max-height: 460px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  z-index: 100;
}
.search-dropdown.show {
  display: block;
}

.search-result-header {
  padding: 10px 14px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--dur);
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-item:hover {
  background: var(--surface2);
}

.sri-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.sri-body {
  min-width: 0;
}
.sri-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sri-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 1px;
}
.sri-highlight {
  color: var(--primary);
}
.search-empty {
  padding: 24px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ── Content ── */
.content {
  flex: 1;
  padding: 28px 28px 48px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   COMPONENTS
   ========================================================= */

/* ── Page Header ── */
.page-header {
  margin-bottom: 28px;
}
.page-header-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.page-header-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.page-header-text {
}
.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.page-subtitle {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Stats Grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition:
    border-color var(--dur),
    transform var(--dur);
}
.stat-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  font-family: var(--mono);
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  font-weight: 500;
}
.stat-icon {
  font-size: 18px;
  margin-bottom: 8px;
}

/* ── Section ── */
.section {
  margin-bottom: 32px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 16px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}
.section-count {
  font-size: 12px;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 1px 8px;
  font-weight: 500;
}

/* ── Cards Grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

/* ── Category Card ── */
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition:
    border-color var(--dur),
    transform var(--dur),
    box-shadow var(--dur);
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cat-color, var(--primary));
  opacity: 0;
  transition: opacity var(--dur);
}
.cat-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.cat-card:hover::before {
  opacity: 1;
}

.cat-card-icon {
  font-size: 26px;
  margin-bottom: 10px;
}
.cat-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.cat-card-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}
.cat-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cat-card-count {
  font-size: 11.5px;
  color: var(--muted);
  font-family: var(--mono);
}
.cat-card-arrow {
  color: var(--muted2);
  font-size: 14px;
  transition:
    transform var(--dur),
    color var(--dur);
}
.cat-card:hover .cat-card-arrow {
  transform: translateX(3px);
  color: var(--muted);
}

/* ── Skills ── */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-item {
}
.skill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.skill-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text2);
}
.skill-icon {
  font-size: 15px;
}
.skill-pct {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--muted);
  font-weight: 500;
}

.skill-track {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  border-radius: 99px;
  width: 0;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Roadmap ── */
.roadmap-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.roadmap-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur);
}
.roadmap-item:hover {
  border-color: var(--border2);
}
.roadmap-item.done {
  opacity: 0.7;
}

.roadmap-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  color: transparent;
  transition:
    border-color var(--dur),
    background var(--dur),
    color var(--dur);
}
.roadmap-item.done .roadmap-check {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.roadmap-text {
  font-size: 13.5px;
  color: var(--text2);
  flex: 1;
}
.roadmap-item.done .roadmap-text {
  text-decoration: line-through;
  color: var(--muted);
}
.roadmap-badge {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 99px;
  font-weight: 600;
}
.roadmap-badge.done {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.roadmap-badge.pending {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ── Accordion (Subcategory) ── */
.category-page {
}
.subcats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subcat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur);
}
.subcat:hover {
  border-color: var(--border2);
}
.subcat.open {
  border-color: var(--border2);
}

.subcat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}
.subcat-header:hover {
  background: var(--surface2);
}

.subcat-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.subcat-count {
  font-size: 11.5px;
  color: var(--muted);
  background: var(--border);
  border-radius: 99px;
  padding: 1px 8px;
  font-weight: 500;
}
.subcat-chevron {
  color: var(--muted);
  transition: transform var(--dur);
}
.subcat.open .subcat-chevron {
  transform: rotate(180deg);
}

.subcat-body {
  display: none;
  border-top: 1px solid var(--border);
}
.subcat.open .subcat-body {
  display: block;
}

.subcat-items {
  padding: 8px 0;
}

.subcat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  transition: background var(--dur);
}
.subcat-item:hover {
  background: var(--surface2);
}

.subcat-item-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted2);
  flex-shrink: 0;
}
.subcat-item-type {
  font-size: 13px;
  flex-shrink: 0;
  opacity: 0.6;
}
.subcat-item-title {
  flex: 1;
  font-size: 13px;
  color: var(--text2);
}
.subcat-item-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Clickable item (link) */
a.subcat-item--link {
  text-decoration: none;
  cursor: pointer;
}
a.subcat-item--link:hover {
  background: var(--surface2);
}
a.subcat-item--link:hover .subcat-item-title {
  color: #a78bfa;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.subcat-item-ext {
  color: var(--muted2);
  font-size: 12px;
  flex-shrink: 0;
  opacity: 0;
  transition:
    opacity var(--dur),
    color var(--dur);
  margin-left: 4px;
}
a.subcat-item--link:hover .subcat-item-ext {
  opacity: 1;
  color: var(--primary);
}

/* Search page result as link */
a.search-page-result {
  text-decoration: none;
}
a.search-page-result:hover .spr-title {
  color: #a78bfa;
}
.spr-ext {
  color: var(--muted2);
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0;
  transition: opacity var(--dur);
}
a.search-page-result:hover .spr-ext {
  opacity: 1;
}

/* Search result item as link */
a.search-result-item {
  text-decoration: none;
}

/* ── Tags / Badges ── */
.tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
}

.tag-js {
  background: rgba(247, 223, 30, 0.12);
  color: #f7df1e;
}
.tag-ts {
  background: rgba(49, 120, 198, 0.15);
  color: #60a5fa;
}
.tag-py {
  background: rgba(55, 118, 171, 0.15);
  color: #60a5fa;
}
.tag-php {
  background: rgba(119, 123, 180, 0.15);
  color: #a5b4fc;
}
.tag-css {
  background: rgba(38, 199, 218, 0.12);
  color: #67e8f9;
}
.tag-html {
  background: rgba(228, 77, 38, 0.12);
  color: #fca5a5;
}
.tag-sql {
  background: rgba(68, 121, 161, 0.15);
  color: #93c5fd;
}
.tag-git {
  background: rgba(240, 80, 50, 0.12);
  color: #fca5a5;
}
.tag-react {
  background: rgba(97, 218, 251, 0.1);
  color: #67e8f9;
}
.tag-node {
  background: rgba(104, 160, 99, 0.15);
  color: #86efac;
}
.tag-default {
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--border2);
}

/* ── Two-col layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── Card (generic) ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Platform pill ── */
.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid;
}

/* ── Tech pills row ── */
.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tech-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text2);
  transition:
    border-color var(--dur),
    background var(--dur);
}
.tech-pill:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
  color: #a78bfa;
}

/* ── Search Page ── */
.search-page-input-wrap {
  position: relative;
  margin-bottom: 24px;
}
.search-page-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
#search-page-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 12px 16px 12px 44px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color var(--dur);
}
#search-page-input:focus {
  border-color: var(--primary);
}
#search-page-input::placeholder {
  color: var(--muted2);
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-page-result {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    border-color var(--dur),
    background var(--dur);
}
.search-page-result:hover {
  border-color: var(--border2);
  background: var(--surface2);
}
.spr-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.spr-body {
  min-width: 0;
}
.spr-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.spr-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.spr-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.search-placeholder,
.search-no-results {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
}
.search-placeholder-icon,
.search-no-results-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.search-placeholder-text,
.search-no-results-text {
  font-size: 14px;
}

/* ── Hero Banner ── */
.hero {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.15) 0%,
    rgba(37, 99, 235, 0.1) 50%,
    transparent 100%
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "</>";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 80px;
  font-weight: 800;
  color: rgba(124, 58, 237, 0.06);
  line-height: 1;
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  font-family: var(--mono);
  margin-bottom: 8px;
}
.hero-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 6px;
}
.hero-sub {
  font-size: 14px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
}
.hero-badges {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--muted);
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
}
.empty-state-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.empty-state-text {
  font-size: 14px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-close {
    display: flex;
  }

  .main {
    margin-left: 0;
  }
  .hamburger {
    display: flex;
  }

  .topbar {
    padding: 0 16px;
  }
  #topbar-search {
    width: 140px;
  }
  #topbar-search:focus {
    width: 180px;
  }

  .content {
    padding: 18px 16px 40px;
  }

  .hero-title {
    font-size: 20px;
  }
  .hero::after {
    font-size: 50px;
    right: 12px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .search-dropdown {
    right: 16px;
    left: 16px;
    width: auto;
  }
  .topbar-github {
    display: none;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #topbar-search {
    display: none;
  }
}
