/* Electro HUB — Новости (dark premium magazine shelf) */

.news-page,
.news-single {
  --news-accent: #e10600;
  --news-muted: var(--eh-muted, #a3a3a3);
  --news-border: rgba(255, 255, 255, 0.08);
  --news-card: linear-gradient(165deg, #161616 0%, #0a0a0a 100%);
}

/* —— Hero —— */
.news-hero {
  padding: 2.75rem 0 2.5rem;
  border-bottom: 1px solid var(--eh-border, #222);
}
.news-hero .breadcrumb {
  margin-bottom: 1.25rem;
}
.news-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff6b63;
}
.news-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.news-hero-lead {
  margin: 1rem 0 0;
  max-width: 38rem;
  color: var(--news-muted);
  font-size: 1.08rem;
  line-height: 1.55;
}
.news-hero-link {
  margin: 1.15rem 0 0;
}
.news-hero-link a {
  color: #d4d4d4;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(255, 255, 255, 0.25);
}
.news-hero-link a:hover {
  color: #fff;
  text-decoration-color: var(--news-accent);
}

/* —— Filters —— */
.news-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 2rem;
}
.news-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.news-chip {
  appearance: none;
  border: 1px solid var(--news-border);
  background: rgba(255, 255, 255, 0.03);
  color: #cfcfcf;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.news-chip:hover {
  border-color: rgba(225, 6, 0, 0.45);
  color: #fff;
}
.news-chip.is-active {
  border-color: rgba(225, 6, 0, 0.7);
  background: rgba(225, 6, 0, 0.14);
  color: #fff;
}
.news-search input {
  width: min(100%, 220px);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--news-border);
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
}
.news-search input::placeholder {
  color: #777;
}
.news-search input:focus {
  outline: none;
  border-color: rgba(225, 6, 0, 0.55);
}

/* —— Feature (first post, page 1) —— */
.news-feature {
  display: grid;
  gap: 0;
  margin-bottom: 2rem;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--news-border);
  background: var(--news-card);
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
@media (min-width: 860px) {
  .news-feature {
    grid-template-columns: 1.35fr 1fr;
    min-height: 340px;
  }
}
.news-feature:hover {
  border-color: rgba(225, 6, 0, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
  color: inherit;
}
.news-feature-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 80% 20%, rgba(225, 6, 0, 0.32), transparent 45%),
    linear-gradient(135deg, #1a1a1a, #0d0d0d);
  overflow: hidden;
}
@media (min-width: 860px) {
  .news-feature-media {
    aspect-ratio: auto;
    min-height: 100%;
  }
}
.news-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-feature-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.6rem 1.55rem 1.7rem;
}
.news-feature-body h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.news-excerpt {
  margin: 0;
  color: var(--news-muted);
  font-size: 1rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-date {
  display: block;
  font-size: 0.8rem;
  color: #888;
  letter-spacing: 0.02em;
}
.news-read-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: var(--news-accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* —— 2-col grid —— */
.news-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}
.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--news-border);
  background: #111;
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.news-card:hover {
  border-color: rgba(225, 6, 0, 0.4);
  transform: translateY(-2px);
  background: #151515;
  color: inherit;
}
.news-card-media {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 30% 30%, rgba(225, 6, 0, 0.22), transparent 55%),
    #1a1a1a;
  overflow: hidden;
}
.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.15rem 1.2rem 1.3rem;
  flex: 1;
}
.news-card-body h3 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  line-height: 1.28;
}
.news-card-body p {
  margin: 0;
  color: var(--news-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-filter-empty {
  margin: 1.5rem 0 0;
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  color: var(--news-muted);
  text-align: center;
}

/* —— Pagination —— */
.news-pagination {
  margin-top: 2.5rem;
}
.news-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}
.news-pagination .page-numbers li {
  margin: 0;
}
.news-pagination a,
.news-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--news-border);
  background: #111;
  color: #ddd;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.news-pagination a:hover {
  border-color: rgba(225, 6, 0, 0.45);
  color: #fff;
}
.news-pagination .current {
  border-color: rgba(225, 6, 0, 0.7);
  background: rgba(225, 6, 0, 0.16);
  color: #fff;
}

/* —— Empty —— */
.news-empty {
  padding: 2.5rem 1.75rem;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  color: var(--news-muted);
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.55;
}
.news-empty p {
  margin: 0 0 0.85rem;
}
.news-empty p:last-child {
  margin-bottom: 0;
}
.news-empty a {
  color: #ff6b63;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.news-empty a:hover {
  color: #fff;
}

/* —— SEO block —— */
.news-seo-block {
  padding-top: 1rem;
  padding-bottom: 4rem;
  border-top: 1px solid var(--eh-border, #222);
}
.news-seo-block h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  letter-spacing: -0.02em;
}
.news-seo-text {
  max-width: 40rem;
  color: var(--news-muted);
  font-size: 1rem;
  line-height: 1.65;
}
.news-seo-text p {
  margin: 0 0 0.9rem;
}
.news-seo-text p:last-child {
  margin-bottom: 0;
}

.news-feed-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* —— Single —— */
.news-single-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--eh-border, #222);
}
.news-single-hero .breadcrumb {
  margin-bottom: 1.1rem;
}
.news-single-hero .news-date {
  margin-bottom: 0.75rem;
}
.news-single-hero h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.75rem, 3.8vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.news-single-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}
.news-single-cover {
  margin: 0 0 1.75rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--eh-border, #222);
}
.news-single-cover img {
  width: 100%;
  height: auto;
  display: block;
}
.eh-content {
  font-size: 1.08rem;
  line-height: 1.75;
  color: #d4d4d4;
}
.eh-content > *:first-child {
  margin-top: 0;
}
.eh-content p {
  margin: 0 0 1.15rem;
}
.eh-content h2,
.eh-content h3 {
  color: #fff;
  letter-spacing: -0.02em;
  margin: 1.85rem 0 0.75rem;
}
.eh-content a {
  color: #ff6b63;
}
.eh-content ul,
.eh-content ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}
.eh-content li {
  margin: 0.35rem 0;
}

.news-gallery {
  display: grid;
  gap: 0.85rem;
  margin: 2rem 0 0;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .news-gallery {
    grid-template-columns: 1fr 1fr;
  }
}
.news-gallery-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--news-border);
  background: #111;
}
.news-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.news-video {
  margin: 2rem 0 0;
}
.news-video video {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--news-border);
  background: #000;
}
.news-video-link {
  color: #ff6b63;
  font-weight: 600;
}

.news-single-footer {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--news-border);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.news-tg-post {
  margin: 0;
}
.news-tg-post a {
  color: #cfcfcf;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(255, 255, 255, 0.25);
}
.news-tg-post a:hover {
  color: #fff;
  text-decoration-color: var(--news-accent);
}
.news-back-wrap {
  margin: 0;
}
.news-back {
  display: inline-flex;
  color: var(--news-muted);
  font-size: 0.9rem;
  text-decoration: none;
}
.news-back:hover {
  color: #fff;
}

/* Accessibility helper if theme lacks it */
.news-page .screen-reader-text,
.news-single .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
