/* Neuxor editorial news, article index and trust polish
   Release: 2026.07.15-r22 */

/* Homepage trust strip refinement */
.commercial-trust-strip {
  position: relative;
  overflow: hidden;
}

.commercial-trust-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(92, 225, 255, 0.045), transparent 34%, rgba(148, 99, 255, 0.04));
}

.commercial-trust-strip__item {
  position: relative;
  z-index: 1;
}

.commercial-trust-strip__item > span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(92, 225, 255, 0.18), rgba(148, 99, 255, 0.15));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Homepage editorial cards */
.commercial-news-card {
  position: relative;
}

.commercial-news-card--featured {
  border-color: rgba(92, 225, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 22px 60px rgba(0, 0, 0, 0.18);
}

.commercial-news-card__media {
  position: relative;
  overflow: hidden;
}

.commercial-news-card__featured,
.news-index-card__featured,
.news-article__featured,
.admin-news-featured-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(92, 225, 255, 0.24);
  background: rgba(7, 25, 38, 0.82);
  color: rgba(220, 249, 255, 0.96);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.commercial-news-card__featured {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 7px 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.commercial-news-card__meta,
.news-index-card__meta,
.news-article__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 12px;
}

.commercial-news-card__meta time,
.news-index-card__meta time,
.news-article__meta time {
  color: rgba(198, 207, 226, 0.68);
  font-size: 12px;
  font-weight: 700;
}

/* Public news index */
.news-index-page {
  position: relative;
  overflow: hidden;
  min-height: 72vh;
  padding: clamp(28px, 5vw, 66px) 0 clamp(64px, 8vw, 120px);
}

.news-index-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(92, 225, 255, 0.11), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(148, 99, 255, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(7, 10, 20, 0.2), rgba(5, 7, 15, 0.72));
}

.news-index-container {
  position: relative;
  z-index: 1;
}

.news-index-hero {
  overflow: hidden;
  max-width: 980px;
  margin: 0 auto clamp(28px, 4vw, 52px);
  padding: clamp(28px, 5vw, 58px);
  border-radius: clamp(24px, 2.5vw, 34px);
  text-align: center;
}

.news-index-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.news-index-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(212, 220, 237, 0.78);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
}

.news-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}

.news-index-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-index-card:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 225, 255, 0.22);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.26);
}

.news-index-card--featured {
  border-color: rgba(92, 225, 255, 0.22);
}

.news-index-card__media {
  position: relative;
  display: block;
  height: clamp(190px, 22vw, 260px);
  overflow: hidden;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.035);
}

.news-index-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-index-card:hover .news-index-card__media img {
  transform: scale(1.025);
}

.news-index-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(255, 255, 255, 0.14);
  font-size: 86px;
  font-weight: 900;
  background:
    radial-gradient(circle at 24% 18%, rgba(92, 225, 255, 0.15), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(148, 99, 255, 0.05));
}

.news-index-card__featured {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.news-index-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.news-index-card__body h2 {
  margin: 16px 0 10px;
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.news-index-card__body h2 a {
  color: inherit;
  text-decoration: none;
}

.news-index-card__body p {
  margin: 0 0 18px;
  color: rgba(207, 215, 232, 0.75);
  line-height: 1.68;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.news-index-card__body .commercial-card__link {
  margin-top: auto;
}

.news-index-empty {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px;
  text-align: center;
}

.news-index-empty h2 {
  margin: 0 0 10px;
}

.news-index-empty p {
  margin: 0;
  color: rgba(207, 215, 232, 0.75);
}

.news-index-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(34px, 5vw, 64px);
  padding: clamp(26px, 4vw, 46px);
}

.news-index-cta h2 {
  margin: 9px 0 10px;
  font-size: clamp(25px, 3vw, 38px);
}

.news-index-cta p {
  max-width: 720px;
  margin: 0;
  color: rgba(207, 215, 232, 0.75);
  line-height: 1.7;
}

.news-index-cta .primary-btn {
  flex: 0 0 auto;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

/* Article metadata and related case study */
.news-article__meta {
  margin-bottom: 18px;
}

.news-article__featured {
  padding: 7px 10px;
}

.news-related-reference {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 24px;
  margin: 0 clamp(24px, 5vw, 68px) clamp(34px, 6vw, 68px);
  padding: 20px;
  border: 1px solid rgba(92, 225, 255, 0.16);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(92, 225, 255, 0.07), rgba(148, 99, 255, 0.05));
}

.news-related-reference img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  border-radius: 17px;
}

.news-related-reference h2 {
  margin: 9px 0 10px;
  font-size: clamp(22px, 3vw, 32px);
}

.news-related-reference p {
  margin: 0 0 16px;
  color: rgba(207, 215, 232, 0.76);
  line-height: 1.7;
}

/* Editorial admin */
.admin-news-editorial-settings {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(92, 225, 255, 0.14);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(92, 225, 255, 0.045), rgba(148, 99, 255, 0.035));
}

.admin-news-editorial-settings__heading h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.admin-news-editorial-settings__heading p {
  margin: 0;
  color: rgba(207, 215, 232, 0.72);
}

.admin-news-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-news-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(7, 10, 18, 0.78);
  color: var(--text);
  font: inherit;
}

.admin-news-toggle--featured {
  align-items: flex-start;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-news-toggle--featured span {
  display: grid;
  gap: 4px;
}

.admin-news-toggle--featured small,
.admin-news-field small {
  color: rgba(207, 215, 232, 0.62);
  line-height: 1.45;
}

.admin-news-language-fields--seo {
  align-items: start;
}

.admin-news-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.admin-news-row--featured {
  border-color: rgba(92, 225, 255, 0.18);
}

.admin-news-row__thumb {
  width: 112px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-news-featured-badge {
  padding: 5px 8px;
}

.status-badge--draft {
  color: #dbe7ff;
  background: rgba(93, 124, 180, 0.15);
  border-color: rgba(117, 156, 224, 0.24);
}

.status-badge--published {
  color: #d7ffef;
  background: rgba(67, 199, 143, 0.13);
  border-color: rgba(67, 199, 143, 0.24);
}

.status-badge--archived {
  color: #eadff5;
  background: rgba(145, 112, 173, 0.13);
  border-color: rgba(145, 112, 173, 0.24);
}

@media (max-width: 980px) {
  .news-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-news-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-news-row__actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .news-index-grid,
  .admin-news-editorial-grid,
  .news-related-reference {
    grid-template-columns: 1fr;
  }

  .news-index-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-index-cta .primary-btn {
    width: 100%;
  }

  .news-index-card__media {
    height: 220px;
  }

  .news-related-reference img {
    max-height: 240px;
  }

  .admin-news-row {
    grid-template-columns: 1fr;
  }

  .admin-news-row__thumb {
    width: 100%;
    height: 180px;
  }

  .admin-news-row__actions {
    grid-column: auto;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-index-card,
  .news-index-card__media img {
    transition: none;
  }
}
