/* ═══ Reset & Design Tokens ══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Color palette — clean white (Feedbin-style) */
  --bg: #FFFFFF; --bg2: #F5F5F5; --bg3: #EBEBEB;
  --bg-glass: rgba(255,255,255,0.95);
  --surface: #FFFFFF;
  --ink: #1A1A1A; --ink2: #6B6B6B; --ink3: #A0A0A0;
  --accent: #C06B3A; --accent-light: #F4E8DF;
  --divider: #E5E5E5;

  /* Typography */
  --serif: 'Lora', Georgia, serif;
  --display: 'Playfair Display', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;

  /* Layout dimensions */
  --col-sources: 240px; --col-feed: 360px;

  /* Spacing scale (like a spacing utility class) */
  --s-xs: 4px; --s-sm: 8px; --s-md: 12px; --s-lg: 16px;
  --s-xl: 20px; --s-2xl: 24px; --s-3xl: 32px;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 3px; }

/* Offline indicator */
.offline-badge {
  display: none;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 13px;
  text-align: center;
  padding: 6px 12px;
  z-index: 9999;
}
body.is-offline .offline-badge { display: block; }

/* ═══ Utility Classes (like static helper methods) ═══════════════ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--s-sm); }
.gap-md { gap: var(--s-md); }

/* Base button (composable) */
.btn {
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icon button variant */
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  padding: 0;
}
.icon-btn:hover { background: var(--bg3); }
