*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f5f5;
  color: #222;
  line-height: 1.5;
}

header {
  background: #1a1a2e;
  color: #fff;
  padding: 16px 24px;
}

header h1 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

main {
  max-width: 860px;
  margin: 32px auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
}

.section-title.hot        { background: #e8f5e9; color: #2e7d32; }
.section-title.maybe      { background: #fff8e1; color: #f57f17; }
.section-title.skip       { background: #fce4ec; color: #c62828; }
.section-title.unprocessed { background: #eeeeee; color: #555; }

.article-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-card {
  background: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-card.rated {
  opacity: 0.5;
}

.article-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.article-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a2e;
  text-decoration: none;
  flex: 1;
}

.article-title:hover { text-decoration: underline; }

.article-meta {
  font-size: 0.75rem;
  color: #999;
  white-space: nowrap;
}

.article-summary {
  font-size: 0.85rem;
  color: #555;
}

.article-reasoning {
  font-size: 0.78rem;
  color: #aaa;
  font-style: italic;
}

.rating-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rating-btn {
  border: 1px solid #ddd;
  background: #fafafa;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.rating-btn:hover { background: #f0f0f0; border-color: #bbb; }
.rating-btn.active { border-color: #1a1a2e; background: #1a1a2e; color: #fff; }

.skip-toggle {
  cursor: pointer;
  user-select: none;
}

.skip-toggle .article-title {
  color: #888;
  font-weight: 400;
}

.skip-body {
  display: none;
}

.skip-body.open {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.empty-state {
  color: #aaa;
  font-size: 0.85rem;
  padding: 8px 0;
}
