/* CLICKSPIRE — updates.css (news / blog layout) */

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.chip {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 9px 18px; border-radius: var(--radius); cursor: pointer;
  background: var(--surface); color: var(--muted); border: 1px solid var(--border);
  backdrop-filter: blur(var(--panel-blur)); transition: .15s;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #160320; border-color: transparent; box-shadow: var(--glow); }

/* ---------- category accents ---------- */
.cat {
  font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
  border: 1px solid currentColor; background: rgba(0,0,0,0.35); backdrop-filter: blur(4px);
}
.cat.feature { color: var(--brand); }
.cat.balance { color: #4dd6ff; }
.cat.fix { color: #5cff9e; }
.cats { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- cover (shared by featured + cards + reader) ---------- */
.cover {
  position: relative; overflow: hidden; background-size: cover; background-position: center;
  --c: var(--brand);
}
.cover.is-fallback {
  background:
    radial-gradient(120% 130% at 80% 0%, color-mix(in srgb, var(--c) 38%, transparent), transparent 60%),
    linear-gradient(150deg, var(--bg-2), #0a0512);
}
.cover.is-fallback::before { /* pixel grid texture */
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(135deg, #000, transparent 75%);
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 75%);
}
.cover .cover-ver {
  position: absolute; left: 18px; bottom: 14px; font-family: var(--font-pixel);
  font-size: 16px; color: var(--c); text-shadow: 0 0 18px color-mix(in srgb, var(--c) 70%, transparent);
  opacity: .92;
}
.cover .cover-cats { position: absolute; left: 16px; top: 16px; }
.cover .cover-fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8,4,14,.78)); }

/* ---------- featured latest ---------- */
.news-featured { margin-top: 8px; }
.feat-card {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); backdrop-filter: blur(var(--panel-blur));
  box-shadow: var(--card-shadow), var(--glow); cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease;
}
.feat-card:hover { transform: translateY(-4px); }
.feat-card .cover { min-height: 340px; }
.feat-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.feat-flag { font-family: var(--font-pixel); font-size: 9px; letter-spacing: 1px; color: var(--brand);
  text-shadow: var(--text-glow); margin-bottom: 16px; }
.feat-body h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 12px 0 0; }
.feat-meta { color: var(--muted); font-size: 14px; margin-top: 8px; }
.feat-body p { color: var(--muted); font-size: 16px; margin-top: 16px; text-wrap: pretty; }
.feat-body .read { margin-top: 26px; }
@media (max-width: 820px) { .feat-card { grid-template-columns: 1fr; } .feat-card .cover { min-height: 220px; } .feat-body { padding: 28px; } }

/* ---------- news grid ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .news-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex; flex-direction: column; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); backdrop-filter: blur(var(--panel-blur)); box-shadow: var(--card-shadow);
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--card-shadow), var(--glow); }
.post-card .cover { aspect-ratio: 16 / 10; }
.post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-meta { color: var(--muted); font-size: 12.5px; font-weight: 500; letter-spacing: .02em; }
.post-card h3 { font-size: 20px; margin: 10px 0 0; line-height: 1.15; }
.post-excerpt { color: var(--muted); font-size: 14.5px; margin-top: 12px; flex: 1; text-wrap: pretty; }
.read { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; align-self: flex-start;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--brand); }
.read .arr { transition: transform .15s; }
.post-card:hover .read .arr, .feat-card:hover .read .arr { transform: translateX(4px); }

.empty-note { color: var(--muted); text-align: center; padding: 50px; font-size: 16px; }

/* ---------- article reader overlay ---------- */
.reader-scrim {
  position: fixed; inset: 0; z-index: 300; background: rgba(6,3,10,0.94);
  backdrop-filter: blur(10px); display: none; overflow-y: auto; padding: 40px 20px 60px;
}
.reader-scrim.open { display: block; }
.reader {
  width: 100%; max-width: 760px; margin: 0 auto;
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-2); box-shadow: 0 40px 100px -20px #000;
}
.reader .cover { height: 280px; }
.reader-body { padding: 40px; }
@media (max-width: 560px) { .reader-body { padding: 26px; } .reader .cover { height: 190px; } }
.reader-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.reader-body h1 { font-size: clamp(26px, 4vw, 40px); margin: 16px 0 0; }
.reader-summary { font-size: 18px; color: var(--text); opacity: .92; margin-top: 18px; text-wrap: pretty; }
.reader-body ul { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.reader-body li { position: relative; padding-left: 26px; color: var(--muted); font-size: 16px; text-wrap: pretty; }
.reader-body li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px;
  background: var(--brand); border-radius: 1px; box-shadow: 0 0 8px rgba(var(--brand-rgb)/0.7); }
.reader-body li b { color: var(--text); }
.reader-ver { font-family: var(--font-pixel); font-size: 12px; color: var(--brand); }
.reader-close {
  position: fixed; top: 22px; right: 22px; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--border-strong); color: var(--text);
  font-size: 20px; cursor: pointer; box-shadow: 0 8px 24px -8px #000;
}
.reader-close:hover { border-color: var(--brand); color: var(--brand); }
.reader-cta { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--border); }
