/* ═══════════════════════════════════════════════
   AIVijesti Child Theme — CSS
   Mobile First | CWV Optimized
   ═══════════════════════════════════════════════ */

:root {
  --black:        #080810;
  --deep:         #0d0d1a;
  --card:         #111122;
  --border:       rgba(120,80,255,.15);
  --border2:      rgba(120,80,255,.35);
  --purple:       #7c3aed;
  --purple-light: #a855f7;
  --accent:       #c084fc;
  --text:         #f0eeff;
  --text-muted:   #9991bb;
  --text-dim:     #4a4468;
  --red:          #f43f5e;
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --gap:          16px;
  --container:    1280px;
  --pad:          clamp(1rem, 4vw, 2rem);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-light); text-decoration: none; }

body {
  background: var(--deep);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Grid texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,.04) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  z-index: 0;
}

/* ── SITE WRAP ── */
.aiv-site-wrap { position: relative; z-index: 1; }

/* ── MAIN CONTAINER ── */
.aiv-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--pad) 4rem;
}

/* ── TICKER ── */
.aiv-ticker {
  display: flex;
  align-items: center;
  background: rgba(124,58,237,.07);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 36px;
  position: relative;
  z-index: 1;
}
.aiv-ticker-label {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 2;
}
.aiv-ticker-wrap {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.aiv-ticker-track {
  display: flex;
  width: max-content;
  animation: aiv-ticker 50s linear infinite;
}
@keyframes aiv-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.aiv-ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  border-right: 1px solid var(--border);
  transition: color .2s;
}
.aiv-ticker-item:hover { color: var(--text); }
.aiv-ticker-cat {
  color: var(--accent);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.aiv-ticker-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--purple-light);
  flex-shrink: 0;
}

/* ── BADGES ── */
.aiv-badge {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  transition: background .2s;
  width: fit-content;
}
.aiv-badge:hover { background: var(--purple-light); color: #fff; }
.aiv-badge--subtle {
  background: rgba(124,58,237,.18);
  color: var(--accent);
}
.aiv-badge--subtle:hover { background: rgba(124,58,237,.3); color: var(--accent); }

/* ── SECTION HEADERS ── */
.aiv-section { margin-bottom: clamp(2rem, 5vw, 3rem); }
.aiv-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.aiv-section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.aiv-section-title::before {
  content: '';
  width: 3px;
  height: 18px;
  background: var(--purple);
  border-radius: 2px;
  flex-shrink: 0;
}
.aiv-section-link {
  font-size: 12px;
  color: var(--purple-light);
  font-weight: 500;
  transition: color .2s;
}
.aiv-section-link:hover { color: var(--accent); }

/* ── HERO ── */
.aiv-hero { margin-bottom: clamp(2rem, 5vw, 3rem); }
.aiv-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

/* Hero main */
.aiv-hero-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border2);
  min-height: clamp(300px, 50vw, 520px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--card);
  transition: border-color .3s;
}
.aiv-hero-main:hover { border-color: var(--purple-light); }
.aiv-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.aiv-hero-main:hover .aiv-hero-img { transform: scale(1.03); }
.aiv-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(8,8,16,.97) 0%,
    rgba(8,8,16,.65) 45%,
    rgba(8,8,16,.1) 100%
  );
}
.aiv-hero-overlay::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: radial-gradient(ellipse at 30% 100%, rgba(124,58,237,.2) 0%, transparent 70%);
}
.aiv-hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(1.25rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.aiv-hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(20px, 3.5vw, 32px);
  font-weight: 700;
  line-height: 1.2;
}
.aiv-hero-title a { color: #fff; transition: color .2s; }
.aiv-hero-title a:hover { color: var(--accent); }
.aiv-hero-excerpt {
  font-size: clamp(13px, 1.5vw, 15px);
  color: rgba(240,238,255,.7);
  line-height: 1.65;
  max-width: 600px;
  display: none; /* mobile: hidden */
}
.aiv-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.aiv-meta-author { color: var(--accent); font-weight: 500; }
.aiv-meta-sep { color: var(--text-dim); }

/* Hero sidebar */
.aiv-hero-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.aiv-side-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
  position: relative;
}
.aiv-side-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--accent));
  opacity: 0;
  transition: opacity .2s;
}
.aiv-side-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.aiv-side-card:hover::before { opacity: 1; }
.aiv-side-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.aiv-side-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.aiv-side-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(13px, 1.5vw, 14px);
  font-weight: 600;
  line-height: 1.35;
}
.aiv-side-title a { color: var(--text); transition: color .2s; }
.aiv-side-title a:hover { color: var(--accent); }
.aiv-side-date { font-size: 11px; color: var(--text-dim); }

/* ── NEWS GRID ── */
.aiv-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
.aiv-news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .25s, transform .25s;
  display: flex;
  flex-direction: column;
}
.aiv-news-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.aiv-news-img-wrap { overflow: hidden; }
.aiv-news-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform .4s;
}
.aiv-news-card:hover .aiv-news-img { transform: scale(1.04); }
.aiv-news-body {
  padding: clamp(12px, 3vw, 16px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.aiv-news-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 600;
  line-height: 1.35;
}
.aiv-news-title a { color: var(--text); transition: color .2s; }
.aiv-news-title a:hover { color: var(--accent); }
.aiv-news-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.aiv-news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.aiv-read-more {
  color: var(--purple-light);
  font-weight: 500;
  font-size: 12px;
  transition: color .2s;
}
.aiv-read-more:hover { color: var(--accent); }

/* ── CAT GRID ── */
.aiv-cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.aiv-cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  gap: 0;
  transition: border-color .2s, transform .2s;
}
.aiv-cat-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.aiv-cat-img-link { flex-shrink: 0; }
.aiv-cat-img {
  width: 110px;
  height: 80px;
  object-fit: cover;
}
.aiv-cat-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.aiv-cat-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(13px, 1.5vw, 14px);
  font-weight: 600;
  line-height: 1.3;
}
.aiv-cat-title a { color: var(--text); transition: color .2s; }
.aiv-cat-title a:hover { color: var(--accent); }
.aiv-cat-date { font-size: 11px; color: var(--text-dim); }

/* ── NEWSLETTER ── */
.aiv-newsletter {
  background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(168,85,247,.07));
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 6vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}
.aiv-newsletter::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 180px;
  background: radial-gradient(ellipse, rgba(124,58,237,.2), transparent 70%);
  pointer-events: none;
}
.aiv-newsletter-icon { font-size: 2rem; margin-bottom: .75rem; }
.aiv-newsletter h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  color: #fff;
  margin-bottom: .5rem;
  position: relative;
}
.aiv-newsletter p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 1.5rem;
  position: relative;
}
.aiv-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
}
.aiv-newsletter-form input {
  flex: 1;
  background: rgba(8,8,16,.6);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.aiv-newsletter-form input:focus { border-color: var(--purple-light); }
.aiv-newsletter-form input::placeholder { color: var(--text-dim); }
.aiv-newsletter-form button {
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Syne', sans-serif;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.aiv-newsletter-form button:hover { background: var(--purple-light); transform: translateY(-1px); }

/* ── HEADER OVERRIDE (Kadence) ── */
.main-header-bar,
.site-header {
  background: rgba(8,8,16,.92) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid var(--border2) !important;
}
.site-title a, .site-title a:visited {
  color: #fff !important;
  font-family: 'Syne', sans-serif !important;
  font-weight: 800 !important;
}
.main-navigation a {
  color: var(--text-muted) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}
.main-navigation a:hover { color: #fff !important; }
.main-navigation .current-menu-item > a { color: var(--accent) !important; }

/* ── FOOTER OVERRIDE ── */
.site-footer { background: #060610 !important; border-top: 1px solid var(--border) !important; }

/* ── ANIMATIONS ── */
@media (prefers-reduced-motion: no-preference) {
  .aiv-hero-main   { animation: aiv-fadeup .6s ease both; }
  .aiv-side-card:nth-child(1) { animation: aiv-fadeup .6s .1s ease both; }
  .aiv-side-card:nth-child(2) { animation: aiv-fadeup .6s .2s ease both; }
  .aiv-news-card   { animation: aiv-fadeup .5s ease both; }
  .aiv-news-card:nth-child(2) { animation-delay: .1s; }
  .aiv-news-card:nth-child(3) { animation-delay: .2s; }
}
@keyframes aiv-fadeup {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══ TABLET (min 640px) ══ */
@media (min-width: 640px) {
  .aiv-news-grid { grid-template-columns: repeat(2, 1fr); }
  .aiv-cat-grid  { grid-template-columns: repeat(2, 1fr); }
  .aiv-hero-excerpt { display: block; }
  .aiv-newsletter-form { flex-direction: row; }
  .aiv-cat-img { width: 130px; height: 90px; }
}

/* ══ DESKTOP (min 1024px) ══ */
@media (min-width: 1024px) {
  .aiv-hero-inner {
    grid-template-columns: 1fr 320px;
  }
  .aiv-hero-side {
    grid-template-columns: 1fr;
    gap: var(--gap);
  }
  .aiv-news-grid { grid-template-columns: repeat(3, 1fr); }
  .aiv-cat-grid  { grid-template-columns: repeat(4, 1fr); }
  .aiv-cat-img   { width: 100%; height: 120px; }
  .aiv-cat-card  { flex-direction: column; }
}

/* ══ WIDE (min 1280px) ══ */
@media (min-width: 1280px) {
  .aiv-hero-inner { grid-template-columns: 1fr 340px; }
}

/* ═══════════════════════════════════════════════
   SINGLE ARTICLE STYLES
   ═══════════════════════════════════════════════ */

/* ── PROGRESS BAR ── */
.aiv-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--accent));
  z-index: 9999;
  transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── ARTICLE HERO ── */
.aiv-article-hero {
  position: relative;
  min-height: clamp(340px, 55vw, 580px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--card);
}
.aiv-article-hero-img-wrap {
  position: absolute;
  inset: 0;
}
.aiv-article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.aiv-article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(8,8,16,1) 0%,
    rgba(8,8,16,.75) 40%,
    rgba(8,8,16,.2) 100%
  );
}
.aiv-article-hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(1.5rem, 5vw, 3rem) 0 0;
}
.aiv-article-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.aiv-article-cat { margin-bottom: 4px; }

.aiv-article-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  max-width: 800px;
}
.aiv-article-intro {
  font-size: clamp(14px, 1.8vw, 17px);
  color: rgba(240,238,255,.75);
  line-height: 1.65;
  max-width: 680px;
}

/* ── META ROW ── */
.aiv-article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.aiv-article-author-mini {
  display: flex;
  align-items: center;
  gap: 8px;
}
.aiv-author-avatar-mini {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--purple);
  object-fit: cover;
}
.aiv-meta-author { color: var(--accent); font-weight: 500; }
.aiv-meta-sep { color: var(--text-dim); }
.aiv-meta-read {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
}
.aiv-meta-words { color: var(--text-dim); }

/* ── SHARE ── */
.aiv-article-share {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.aiv-share-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.aiv-share-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: rgba(124,58,237,.1);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  text-decoration: none;
}
.aiv-share-btn:hover {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

/* ── ARTICLE LAYOUT ── */
.aiv-article-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--pad) 4rem;
}
.aiv-article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

/* ── ARTICLE BODY ── */
.aiv-article-body {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.8;
  color: rgba(240,238,255,.88);
}
.aiv-article-body h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  color: #fff;
  margin: 2rem 0 1rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.aiv-article-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 .75rem;
}
.aiv-article-body p { margin-bottom: 1.25rem; }
.aiv-article-body a { color: var(--purple-light); border-bottom: 1px solid rgba(168,85,247,.3); transition: color .2s; }
.aiv-article-body a:hover { color: var(--accent); }
.aiv-article-body ul,
.aiv-article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.aiv-article-body li { margin-bottom: .5rem; }
.aiv-article-body blockquote {
  border-left: 3px solid var(--purple);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(124,58,237,.08);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-muted);
}
.aiv-article-body img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}
.aiv-article-body strong { color: #fff; font-weight: 600; }
.aiv-article-body code {
  background: rgba(124,58,237,.15);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
  font-family: monospace;
}

/* ── TOC ── */
.aiv-toc {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.aiv-toc-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .75rem;
}
.aiv-toc-list {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.aiv-toc-list a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
  border-bottom: none !important;
}
.aiv-toc-list a:hover { color: var(--accent); }

/* ── TAGS ── */
.aiv-article-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.aiv-tags-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.aiv-tag {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(124,58,237,.1);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  transition: background .2s, color .2s;
}
.aiv-tag:hover {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

/* ── AUTHOR BOX ── */
.aiv-author-box {
  display: flex;
  gap: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  margin: 2rem 0;
  align-items: flex-start;
}
.aiv-author-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 2px solid var(--purple);
  object-fit: cover;
  flex-shrink: 0;
}
.aiv-author-info { display: flex; flex-direction: column; gap: 6px; }
.aiv-author-label {
  font-size: 10px;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}
.aiv-author-name {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.aiv-author-bio { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.aiv-author-link {
  font-size: 13px;
  color: var(--purple-light);
  font-weight: 500;
  transition: color .2s;
}
.aiv-author-link:hover { color: var(--accent); }

/* ── ARTICLE NEWSLETTER ── */
.aiv-article-newsletter {
  background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(168,85,247,.07));
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 1.5rem 0 2rem;
  text-align: center;
}
.aiv-article-newsletter h3 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.aiv-article-newsletter p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.aiv-nl-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 380px;
  margin: 0 auto;
}
.aiv-nl-form input {
  background: rgba(8,8,16,.6);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color .2s;
}
.aiv-nl-form input:focus { border-color: var(--purple-light); }
.aiv-nl-form input::placeholder { color: var(--text-dim); }
.aiv-nl-form button {
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Syne', sans-serif;
  cursor: pointer;
  transition: background .2s;
}
.aiv-nl-form button:hover { background: var(--purple-light); }

/* ── SIDEBAR ── */
.aiv-article-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.aiv-sidebar-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.aiv-sidebar-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 1rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.aiv-sidebar-title::before {
  content: '';
  width: 3px; height: 14px;
  background: var(--purple);
  border-radius: 2px;
}

/* Related */
.aiv-related-list { display: flex; flex-direction: column; gap: 12px; }
.aiv-related-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.aiv-related-item:last-child { border-bottom: none; padding-bottom: 0; }
.aiv-related-img-link { flex-shrink: 0; }
.aiv-related-img-link img {
  width: 80px; height: 60px;
  object-fit: cover;
  border-radius: 6px;
}
.aiv-related-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
}
.aiv-related-title a { color: var(--text); transition: color .2s; }
.aiv-related-title a:hover { color: var(--accent); }
.aiv-related-date { font-size: 11px; color: var(--text-dim); }

/* Latest */
.aiv-latest-list { display: flex; flex-direction: column; gap: 10px; }
.aiv-latest-item {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.aiv-latest-item:last-child { border-bottom: none; padding-bottom: 0; }
.aiv-latest-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 3px;
}
.aiv-latest-title a { color: var(--text); transition: color .2s; }
.aiv-latest-title a:hover { color: var(--accent); }
.aiv-latest-date { font-size: 11px; color: var(--text-dim); }

/* ── MORE ARTICLES ── */
.aiv-more-articles { margin-top: 1rem; }

/* ── RESPONSIVE SINGLE ── */
@media (min-width: 640px) {
  .aiv-nl-form { flex-direction: row; }
}

@media (min-width: 1024px) {
  .aiv-article-layout {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
  .aiv-article-sidebar {
    position: sticky;
    top: 80px;
  }
}
