/* pages.css — inner-page styles for AI Report Radar */

/* a11y focus */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* mobile nav */
.nav-burger { display: none; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line-2);
  background: #fff; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-burger span { display: block; width: 15px; height: 1.8px; background: var(--ink); border-radius: 2px; }
.nav-menu { margin-top: 8px; background: rgba(255,255,255,.92); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(11,14,26,.08); border-radius: 20px; box-shadow: var(--shadow-md);
  padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.nav-menu-link { font-size: 15px; font-weight: 550; color: var(--ink-2); text-decoration: none;
  padding: 11px 16px; border-radius: 12px; }
.nav-menu-link:hover, .nav-menu-link.active { color: var(--ink); background: rgba(11,14,26,.05); }
@media (max-width: 1020px) {
  .nav-burger { display: flex; }
  .nav-pill .btn.ghost { display: none; }
}

.nav-link.active { color: var(--ink); background: rgba(11,14,26,.06); font-weight: 600; }

/* page hero */
.page-hero { position: relative; overflow: hidden; }
.page-hero-inner { position: relative; z-index: 5; padding: 140px 32px 48px; }
.page-hero h1 { font-size: clamp(36px, 4.8vw, 58px); letter-spacing: -0.04em; line-height: 1.04; font-weight: 700; margin: 16px 0 0; }
.page-sub { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); max-width: 58ch; margin: 16px 0 0; text-wrap: pretty; }
.page-hero .search { margin-top: 26px; background: rgba(255,255,255,.8); backdrop-filter: blur(8px); }
.page-body { padding: 12px 0 90px; }

/* ---------------- TOOLS PAGE ---------------- */
.tools-layout { display: grid; grid-template-columns: 230px 1fr; gap: 32px; align-items: start; }
.side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 26px; }
.side-group .t { font-size: 11.5px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.side-list { display: flex; flex-direction: column; gap: 2px; }
.side-item { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; font-weight: 500;
  color: var(--ink-2); background: none; border: 0; cursor: pointer; text-align: left;
  padding: 7px 11px; border-radius: 8px; font-family: var(--sans); }
.side-item:hover { background: rgba(11,14,26,.04); color: var(--ink); }
.side-item.on { background: var(--ink); color: #fff; font-weight: 600; }
.side-item .n { font-family: var(--mono); font-size: 11px; opacity: .6; }
.side-check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; padding: 5px 0; }
.side-check input { accent-color: var(--blue); width: 15px; height: 15px; cursor: pointer; }

.tools-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.result-count { font-size: 13.5px; color: var(--ink-3); }
.result-count b { color: var(--ink); font-weight: 650; }
.tool-grid.page { grid-template-columns: repeat(3, 1fr); }
.tool-card.clickable { cursor: pointer; }
.api-chip { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .05em;
  color: var(--blue); background: rgba(37,99,235,.09); padding: 3px 8px; border-radius: 999px; }

/* tool detail overlay */
.overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 28px; }
.overlay-bg { position: absolute; inset: 0; background: rgba(11,14,26,.42); backdrop-filter: blur(6px); }
.sheet { position: relative; background: #fff; border-radius: 24px; max-width: 640px; width: 100%; max-height: 86vh;
  overflow: auto; box-shadow: 0 32px 90px rgba(11,14,26,.3); padding: 34px; }
.sheet-close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-size: 15px; color: var(--ink-2); }
.sheet-close:hover { background: var(--bg-soft); color: var(--ink); }
.sheet-head { display: flex; align-items: center; gap: 16px; }
.sheet-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.sheet-stat { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.sheet-stat .k { font-size: 11px; color: var(--ink-3); font-weight: 550; }
.sheet-stat .v { font-size: 15px; font-weight: 650; margin-top: 4px; letter-spacing: -0.01em; }
.sheet h4 { font-size: 13px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin: 26px 0 10px; }
.sheet .about { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); margin: 0; }
.alt-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.alt-chip { font-size: 13px; font-weight: 550; color: var(--ink-2); background: var(--bg-soft);
  border: 1px solid var(--line-2); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.alt-chip:hover { border-color: var(--ink-3); color: var(--ink); }
.sheet-actions { display: flex; gap: 10px; margin-top: 28px; }

/* ---------------- MODELS PAGE ---------------- */
.pick-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.pick { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 550; color: var(--ink-2);
  background: #fff; border: 1.5px solid var(--line-2); padding: 8px 16px 8px 10px; border-radius: 999px;
  cursor: pointer; font-family: var(--sans); }
.pick .m-dot { width: 22px; height: 22px; border-radius: 7px; font-size: 11px; }
.pick.on { border-color: var(--ink); color: var(--ink); font-weight: 600; box-shadow: 0 2px 10px rgba(11,14,26,.08); }
.pick:hover { border-color: var(--ink-3); }

.compare { display: grid; gap: 14px; margin-bottom: 56px; }
.compare-grid { display: grid; gap: 14px; }
.spec-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; position: relative; overflow: hidden; }
.spec-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--mc, var(--grad)); }
.spec-rows { margin-top: 18px; display: flex; flex-direction: column; }
.spec-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.spec-row:last-child { border-bottom: 0; }
.spec-row .k { color: var(--ink-3); }
.spec-row .v { font-weight: 600; text-align: right; letter-spacing: -0.01em; }
.spec-row .v.mono-v { font-family: var(--mono); font-weight: 500; }

.bench-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.bench-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.bench-legend .li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 550; color: var(--ink-2); }
.bench-legend .sw { width: 12px; height: 12px; border-radius: 4px; }
.bench-row { margin-bottom: 20px; }
.bench-row:last-child { margin-bottom: 0; }
.bench-row .bl { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; margin-bottom: 8px; }
.bench-row .bl .bn { font-family: var(--mono); letter-spacing: .02em; }
.bench-bars { display: flex; flex-direction: column; gap: 5px; }
.bench-bar { display: flex; align-items: center; gap: 10px; }
.bench-track { flex: 1; height: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.bench-fill { height: 100%; border-radius: 7px; }
.bench-val { font-family: var(--mono); font-size: 11.5px; font-weight: 600; min-width: 38px; text-align: right; color: var(--ink-2); }

/* ---------------- NEWS PAGE ---------------- */
.news-controls { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.select { font-family: var(--sans); font-size: 13.5px; font-weight: 550; color: var(--ink-2); background: #fff;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 16px; cursor: pointer; outline: none; }
.day-head { font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
  margin: 38px 0 14px; display: flex; align-items: center; gap: 14px; }
.day-head::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.feed-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 24px;
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; margin-bottom: 10px; }
.feed-item:hover { box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.feed-item h3 { font-size: 16.5px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.3; margin: 10px 0 0; }
.feed-item .sum { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; margin: 8px 0 0; max-width: 75ch; }
.sent-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.sent-pos { background: var(--emerald); }
.sent-neu { background: #c6c9d4; }
.sent-neg { background: #ef4444; }
.trend-big { text-align: right; }
.trend-big .n { font-family: var(--mono); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: #0a8a60; }
.trend-big .l { font-size: 10.5px; color: var(--ink-3); font-weight: 550; letter-spacing: .05em; text-transform: uppercase; margin-top: 2px; }

/* ---------------- GITHUB PAGE ---------------- */
.gh-toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.gh-rows { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.gh-row { display: grid; grid-template-columns: 46px 1fr 160px 130px 80px; gap: 18px; align-items: center;
  padding: 18px 24px; border-bottom: 1px solid var(--line); }
.gh-row:last-child { border-bottom: 0; }
.gh-row:hover { background: var(--bg-soft); }
.gh-rank { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink-3); }
.gh-name { font-family: var(--mono); font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.gh-name a { color: var(--ink); text-decoration: none; }
.gh-name a:hover { color: var(--blue); }
.gh-name .owner { color: var(--ink-3); font-weight: 400; }
.gh-desc { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.gh-meta { display: flex; align-items: center; gap: 12px; margin-top: 7px; flex-wrap: wrap; }
.gh-lang { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.gh-lang .dot { width: 8px; height: 8px; border-radius: 50%; }
.gh-tag { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.gh-tag::before { content: '#'; opacity: .55; }
.gh-stars { text-align: right; }
.gh-stars .tot { font-family: var(--mono); font-size: 14.5px; font-weight: 700; }
.gh-stars .d { font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: #0a8a60; margin-top: 3px; }
.watch-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff;
  cursor: pointer; font-size: 15px; color: var(--ink-3); }
.watch-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.watch-btn.on { color: #f59e0b; border-color: #f5c66b; background: #fff9ee; }
.hot-pill { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #db2777;
  background: rgba(219,39,119,.09); padding: 3px 8px; border-radius: 999px; margin-left: 8px; }

.empty-note { text-align: center; padding: 70px 20px; color: var(--ink-3); font-size: 14.5px; }

@media (max-width: 1020px) {
  .tools-layout { grid-template-columns: 1fr; }
  .side { position: static; flex-direction: row; flex-wrap: wrap; gap: 18px; }
  .tool-grid.page { grid-template-columns: repeat(2, 1fr); }
  .gh-row { grid-template-columns: 36px 1fr 100px; }
  .gh-spark, .gh-row .watch-btn { display: none; }
}
@media (max-width: 640px) {
  .tool-grid.page { grid-template-columns: 1fr; }
  .sheet-stats { grid-template-columns: repeat(2, 1fr); }
  .feed-item { grid-template-columns: 1fr; }
  .trend-big { text-align: left; }
}
