/* Nugget Watch */

:root {
  --ink: #1a1a1a;
  --muted: #666;
  --faint: #999;
  --border: #e0e0e0;
  --bg: #fdfdfd;
  --surface: #fff;
  --accent: #fd8100;
  --accent-dim: #e07000;
  --green: #228844;
  --red: #cc3333;
  --pink: #ee4488;
  --star-yellow: #e8a400;
}

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

body {
  padding-bottom: 28px;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.3px; }
h2 { font-size: 18px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

/* ── Site Header ── */
#site-header {
  background: #000;
  color: white;
  padding: 12px 0;
  border-bottom: 3px solid var(--accent);
}
#site-header .container {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
#site-header .logo {
  font-size: 16px; font-weight: 700; letter-spacing: -0.2px;
  color: white; text-decoration: none;
}
#site-header .logo span { color: var(--accent); }
#site-header nav { display: flex; gap: 20px; }
#site-header nav a {
  color: #aaa; text-decoration: none; font-size: 13px; font-weight: 500;
}
#site-header nav a:hover { color: white; }

/* ── Footer ── */
#site-footer {
  border-top: 1px solid var(--border); margin-top: 48px; padding: 20px 0;
  font-size: 12px; color: var(--faint); text-align: center;
}
#site-footer a { color: var(--faint); text-decoration-color: var(--faint); }
#site-footer nav a { margin: 0 8px; }

/* ── Layout ── */
.container { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* ── Homepage ── */
.home-hero { padding: 36px 0 28px; }
.home-hero h1 { font-size: 26px; margin-bottom: 4px; }
.home-hero .tagline { color: var(--muted); }

/* ── Review Feed (homepage) ── */
.review-feed { max-width: 640px; }
.review-card {
  padding: 20px 0; border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: auto 1fr;
  gap: 0 16px;
}
.review-card:first-of-type { padding-top: 0; }
.review-card:last-of-type { border-bottom: none; }

.review-card .photos {
  display: flex; flex-direction: column; gap: 4px; min-width: 90px;
}
.review-card .photos img {
  width: 85px; height: 85px; object-fit: cover;
  border: 1px solid var(--border); background: #f5f5f5;
}
.review-card .chain-link {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent);
  display: block; margin-bottom: 2px;
}
.review-card .chain-link:hover { text-decoration: underline; }
.review-card .quote {
  font-size: 14px; line-height: 1.6; margin-bottom: 6px;
}
.review-card .meta {
  font-size: 12px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.review-card .meta a { color: var(--ink); }
.review-card .meta a:hover { color: var(--accent); }

/* ── Sidebar (homepage) ── */
.sidebar-chain {
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.sidebar-chain:first-of-type { padding-top: 0; }
.sidebar-chain:last-of-type { border-bottom: none; }

/* ── Section Title ── */
.section-title {
  display: flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--ink);
  margin-bottom: 12px; padding-bottom: 6px; border-bottom: 2px solid var(--border);
}

/* ── Stars ── */
.star-row { display: inline-flex; flex-shrink: 0; }
.stars { color: var(--accent); letter-spacing: 1px; white-space: nowrap; font-size: inherit; }
.stars-muted { color: #ddd; font-size: inherit; letter-spacing: 1px; white-space: nowrap; }

/* ── Truncation ── */
.quote { overflow: hidden; text-overflow: ellipsis; }
.chain-name-truncate { overflow-x: auto; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }

/* ── Badges ── */
.badge {
  display: inline-block; font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  padding: 1px 5px; vertical-align: middle; margin-left: 6px;
}
.badge-supporter { background: var(--pink); color: white; }

/* ── Buttons ── */
.btn {
  display: inline-block; padding: 6px 14px; font-size: 12px; font-weight: 600;
  font-family: inherit; cursor: pointer; border: none; text-decoration: none;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dim); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-dim); }
.btn-secondary { background: var(--ink); color: white; }
.btn-secondary:hover { background: #333; }
.btn-ghost { background: none; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--ink); border-color: var(--muted); }
.btn-sm { padding: 3px 10px; font-size: 11px; }

/* ── Detail page ── */
.back-link { font-size: 13px; margin-bottom: 20px; display: block; }

.detail-card {
  border: 1px solid var(--border); background: var(--surface); margin-bottom: 20px;
}
.detail-card-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 16px;
}
.detail-card-body { padding: 16px 20px; }

.detail-ratings {
  display: grid; grid-template-columns: auto auto; gap: 2px 20px; font-size: 13px;
}
.detail-ratings .dim { color: var(--muted); }
.detail-ratings .val { text-align: right; white-space: nowrap; }

/* ── Alert ── */
.alert { padding: 10px 14px; margin-bottom: 16px; font-size: 13px; border-left: 3px solid; }
.alert-warning { background: #fff8e8; border-color: var(--accent); }
.alert-error { background: #fff0f0; border-color: var(--red); }

/* ── Review entry (chain page) ── */
.review-entry {
  border-bottom: 1px solid var(--border); padding: 20px 0;
  display: grid; grid-template-columns: 1fr 160px; gap: 20px;
}
.review-entry:last-child { border-bottom: none; }
.review-meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.review-body { font-size: 14px; line-height: 1.6; }
.review-scores { font-size: 12px; color: var(--muted); min-width: 170px; }
.review-scores .row { display: flex; justify-content: space-between; align-items: center; padding: 1px 0; gap: 8px; }
.review-scores .row .star-row { width: 100px; }

/* ── Thumbs ── */
.thumbs-inline { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; }
.thumbs-inline a { color: var(--muted); text-decoration: none; cursor: pointer; padding: 2px 4px; }
.thumbs-inline a:hover { color: var(--ink); }

/* ── Review images ── */
.review-images { display: flex; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.review-images img { width: 80px; height: 80px; object-fit: cover; border: 1px solid var(--border); }

/* ── Forms ── */
.form-section { margin-bottom: 20px; }
.form-section label {
  display: block; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--muted); margin-bottom: 4px;
}
.form-section input, .form-section textarea, .form-section select {
  width: 100%; padding: 8px 12px; border: 1px solid var(--border);
  font-size: 14px; font-family: inherit; background: var(--surface);
}
.form-section input:focus, .form-section textarea:focus, .form-section select:focus {
  border-color: var(--accent); outline: none;
}
.form-section .hint { font-size: 11px; color: var(--faint); margin-top: 2px; }

/* ── Simple star rating ── */
.inline-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.inline-rating input { display: none; }
.inline-rating label { font-size: 1.6rem; color: #ddd; cursor: pointer; }
.inline-rating label:hover,
.inline-rating label:hover ~ label,
.inline-rating input:checked ~ label { color: var(--accent); }

/* ── Advanced toggle ── */

/* ── Pro dimension row ── */
.pro-dim { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; font-size: 13px; }
.pro-dim span { min-width: 80px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
.pro-rating { display: flex; flex-direction: row-reverse; gap: 2px; }
.pro-rating input { display: none; }
.pro-rating label { font-size: 1.2rem; color: #ddd; cursor: pointer; }
.pro-rating label:hover,
.pro-rating label:hover ~ label,
.pro-rating input:checked ~ label { color: var(--accent); }

/* ── Data Table ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  text-align: left; padding: 6px 10px; border-bottom: 2px solid var(--border);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--faint); font-weight: 600;
}
.data-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }

/* ── Chain list table ── */
.chain-index { width: 100%; border-collapse: collapse; }
.chain-index th {
  text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--faint); padding: 0 0 10px; border-bottom: 2px solid var(--border); font-weight: 600;
}
.chain-index td { padding: 12px 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.chain-index tbody tr:hover td { background: #fafafa; }
.chain-index .chain-name { font-size: 16px; font-weight: 600; }
.chain-index .chain-name a { text-decoration: underline; text-decoration-color: var(--accent); }
.chain-index .chain-name a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.chain-index .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.chain-index .review-count { font-size: 12px; color: var(--muted); }
.chain-index .price { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); }
.chain-index .price-unit { font-size: 11px; color: var(--muted); font-weight: 400; }

/* ── Search ── */
.search-form { display: flex; gap: 0; margin-bottom: 32px; }
.search-form input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-right: none;
  font-size: 14px; font-family: inherit; background: var(--surface); outline: none;
}
.search-form input:focus { border-color: var(--accent); }
.search-form button {
  padding: 10px 18px; background: var(--accent); border: none;
  color: white; font-weight: 600; font-size: 13px; cursor: pointer; font-family: inherit;
}
.search-form button:hover { background: var(--accent-dim); }

/* ── Honeypot ── */
.ohnohoney { opacity: 0; position: absolute; top: 0; left: 0; height: 0; width: 0; z-index: -1; pointer-events: none; }

/* ── Ticker ── */
.ticker {
  background: #000; color: #ccc; padding: 8px 16px;
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace; font-size: 11px;
  overflow-x: auto; white-space: nowrap; line-height: 1.8;
}
.ticker-label { color: #888; text-transform: uppercase; font-size: 11px; letter-spacing: 0.5px; }
.ticker-sep { color: #444; margin: 0 8px; }
.ticker-up { color: #44bb44; }
.ticker-muted { color: #666; }
.ticker a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ── Utilities ── */
.text-xs { font-size: 11px; }
.text-sm { font-size: 13px; }
.text-muted { color: var(--muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mr-1 { margin-right: 8px; }
.mr-2 { margin-right: 16px; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.font-bold { font-weight: 600; }
.relative { position: relative; }
.grid { display: grid; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.whitespace-pre-line { white-space: pre-line; }
.object-cover { object-fit: cover; }
.hidden { display: none; }

/* ── Homepage grid ── */
.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 700px) {
  .home-grid {
    grid-template-columns: 1fr 300px;
  }
}
.home-sidebar {
  display: flex;
  flex-direction: column;
}

/* ── Bottom News Ticker ── */
.news-ticker {
  background: #000;
  color: #ccc;
  padding: 8px 0;
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  position: fixed; left: 0; right: 0;
  bottom: 0;
  z-index: 10;
  border-top: 2px solid var(--accent);
}
.news-ticker-inner {
  animation: ticker-scroll var(--ticker-speed, 180s) linear infinite;
  display: inline-block;
  padding-right: 50px;
}
.news-ticker:hover .news-ticker-inner {
  animation-play-state: paused;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.news-ticker a { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); }
.news-ticker a:hover { color: var(--accent); }


