/* Len720 IdeaBoard */
:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --ink: #1a1d21;
  --muted: #66707b;
  --accent: #2563eb;
  --accent-soft: #eff4ff;
  --border: #e4e7ec;
  --rank-gold: #b45309;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 2px 8px rgba(16, 24, 40, 0.05);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand-mark { font-size: 20px; }
.header-right { display: flex; align-items: center; gap: 12px; }
.updated { font-size: 12px; color: var(--muted); }
.btn {
  font: inherit; border: 1px solid var(--border); background: var(--card); color: var(--ink);
  border-radius: 8px; padding: 6px 12px; cursor: pointer; transition: background 0.15s ease;
}
.btn-ghost:hover { background: var(--accent-soft); }
.btn[disabled] { opacity: 0.5; cursor: default; }

/* Intro */
.intro { padding: 28px 0 8px; }
.intro h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -0.02em; }
.sub { margin: 0; color: var(--muted); }

/* Status + banner */
.status, .banner { border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 14px 0 0; }
.status { background: #fef3c7; color: #92400e; }
.banner-demo { background: #eff4ff; color: #1e40af; border: 1px solid #dbe6ff; }
.hidden { display: none; }
.muted { color: var(--muted); }

/* Idea list */
.idea-list { list-style: none; margin: 20px 0 0; padding: 0; }
.idea-list > li {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 12px;
  display: flex; gap: 14px; animation: fade-in 0.25s ease;
}
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; } }

.rank {
  flex: 0 0 34px; height: 34px; border-radius: 10px; background: var(--accent-soft);
  color: var(--accent); font-weight: 800; font-size: 15px; display: flex; align-items: center;
  justify-content: center;
}
.rank.top1, .rank.top2, .rank.top3 { background: var(--rank-gold); color: #fff; }

.card-body { min-width: 0; flex: 1; }
.card-title { margin: 0 0 4px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-summary { margin: 0 0 8px; color: var(--ink); font-size: 14.5px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.card-meta .sub { color: var(--accent); font-weight: 600; text-decoration: none; }
.card-meta .up { color: #16a34a; font-weight: 600; }
.card-meta .comments { color: #7c3aed; font-weight: 600; }

/* Empty state */
.empty { text-align: center; padding: 60px 0; color: var(--muted); }

/* Ads */
.ad-slot {
  margin: 8px 0 18px; min-height: 90px; border-radius: 10px;
  border: 1px dashed var(--border); background: rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 12px;
}
.ad-slot:empty::before { content: "ad"; padding: 2px 8px; border: 1px solid var(--border); border-radius: 6px; letter-spacing: 0.08em; }
.ad-slot-footer { border: none; background: none; min-height: 60px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; background: var(--card); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding: 18px 16px; font-size: 13px; color: var(--muted); }
.footer-inner a { color: var(--muted); }