:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --surface2: #1a1a24;
  --border: #2a2a38;
  --accent: #7c3aed;
  --accent2: #06b6d4;
  --text: #e2e8f0;
  --muted: #64748b;
  --green: #10b981;
  --orange: #f59e0b;
  --red: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; line-height: inherit; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* SITE TAGLINE */
.site-tagline {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 0;
}

/* NAV */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.logo span { font-weight: 300; }

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-links a {
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  transition: all 0.15s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--surface2);
}

.nav-links a.active { color: white; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  color: var(--text);
  font-size: 13px;
  width: 200px;
  outline: none;
  transition: border-color 0.15s;
}

.search-box:focus { border-color: var(--accent); }
.search-box::placeholder { color: var(--muted); }

.btn-subscribe {
  background: var(--accent);
  color: white;
  border: none;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-subscribe:hover { opacity: 0.85; }

/* TAGS */
.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-model    { background: rgba(124, 58, 237, 0.2); color: #a78bfa; }
.tag-research { background: rgba(6, 182, 212, 0.2);  color: #67e8f9; }
.tag-industry { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.tag-safety   { background: rgba(239, 68, 68, 0.2);  color: #fca5a5; }
.tag-tools    { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.tag-open     { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }

/* HYPE METER */
.hype-meter {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.hype-bar {
  width: 60px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.hype-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--orange), var(--red));
}

/* NEWS LIST & ITEMS */
.news-list { display: flex; flex-direction: column; gap: 2px; }

.news-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.15s;
  cursor: pointer;
}

.news-item:hover { border-color: var(--border); background: var(--surface2); }

.news-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--border);
  min-width: 28px;
  line-height: 1.2;
}

.news-body { flex: 1; }

.news-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.news-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.news-source { color: var(--accent2); font-weight: 500; }

.ai-summary-badge {
  font-size: 10px;
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 24px;
}

.dot { color: var(--accent); }

/* ── MAIN PAGE ── */

/* TICKER */
.ticker {
  background: linear-gradient(90deg, var(--accent) 0%, #4f46e5 50%, var(--accent2) 100%);
  padding: 8px 24px;
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-block;
  animation: ticker 60s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-item { margin-right: 60px; }
.ticker-item::before { content: "● "; opacity: 0.7; }

/* LAYOUT */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

/* FEATURED */
.featured {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.featured-image {
  background: linear-gradient(135deg, #1e1b4b, #312e81, #1e3a5f);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.featured-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-title {
  font-size: 20px;
  font-weight: 700;
  margin: 12px 0 10px;
  line-height: 1.3;
}

.featured-summary {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

.source-badge {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

/* SECTION HEADER */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.view-all {
  font-size: 12px;
  color: var(--accent2);
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  transition: border-color 0.15s, transform 0.15s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.card-summary {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

.card-source { font-weight: 500; color: var(--accent2); }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

.widget-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 14px;
}

/* MODELS TRACKER */
.model-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.model-item:last-child { border-bottom: none; }

.model-name { font-size: 13px; font-weight: 500; }
.model-org  { font-size: 11px; color: var(--muted); }

.model-status {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}

.status-new     { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.status-update  { background: rgba(245, 158, 11, 0.15);  color: var(--orange); }
.status-rumor   { background: rgba(100, 116, 139, 0.15); color: var(--muted); }
.status-blocked { background: rgba(239, 68, 68, 0.15);   color: var(--red); }

/* TRENDING TAGS */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 6px; }

.trend-tag {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.trend-tag:hover { border-color: var(--accent); color: #a78bfa; }
.trend-tag .count { color: var(--muted); font-size: 10px; margin-left: 4px; }

/* STATS */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.stat-box {
  background: var(--surface2);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.stat-num {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label { font-size: 10px; color: var(--muted); margin-top: 2px; }

/* NEWSLETTER */
.newsletter-widget input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
  margin-bottom: 8px;
  outline: none;
}

.newsletter-widget input:focus { border-color: var(--accent); }
.newsletter-widget input::placeholder { color: var(--muted); }

.btn-full {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  color: white;
  border: none;
  padding: 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

/* ── ARCHIVE PAGE ── */

.archive-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

.archive-header { margin-bottom: 24px; }

.archive-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.archive-count {
  font-size: 13px;
  color: var(--muted);
}

/* FILTERS */
.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  min-width: 70px;
}

.filter-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover { border-color: var(--accent); color: var(--text); }

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.no-results {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  display: none;
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  backdrop-filter: blur(4px);
}

.modal-overlay[hidden] { display: none; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modal-in 0.2s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  line-height: 1;
}

.modal-close:hover { color: var(--text); border-color: var(--accent); }

.modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-right: 40px;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
}

.modal-hype { margin-bottom: 6px; }

.modal-date {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.modal-summary {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 24px;
  white-space: pre-line;
}

.modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.15s;
  margin-bottom: 24px;
}

.modal-btn:hover { opacity: 0.85; }

.modal-related-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 10px;
}

.modal-related-items { display: flex; flex-direction: column; gap: 8px; }

.modal-related-item {
  width: 100%;
  text-align: left;
  font: inherit;
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.modal-related-item:hover { border-color: var(--accent); }

.modal-related-item-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.4;
}

.modal-related-item-meta { font-size: 11px; color: var(--muted); }

.modal-close:focus-visible,
.modal-btn:focus-visible,
.modal-related-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── ARTICLE PAGE ── */
.article { max-width: 760px; margin: 0 auto; padding: 24px; }

.breadcrumbs {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumbs a { color: var(--accent2); }
.breadcrumbs .sep { color: var(--border); }

.article-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.article-title { font-size: 26px; font-weight: 700; line-height: 1.3; margin-bottom: 14px; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}

.article-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.article-body p { margin-bottom: 18px; }
.article-body p:first-of-type { font-size: 16px; color: #f1f5f9; }
.article-body p:last-child { margin-bottom: 0; }

.article-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: white;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin: 32px 0;
  transition: opacity 0.15s;
}
.article-btn:hover { opacity: 0.85; }
.article-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.related { border-top: 1px solid var(--border); padding-top: 24px; }
.related-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 14px;
}
.related-grid { display: flex; flex-direction: column; gap: 8px; }
.related-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  transition: border-color 0.15s;
}
.related-item:hover { border-color: var(--accent); }
.related-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.related-item-title { font-size: 13px; font-weight: 500; margin-bottom: 4px; line-height: 1.4; }
.related-item-meta { font-size: 11px; color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  nav { padding: 0 16px; gap: 16px; }

  .container { padding: 12px; }
  .archive-wrap { padding: 12px; }

  .featured { grid-template-columns: 1fr; }
  .featured-image { display: none; }
  .featured-content { padding: 18px; }
  .featured-title { font-size: 17px; }
  .featured-meta { flex-wrap: wrap; gap: 8px; }

  .cards-grid { grid-template-columns: 1fr; }

  .filter-row { gap: 6px; }
  .filter-label { min-width: 60px; font-size: 10px; }

  .news-meta { flex-wrap: wrap; gap: 6px; }
  .card-meta { flex-wrap: wrap; gap: 6px; }
  .news-num { font-size: 14px; min-width: 22px; }

  .modal { padding: 20px; border-radius: 12px; }
  .modal-title { font-size: 17px; }
}
