/*
 * Radiovipfm — Știri
 * ==================
 *
 * CSS de sine stătător, prefixat cu .nws- ca să nu se bată cu app.css.
 * Nu depinde de Tailwind — build-ul e deja compilat, deci clasele noi
 * n-ar exista în el.
 *
 * Aceeași paletă ca restul: galbenul #FECE21 din logo, pe fundal închis.
 */

:root {
  --y:      #FECE21;
  --y-hi:   #FFDD5C;
  --y-deep: #D9A800;
  --ink:    #17120A;

  --bg:      #181a26;
  --surface: #1e2130;
  --raised:  #242839;
  --line:    #2c3044;

  --text: #F4F5F7;
  --mid:  #9AA0AC;
  --dim:  #6b7282;

  --r:    12px;
  --r-lg: 18px;

  --ease:  cubic-bezier(.4, 0, .2, 1);
  --sprng: cubic-bezier(.34, 1.4, .64, 1);

}

.nws {
  color: var(--text);
  max-width: 1440px;
  margin-inline: auto;
}

.nws *, .nws *::before, .nws *::after { box-sizing: border-box; }
.nws h1, .nws h2, .nws h3 { margin: 0; font-weight: 700; }
.nws p { margin: 0; }
.nws a { color: inherit; text-decoration: none; }
.nws img { max-width: 100%; display: block; }

.nws :focus-visible {
  outline: 2px solid var(--y);
  outline-offset: 3px;
  border-radius: 8px;
}

.nws-dot {
  display: inline-block; width: 3px; height: 3px;
  margin: 0 8px; vertical-align: middle;
  border-radius: 50%; background: var(--dim);
}

/* =============================================================== ANTET = */
.nws-head { padding: 26px 0 24px; }

.nws-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  margin-bottom: 6px;
  font-size: 9.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--y);
}
.nws-eyebrow::before {
  content: ''; width: 16px; height: 2px;
  background: var(--y); border-radius: 2px;
}

.nws-title {
  font-size: clamp(28px, 6.4vw, 42px);
  letter-spacing: -.03em;
  line-height: 1.05;
}

.nws-sub {
  margin-top: 8px;
  font-size: 14.5px; color: var(--mid);
  max-width: 520px;
}

.nws-section-head {
  display: flex; align-items: center; gap: 12px;
  margin: 8px 0 16px;
}
.nws-section-head h2 {
  font-size: clamp(19px, 4.4vw, 25px);
  letter-spacing: -.02em;
}
.nws-section-head::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.nws-count {
  padding: 3px 10px;
  background: rgba(254, 206, 33, .14);
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--y-hi);
}

/* ========================================================== ETICHETE == */
.nws-tag {
  position: absolute; top: 12px; left: 12px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  background: rgba(0, 0, 0, .74);
  backdrop-filter: blur(6px);
  color: #fff;
}
.nws-tag-music { background: rgba(254, 206, 33, .92); color: var(--ink); }
.nws-tag-album { background: rgba(139, 92, 246, .92); color: #fff; }
.nws-tag-news  { background: rgba(0, 0, 0, .78); color: #fff; }

/* imagine lipsă: fundal generat, nu o poză ruptă */
.nws-noimg {
  position: absolute; inset: 0;
  display: grid; place-content: center;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(254, 206, 33, .16), transparent 58%),
    linear-gradient(150deg, var(--raised), #14161f);
}
.nws-noimg i { font-size: 34px; color: rgba(254, 206, 33, .5); }
.nws-noimg-sm i { font-size: 20px; }

/* ============================================== ARTICOL PRINCIPAL ===== */
.nws-lead-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 34px;
}

.nws-lead {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .22s var(--ease), border-color .22s var(--ease),
              box-shadow .22s var(--ease);
}
.nws-lead:hover {
  transform: translateY(-3px);
  border-color: rgba(254, 206, 33, .42);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .38);
}

.nws-lead-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
}
.nws-lead-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.nws-lead:hover .nws-lead-media img { transform: scale(1.05); }

.nws-lead-body {
  display: flex; flex-direction: column; gap: 9px;
  padding: 20px;
}

.nws-lead-title {
  font-size: clamp(19px, 4vw, 26px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.nws-lead:hover .nws-lead-title { color: var(--y-hi); }

.nws-lead-text {
  font-size: 14.5px; color: var(--mid);
  line-height: 1.55;
}

/* ------------------------------------------------------- pe lângă ----- */
.nws-side { display: flex; flex-direction: column; gap: 10px; }

.nws-side-item {
  display: flex; gap: 13px;
  padding: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform .2s var(--ease), border-color .2s var(--ease),
              background .2s var(--ease);
}
.nws-side-item:hover {
  transform: translateX(3px);
  background: var(--raised);
  border-color: rgba(254, 206, 33, .34);
}

.nws-side-media {
  position: relative;
  flex: none;
  width: 92px; height: 68px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}
.nws-side-media img { width: 100%; height: 100%; object-fit: cover; }

.nws-side-body {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}

.nws-side-tag {
  font-size: 9.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--y);
}

.nws-side-title {
  font-size: 14px; font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nws-side-item:hover .nws-side-title { color: var(--y-hi); }

/* ================================================================ META = */
.nws-meta {
  display: inline-flex; align-items: center; flex-wrap: wrap;
  font-size: 12px; color: var(--dim);
}
.nws-meta i { margin-right: 6px; font-size: 11px; }

/* ============================================================== GRILA = */
.nws-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.nws-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .2s var(--ease), border-color .2s var(--ease),
              box-shadow .2s var(--ease);
}
.nws-card:hover {
  transform: translateY(-3px);
  border-color: rgba(254, 206, 33, .38);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .34);
}

.nws-card-link { display: flex; flex-direction: column; height: 100%; }

.nws-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
}
.nws-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.nws-card:hover .nws-card-media img { transform: scale(1.06); }

.nws-card-body {
  display: flex; flex-direction: column; gap: 8px;
  padding: 15px;
  flex: 1;
}

.nws-card-title {
  font-size: 15.5px; font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nws-card:hover .nws-card-title { color: var(--y-hi); }

.nws-card-text {
  font-size: 13px; color: var(--mid);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nws-card .nws-meta { margin-top: auto; }

/* ============================================================ ARTICOL = */
.nws-back {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 22px 0 18px;
  padding: 9px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--mid);
  transition: all .18s var(--ease);
}
.nws-back i { font-size: 11px; transition: transform .2s var(--ease); }
.nws-back:hover {
  border-color: rgba(254, 206, 33, .45);
  color: var(--text);
}
.nws-back:hover i { transform: translateX(-3px); }

.nws-article {
  max-width: 780px;
  margin: 0 auto 40px;
}

.nws-art-head { margin-bottom: 22px; }

.nws-art-head .nws-tag {
  position: static;
  display: inline-block;
  margin-bottom: 12px;
  backdrop-filter: none;
}

.nws-art-title {
  font-size: clamp(25px, 5.6vw, 40px);
  letter-spacing: -.03em;
  line-height: 1.12;
}

.nws-art-meta { margin-top: 12px; }

.nws-art-media {
  margin: 0 0 26px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.nws-art-media img { width: 100%; height: auto; }

/* --------------------------------------------------- textul propriu-zis */
/*
 * Conținutul vine din CKEditor, deci e HTML deja formatat.
 * Aici îi dăm un aspect de citit, nu de pagină de administrare.
 */
.nws-prose {
  font-size: 16px;
  line-height: 1.75;
  color: #DDE0E6;
}

.nws-prose > * + * { margin-top: 18px; }

.nws-prose h2 {
  margin-top: 34px;
  font-size: 23px; font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}
.nws-prose h3 {
  margin-top: 26px;
  font-size: 18.5px; font-weight: 700;
  color: var(--text);
}

.nws-prose a { color: var(--y); text-decoration: underline; text-underline-offset: 3px; }
.nws-prose a:hover { color: var(--y-hi); }

.nws-prose strong { color: var(--text); font-weight: 700; }

.nws-prose ul, .nws-prose ol { padding-left: 22px; }
.nws-prose ul { list-style: disc; }
.nws-prose ol { list-style: decimal; }
.nws-prose li + li { margin-top: 7px; }
.nws-prose li::marker { color: var(--y); }

.nws-prose blockquote {
  margin: 26px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--y);
  font-size: 17px; font-style: italic;
  color: var(--mid);
}

.nws-prose img {
  border-radius: var(--r);
  border: 1px solid var(--line);
  margin: 22px 0;
}

.nws-prose iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--r);
}

.nws-prose hr {
  margin: 30px 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.nws-prose code {
  padding: 2px 7px;
  background: var(--bg);
  border-radius: 6px;
  font-size: 14px;
  color: var(--y-hi);
}

.nws-prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.nws-prose th, .nws-prose td {
  padding: 9px 11px;
  border: 1px solid var(--line);
  text-align: left;
}
.nws-prose th { background: var(--surface); font-weight: 700; }

/* ------------------------------------------------------- distribuire -- */
.nws-art-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.nws-share-label {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; color: var(--mid);
}
.nws-share-label i { color: var(--y); }

.nws-share { display: flex; gap: 8px; }

.nws-share-btn {
  display: grid; place-content: center;
  width: 40px; height: 40px;
  border: 0; cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--mid);
  font-size: 15px;
  transition: all .18s var(--sprng);
}
.nws-share-btn:hover { transform: translateY(-3px); color: #fff; }
.nws-fb:hover { background: #1877f2; border-color: #1877f2; }
.nws-wa:hover { background: #25d366; border-color: #25d366; }
.nws-tg:hover { background: #229ed9; border-color: #229ed9; }
.nws-copy:hover { background: var(--y); border-color: var(--y); color: var(--ink); }

/* confirmarea de copiere */
.nws-copy.is-done {
  background: var(--y); border-color: var(--y); color: var(--ink);
}
.nws-copy.is-done i::before { content: "\f00c"; }

.nws-related { max-width: 1100px; margin: 0 auto; }

/* ================================================================ GOL = */
.nws-empty {
  padding: 70px 22px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}
.nws-empty-mark {
  font-size: 42px; color: var(--line);
  margin-bottom: 12px;
}
.nws-empty h3 { font-size: 20px; margin-bottom: 6px; }
.nws-empty p { color: var(--dim); font-size: 14px; }

/* ========================================================== PAGINARE == */
.nws-paginate { margin-top: 28px; }
.nws-paginate svg { width: 16px; height: 16px; }

/* ================================================ TABLETĂ (720px+) ==== */
@media (min-width: 720px) {
  .nws-grid { grid-template-columns: repeat(2, 1fr); }
  .nws-lead-body { padding: 24px; }
}

/* ================================================ DESKTOP (1024px+) === */
@media (min-width: 1024px) {
  .nws-head { padding: 34px 0 30px; }

  .nws-lead-wrap { grid-template-columns: 1.6fr 1fr; }
  .nws-lead-media { aspect-ratio: 16 / 10; }

  .nws-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1440px) {
  .nws-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ================================================== PREFERINȚE USER === */
@media (prefers-reduced-motion: reduce) {
  .nws *, .nws *::before, .nws *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .nws-back, .nws-art-foot, .nws-related, .nws-paginate { display: none; }
  .nws-prose { color: #000; }
}
