/* ============================================================
   SOURCEHUB — CLEAN LIGHT DESIGN SYSTEM
   Font: Space Grotesk + JetBrains Mono
   Theme: Light only, no dark mode
   ============================================================ */

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

/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --bg:         #F5F7FF;
  --bg-2:       #ECEFFE;
  --white:      #FFFFFF;
  --card:       #FFFFFF;
  --border:     #E2E8F0;
  --border-2:   #CBD5E1;

  --text:       #0F172A;
  --text-2:     #475569;
  --text-3:     #94A3B8;

  --blue:       #2563EB;
  --blue-light: #EFF6FF;
  --blue-mid:   rgba(37,99,235,0.12);
  --green:      #059669;
  --green-light:#ECFDF5;
  --amber:      #D97706;
  --amber-light:#FFFBEB;
  --rose:       #E11D48;
  --rose-light: #FFF1F2;
  --violet:     #7C3AED;
  --violet-light:#F5F3FF;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.10), 0 4px 10px rgba(0,0,0,0.05);

  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', monospace;

  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-full: 9999px;

  --max-w: 1200px;
  --px:    clamp(1rem, 4vw, 2.5rem);
}

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-display);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ── TYPOGRAPHY ─────────────────────────────────────── */
.font-mono { font-family: var(--f-mono); }
.text-muted { color: var(--text-2); }
.text-dim   { color: var(--text-3); }
.text-blue  { color: var(--blue); }
.text-green { color: var(--green); }
.text-rose  { color: var(--rose); }
.text-amber { color: var(--amber); }

.label-caps {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.heading-xl {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.heading-lg {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.heading-md {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.heading-sm { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }

/* ── LAYOUT ─────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}
main { flex: 1; }

/* ── HEADER ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  height: 60px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Logo */
.logo-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-icon {
  width: 32px; height: 32px;
  background: var(--blue);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.75rem;
  color: #fff;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.logo-text {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.025em;
  color: var(--text);
}
.logo-sub {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Nav */
.site-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.nav-link {
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--bg-2); }
.nav-link.active {
  color: var(--blue);
  background: var(--blue-light);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Mobile drawer */
#mobile-nav-drawer {
  position: fixed;
  top: 60px; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 90;
  display: none;
  flex-direction: column;
  padding: 1.25rem var(--px);
  gap: 0.35rem;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}
#mobile-nav-drawer.open { display: flex; }
#mobile-nav-drawer .nav-link {
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
}
#mobile-nav-drawer .nav-link:hover { border-color: var(--border); }

/* ── HERO ───────────────────────────────────────────── */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(5,150,105,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  position: relative;
  z-index: 1;
}
.hero-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-cols { grid-template-columns: 1fr 420px; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue-light);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--r-full);
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.25rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 1.8s infinite;
  flex-shrink: 0;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.2;} }

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.1rem;
}
.hero-title .accent { color: var(--blue); }

.hero-desc {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero-stat-val {
  font-family: var(--f-mono);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  display: block;
}
.hero-stat-key {
  font-size: 0.72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--f-mono);
  margin-top: 0.2rem;
  display: block;
}

/* Hero terminal card */
.hero-terminal {
  background: #0F172A;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #1E293B;
}
.terminal-bar {
  background: #1E293B;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.terminal-dot.red    { background: #FF5F57; }
.terminal-dot.yellow { background: #FEBC2E; }
.terminal-dot.green  { background: #28C840; }
.terminal-title {
  flex: 1; text-align: center;
  font-family: var(--f-mono); font-size: 0.7rem; color: #4B5563;
}
.terminal-body {
  padding: 1.1rem 1.25rem;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  line-height: 1.9;
  color: #94A3B8;
}
.term-line { display: flex; gap: 0.65rem; }
.term-prompt { color: #38BDF8; user-select: none; }
.term-cmd    { color: #86EFAC; }
.term-out    { color: #64748B; }
.term-hi     { color: #38BDF8; font-weight: 600; }
.term-str    { color: #86EFAC; }
.term-num    { color: #FCD34D; }
.term-cursor {
  display: inline-block; width: 7px; height: 1em;
  background: #38BDF8; vertical-align: text-bottom;
  animation: cur 1s step-end infinite;
}
@keyframes cur { 0%,100%{opacity:1;} 50%{opacity:0;} }

/* ── SEARCH BAR ─────────────────────────────────────── */
.search-section {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.search-pill {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  padding: 0.8rem 1.25rem;
  cursor: pointer;
  transition: all 0.15s;
  max-width: 640px;
  margin: 0 auto;
}
.search-pill:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-mid);
}
.search-pill-placeholder { flex: 1; font-size: 0.9rem; color: var(--text-3); }
.search-pill-hint {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--white);
  color: var(--text-3);
  padding: 0.2rem 0.5rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* ── CATEGORY STRIP ─────────────────────────────────── */
.cat-section {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
}
.cat-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cat-scroll {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: var(--r-full);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-2);
  transition: all 0.15s;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}
.cat-chip:hover {
  background: var(--accent-bg, var(--blue-light));
  color: var(--accent-color, var(--blue));
  border-color: var(--accent-color, var(--blue));
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.cat-chip-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-color, var(--blue));
  flex-shrink: 0;
}

/* ── SECTION ────────────────────────────────────────── */
.section {
  padding: 3rem 0;
}
.section-alt { background: var(--white); }

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.25rem;
}
.section-link:hover { gap: 0.55rem; }

/* ── PROJECT CARD ───────────────────────────────────── */
.proj-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
}
.proj-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}

.proj-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-2);
  flex-shrink: 0;
}
.proj-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.proj-card:hover .proj-thumb { transform: scale(1.04); }
.proj-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.7) 0%, transparent 55%);
}
.proj-thumb-badges {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  display: flex; gap: 0.4rem; flex-wrap: wrap;
}
.proj-thumb-dl {
  position: absolute;
  bottom: 0.7rem; right: 0.75rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  display: flex; align-items: center; gap: 0.3rem;
}

.proj-body {
  padding: 1rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.proj-lang {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
}
.proj-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.3;
  transition: color 0.15s;
}
.proj-card:hover .proj-title { color: var(--blue); }
.proj-desc {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.proj-footer {
  padding: 0.75rem 1.1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
}
.proj-size {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--text-3);
}

/* Hero card (larger) */
.proj-card.hero-card .proj-thumb-wrap { aspect-ratio: 16/8; }
.proj-card.hero-card .proj-title { font-size: 1.15rem; }
.proj-card.hero-card .proj-desc { -webkit-line-clamp: 3; }

/* ── GRID LAYOUTS ───────────────────────────────────── */
.proj-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 580px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .proj-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Bento: 1 big + 2 small */
.bento-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 800px) {
  .bento-wrap {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .bento-hero { grid-column: 1 / 2; grid-row: 1 / 3; }
}
@media (min-width: 1100px) {
  .bento-wrap { grid-template-columns: 2fr 1fr 1fr; }
  .bento-hero { grid-column: 1; grid-row: 1 / 3; }
}

/* ── COMPACT ROW ────────────────────────────────────── */
.compact-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  transition: all 0.15s;
  text-decoration: none;
  color: inherit;
}
.compact-row:hover {
  border-color: var(--blue);
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
}
.compact-row-rank {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-3);
  width: 1.4rem;
  text-align: center;
  flex-shrink: 0;
}
.compact-row-thumb {
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.compact-row-info { flex: 1; min-width: 0; }
.compact-row-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}
.compact-row:hover .compact-row-title { color: var(--blue); }
.compact-row-meta {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  margin-top: 0.15rem;
}
.compact-row-stat { flex-shrink: 0; text-align: right; }
.compact-row-count {
  font-family: var(--f-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green);
}
.compact-row-unit {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  color: var(--text-3);
  letter-spacing: 0.05em;
}

/* ── DRIVE BANNER ───────────────────────────────────── */
.drive-banner {
  background: linear-gradient(135deg, #EFF6FF 0%, #F0FDF4 100%);
  border: 1.5px solid #BFDBFE;
  border-radius: var(--r-xl);
  padding: 2rem 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}
.drive-meter {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.75rem;
  text-align: center;
  min-width: 180px;
  flex-shrink: 0;
}
.drive-meter-val {
  font-family: var(--f-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.04em;
  line-height: 1;
}

/* Storage bar */
.storage-bar-wrap {
  height: 6px;
  background: var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
  margin-top: 0.75rem;
}
.storage-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: var(--r-full);
  transition: width 0.6s ease;
  min-width: 0;
}

/* ── EMPTY STATE ────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  gap: 1rem;
}
.empty-icon {
  width: 60px; height: 60px;
  border-radius: var(--r-xl);
  background: var(--blue-light);
  border: 1.5px solid #BFDBFE;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
}
.empty-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.empty-desc  { font-size: 0.88rem; color: var(--text-2); max-width: 380px; line-height: 1.7; }

/* ── FOOTER ─────────────────────────────────────────── */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 3rem var(--px) 1.75rem;
  margin-top: auto;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-col-title {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 0.75rem;
}
.footer-link {
  display: block;
  font-size: 0.85rem;
  color: var(--text-2);
  padding: 0.3rem 0;
  transition: color 0.15s;
}
.footer-link:hover { color: var(--blue); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}

/* ── UTILITIES ──────────────────────────────────────── */
.hidden  { display: none !important; }
.flex    { display: flex; }
.flex-1  { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.grid  { display: grid; }
.w-full { width: 100%; }
.min-w-0 { min-width: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.p-4  { padding: 1rem; }
.p-5  { padding: 1.25rem; }
.p-6  { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.pt-4 { padding-top: 1rem; }
.rounded { border-radius: var(--r-sm); }
.rounded-lg { border-radius: var(--r-lg); }
.rounded-xl { border-radius: var(--r-xl); }
.rounded-full { border-radius: var(--r-full); }
.border-t { border-top: 1px solid var(--border); }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-xs  { font-size: 0.75rem; }
.text-sm  { font-size: 0.85rem; }
.text-base { font-size: 1rem; }
.text-lg  { font-size: 1.125rem; }
.text-xl  { font-size: 1.25rem; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium   { font-weight: 500; }
.leading-relaxed { line-height: 1.7; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0  { inset: 0; }
.cursor-pointer { cursor: pointer; }
.transition { transition: all 0.15s; }
.object-cover { object-fit: cover; }
.line-clamp-2 { display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.line-clamp-3 { display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden; }
.pointer-events-none { pointer-events: none; }

/* Responsive */
@media (min-width: 640px) {
  .sm\:flex  { display: flex !important; }
  .sm\:hidden { display: none !important; }
  .sm\:inline { display: inline !important; }
}
@media (max-width: 639px) {
  .sm\:flex  { display: none !important; }
  .sm\:hidden { display: flex !important; }
  .sm\:inline { display: none !important; }
}
@media (min-width: 768px) {
  .md\:flex   { display: flex !important; }
  .md\:hidden { display: none !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2,1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 767px) {
  .md\:flex   { display: none !important; }
  .md\:hidden { display: flex !important; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2,1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3,1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4,1fr); }
  .lg\:col-span-3  { grid-column: span 3; }
  .lg\:flex-row    { flex-direction: row; }
  .lg\:items-center { align-items: center; }
}
