:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --card: #ffffff;
  --text: #12131a;
  --muted: #61667a;
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --border: #e6e8f0;
  --good: #16a34a;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
}

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.site-header { position: sticky; top: 0; backdrop-filter: blur(10px); background: rgba(255,255,255,0.7); border-bottom: 1px solid var(--border); z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; gap: 14px; align-items: center; }
.brand .logo { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 8px 22px rgba(79,70,229,0.25); color: #fff; }
.brand h1 { font-size: 20px; margin: 0; letter-spacing: 0.2px; }
.brand .subtitle { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.header-actions .button { text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; border: 1px solid #ffffff33; box-shadow: 0 8px 22px rgba(79,70,229,0.25); }
.header-actions .button.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 22px rgba(79,70,229,0.25); }

main { padding: 28px 0 80px; }
.controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 6px 0 24px; }
.search input {
  width: 320px; max-width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04);
}
.filters select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04);
}

.section-title { font-size: 16px; color: var(--muted); margin: 14px 0 14px; font-weight: 600; letter-spacing: 0.3px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.card { background: linear-gradient(180deg, #ffffff, #ffffff); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: flex; gap: 14px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; box-shadow: 0 1px 2px rgba(16,24,40,0.06); }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,24,40,0.12); border-color: #d8dbe6; }
.icon { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; background: #f2f4f8; border: 1px solid var(--border); font-size: 22px; }
.meta { flex: 1; min-width: 0; }
.title { margin: 2px 0 6px; font-size: 16px; font-weight: 700; }
.desc { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { background: #f3f4f7; border: 1px solid var(--border); color: #475569; border-radius: 999px; padding: 6px 10px; font-size: 12px; }
.actions { display: flex; align-items: center; gap: 10px; }
.open-link { text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); border: 1px solid #ffffff33; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 13px; white-space: nowrap; box-shadow: 0 8px 22px rgba(79,70,229,0.25); }
.source-link { text-decoration: none; color: #334155; border: 1px solid var(--border); padding: 9px 10px; border-radius: 10px; font-weight: 600; font-size: 12px; background: var(--surface); }

.empty { margin: 16px 0; color: var(--muted); }
.hidden { display: none; }

.site-footer { border-top: 6px solid var(--border); padding: 32px 0; color: var(--muted); background: rgba(255,255,255,0.8); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; align-items: center; }
.footer-inner span { font-size: 14px; line-height: 1.8; }
.footer-inner a { color: var(--brand); text-decoration: none; font-weight: 600; }
@media (max-width: 640px) {
  .footer-inner { justify-content: center; text-align: center; }
  .footer-inner span { width: 100%; }
}


