/* ==========================================================================
   Eltes AI — newsroom: release notes with real screenshots
   ========================================================================== */

/* ------------------------------- hero ------------------------------------ */

.news-hero {
  position: relative;
  padding: calc(var(--nav-h) + 74px) 0 54px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.news-hero::before {
  content: "";
  position: absolute;
  inset: -40% 10% auto;
  height: 520px;
  background:
    radial-gradient(48% 60% at 28% 40%, rgba(61, 123, 255, 0.24), transparent 70%),
    radial-gradient(42% 55% at 74% 30%, rgba(18, 185, 129, 0.14), transparent 72%);
  filter: blur(18px);
  pointer-events: none;
}
.news-hero .wrap { position: relative; }
.news-hero h1 {
  max-width: 780px;
  margin: 20px 0 0;
  font-size: clamp(38px, 6.4vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.news-hero .lede {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.68;
}
.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
}
.news-meta .badge { color: var(--text-2); }
.news-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}
.news-jump a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 13px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-2);
  font-size: 12px;
  transition: border-color 0.16s, color 0.16s, background 0.16s;
}
.news-jump a:hover { border-color: var(--line-3); color: var(--text); background: rgba(255, 255, 255, 0.045); }
.news-jump a.active { border-color: rgba(122, 168, 255, 0.42); color: var(--blue-hi); background: rgba(61, 123, 255, 0.1); }

/* ------------------------------- feed ------------------------------------ */

.news-feed { padding: 66px 0 24px; }
.news-feed[id] { scroll-margin-top: calc(var(--nav-h) + 18px); }
.news-feed > .wrap > .news-item:first-child { border-top: 0; padding-top: 0; }

.news-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 46px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.news-item-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.news-ver {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid rgba(122, 168, 255, 0.34);
  background: rgba(61, 123, 255, 0.1);
  color: var(--blue-hi);
  font: 600 10.5px "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.03em;
}
.news-ver.latest { border-color: rgba(55, 214, 160, 0.4); background: rgba(55, 214, 160, 0.1); color: #8ff0c8; }
.news-kind {
  color: var(--text-4);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.news-item h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
}
.news-item h2 a { color: inherit; }
.news-item h2 a:hover { color: var(--blue-hi); }
.news-item .news-sum {
  max-width: 700px;
  margin: 0;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.72;
}
.news-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 26px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.news-points li {
  position: relative;
  padding-left: 17px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
}
.news-points li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 1px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(61, 123, 255, 0.55);
}

/* ----------------------------- screenshots -------------------------------- */

.shot {
  position: relative;
  margin: 8px 0 0;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  background: #03060b;
  box-shadow: var(--shadow-2);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.shot:hover { border-color: rgba(140, 180, 255, 0.3); transform: translateY(-2px); }
.shot > a { display: block; position: relative; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 760;
  object-fit: cover;
}
.shot .shot-open {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(4, 7, 13, 0.78);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 11px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.18s;
}
.shot:hover .shot-open { opacity: 1; transform: translateY(0); }
.shot figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.5;
}
.shot figcaption .tag {
  color: var(--text-4);
  font: 10px "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ------------------------- featured release ------------------------------- */

.news-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 30px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background:
    radial-gradient(120% 130% at 12% 0%, rgba(61, 123, 255, 0.12), transparent 58%),
    rgba(7, 12, 21, 0.72);
  box-shadow: var(--shadow-1);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.news-feature .shot { margin: 0; }
.news-feature-body { display: grid; gap: 14px; padding: 6px 4px 6px 0; }
.news-feature-body h2 {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.news-feature-body .news-sum { font-size: 14px; }
.news-feature .news-points { grid-template-columns: minmax(0, 1fr); gap: 7px; }

.news-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 4px;
}
.news-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 12px;
  transition: border-color 0.16s, color 0.16s;
}
.news-links a:hover { border-color: var(--line-3); color: var(--text); }
.news-links a.primary {
  border-color: rgba(122, 168, 255, 0.42);
  background: rgba(61, 123, 255, 0.14);
  color: #d9e6ff;
}
.news-links a.primary:hover { background: rgba(61, 123, 255, 0.22); color: #fff; }

/* --------------------------- closing strip -------------------------------- */

.news-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0 0;
  padding: 24px 26px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--grad-glass), rgba(7, 12, 21, 0.7);
}
.news-cta .txt h3 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.news-cta .txt p { margin: 5px 0 0; color: var(--text-3); font-size: 12.5px; }
.news-cta .actions { display: flex; flex-wrap: wrap; gap: 9px; }

/* ------------------------------ responsive ------------------------------- */

@media (max-width: 960px) {
  .news-feature { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .news-feature-body { padding: 2px 2px 6px; }
}
@media (max-width: 680px) {
  .news-hero { padding-top: calc(var(--nav-h) + 52px); }
  .news-points { grid-template-columns: minmax(0, 1fr); }
  .news-feed { padding-top: 46px; }
  .news-item { padding: 34px 0; }
  .shot .shot-open { display: none; }
  .news-cta { padding: 20px; }
}

/* keyboard focus is always visible, mouse users keep the clean look */
.news-jump a:focus-visible,
.news-links a:focus-visible,
.shot > a:focus-visible,
.news-cta a:focus-visible {
  outline: 2px solid var(--blue-hi);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .shot, .shot .shot-open { transition: none; }
  .shot:hover { transform: none; }
}
