/* FutureAITechX — AI News & Launches centre (/ai-news). Uses the site tokens
   from style.css/site.css, so light and dark themes both work. */

/* ---------- hero extras ---------- */
.news-hero .news-search { display: flex; gap: 10px; margin-top: 22px; max-width: 620px; }
.news-hero .news-search .form-control { flex: 1 1 auto; min-width: 0; background: rgba(255, 255, 255, .96); color: #0e1526; border-color: transparent; }
.news-hero .news-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: .9rem; color: var(--on-navy-faint); }
.news-hero .news-stats b { color: var(--on-navy); }
.news-hero .news-stats a { color: var(--accent-on-navy); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- section navigation (horizontal, scrolls on small screens) ---------- */
.news-nav { border-bottom: 1px solid var(--border); background: var(--bg); }
.news-nav-track { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.news-nav-track a { flex: 0 0 auto; font-size: .82rem; font-weight: 600; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px; white-space: nowrap; }
.news-nav-track a:hover { color: var(--text); border-color: var(--border-strong); }
.news-nav-track a.active { color: #fff; background: var(--navy-800); border-color: var(--navy-800); }
html[data-theme="dark"] .news-nav-track a.active { background: var(--accent); border-color: var(--accent); }

/* ---------- hub blocks ---------- */
.news-block { margin-top: 56px; }
.news-block:first-child { margin-top: 0; }
.news-hub .news-block .section-head { margin-bottom: 22px; }
.news-lead { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.news-lead-side { display: grid; gap: 12px; }
.news-sublinks { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 16px; font-size: .92rem; }
.news-sublinks a { color: var(--accent); font-weight: 600; }
.news-standards { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.news-standards a { color: var(--accent); }

/* ---------- cards ---------- */
.news-card .a-card-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.news-new { font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #0a7a4c; background: rgba(10, 138, 86, .1); border: 1px solid rgba(10, 138, 86, .28); border-radius: 999px; padding: 2px 8px; }
.src-label { display: block; margin-top: 8px; font-size: .78rem; color: var(--faint); }

/* ---------- directory strips ---------- */
.news-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 18px; }
.news-tool { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.news-tool:hover { border-color: var(--accent-border); }
.news-tool span:not(.price-badge) { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.news-tool .price-badge { align-self: flex-start; }
.news-pairs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.news-pairs a { padding: 9px 14px; border: 1px solid var(--border); border-radius: 10px; font-weight: 600; font-size: .92rem; background: var(--card); }
.news-pairs a span { color: var(--faint); font-weight: 500; margin: 0 3px; }
.news-pairs a:hover { border-color: var(--accent-border); color: var(--accent); }
.news-models { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); }
.news-models h3 { font-size: 1rem; }
.news-models ul { list-style: none; margin: 12px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px 18px; }
.news-models li { font-size: .9rem; }
.news-models li span { color: var(--faint); }
.news-models li em { color: var(--faint); font-style: normal; font-size: .82rem; }

/* ---------- digest ---------- */
.news-digest-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.news-digest-sub { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-2); }
.news-digest-sub h3 { font-size: 1.1rem; }
.news-digest-sub p { margin: 8px 0 14px; font-size: .92rem; }

/* ---------- listing filters + pager + empty ---------- */
.news-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.news-filters label { font-size: .86rem; font-weight: 600; color: var(--muted); }
.news-filters select { width: auto; flex: 0 0 auto; }
.news-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 34px; }
.news-pager a, .news-pager span { min-width: 40px; padding: 8px 12px; text-align: center; border: 1px solid var(--border); border-radius: 10px; font-size: .9rem; font-weight: 600; }
.news-pager a:hover { border-color: var(--accent-border); color: var(--accent); }
.news-pager [aria-current="page"] { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.news-pager [aria-disabled="true"] { color: var(--faint); opacity: .6; }
.news-pager .gap { border: 0; min-width: 0; }
.news-empty { padding: 28px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); color: var(--muted); background: var(--bg-2); margin-bottom: 8px; }
.news-empty p + p { margin-top: 10px; }

/* ---------- launch tracker ---------- */
.launch-rules { padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--bg-2); border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 22px; font-size: .93rem; color: var(--muted); }
.launch-rules b, .launch-rules em { color: var(--text); }
.launch-rules em { font-style: normal; font-weight: 600; }
.launch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 18px; }
.launch-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.launch-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.launch-company { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.launch-card h3 { font-size: 1.12rem; margin-top: 3px; letter-spacing: -.01em; }
.launch-ver { font-weight: 500; color: var(--muted); }
.launch-card h4 { font-size: .86rem; margin-top: 4px; color: var(--muted); }
.launch-card p { font-size: .92rem; color: var(--muted); }
.launch-when b { color: var(--text); }
.launch-when a, .launch-cite { color: var(--accent); font-size: .84rem; }
.launch-features { margin: 0; padding-left: 18px; font-size: .9rem; color: var(--muted); display: grid; gap: 4px; }
.launch-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: 6px; }
.launch-links a { font-size: .88rem; font-weight: 600; color: var(--accent); }
.launch-verified { font-size: .78rem !important; color: var(--faint) !important; }
.launch-status { flex: 0 0 auto; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 4px 10px; border: 1px solid; white-space: nowrap; }
.ls-confirmed { color: #1d4fd8; background: rgba(36, 86, 240, .08); border-color: rgba(36, 86, 240, .28); }
.ls-beta, .ls-waitlist { color: #5b36d6; background: rgba(107, 70, 229, .09); border-color: rgba(107, 70, 229, .3); }
.ls-delayed { color: #8a5300; background: rgba(180, 110, 0, .1); border-color: rgba(180, 110, 0, .3); }
.ls-rumored { color: var(--muted); background: var(--surface); border-color: var(--border-strong); border-style: dashed; }
.ls-released { color: #0a7a4c; background: rgba(10, 138, 86, .1); border-color: rgba(10, 138, 86, .28); }
html[data-theme="dark"] .ls-confirmed { color: #9bb5ff; }
html[data-theme="dark"] .ls-beta, html[data-theme="dark"] .ls-waitlist { color: #c4b4ff; }
html[data-theme="dark"] .ls-delayed { color: #f0c27a; }
html[data-theme="dark"] .ls-released, html[data-theme="dark"] .news-new { color: #6fdcaa; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .news-lead, .news-digest-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .news-hero .news-search { flex-direction: column; }
  .news-block { margin-top: 40px; }
  .launch-grid { grid-template-columns: 1fr; }
  .launch-head { flex-direction: column; }
  .news-filters select { flex: 1 1 40%; }
}

/* ---- Evergreen guides on the AI news hub (ssr-news-guides.js) ---- */
.news-guide { max-width: 980px; }
.news-guide .news-compare th { text-align: left; }
.news-guide .news-compare td, .news-guide .news-compare th { vertical-align: top; padding: 12px 14px; border: 1px solid var(--border); font-size: .92rem; }
.news-guide .news-compare thead th { background: var(--bg-2); font-family: var(--font-head); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.news-guide .news-compare tr:nth-child(even) td, .news-guide .news-compare tr:nth-child(even) th { background: var(--bg-2); }
.guide-choose { margin: 14px 0 0; padding-left: 20px; }
.guide-choose li { margin-bottom: 12px; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.guide-choose li strong { color: var(--text); }
.guide-faq-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-top: 10px; background: var(--card); }
.guide-faq-item summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; }
.guide-faq-item[open] summary { margin-bottom: 8px; }
.guide-faq-item p { color: var(--muted); font-size: .93rem; margin: 0; }
.guide-news-list { list-style: none; padding: 0; margin: 14px 0 0; }
.guide-news-list li { padding: 12px 0; border-top: 1px solid var(--border); }
.guide-news-list li:first-child { border-top: 0; }
.news-guides .feat-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; background: var(--card); transition: border-color .25s, box-shadow .25s; }
.news-guides .feat-card:hover { border-color: var(--accent-border, var(--accent)); box-shadow: var(--shadow-sm); }
@media (max-width: 768px) {
  .news-guide { max-width: none; }
  .news-guides .card-grid { grid-template-columns: 1fr; }
}
