/* ─── STARKE VISUALS – HERO IMAGES ────────────────────── */

/* Full-bleed Feature Image auf Artikelseite */
.article-visual {
  width: 100%;
  height: clamp(300px, 50vw, 600px);
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.article-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.85);
  transition: transform 8s ease;
}

.article-visual:hover img {
  transform: scale(1.03);
}

/* Purple overlay gradient */
.article-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 40%, var(--void) 100%),
    linear-gradient(135deg, rgba(155,48,255,0.2) 0%, transparent 60%);
}

/* AI-Generated badge */
.visual-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: rgba(12,11,20,0.8);
  padding: 0.3rem 0.7rem;
  backdrop-filter: blur(8px);
}

/* ─── EDITORIAL LAYOUTS ──────────────────────────────── */

/* Layout 1: Großes Hero-Visual oben, Text darunter */
.layout-hero-top .article-visual {
  height: clamp(400px, 55vw, 700px);
  margin-bottom: -4rem;
}

.layout-hero-top .article-hero {
  position: relative;
  z-index: 1;
  background: linear-gradient(to top, var(--void) 80%, transparent);
  padding-top: 6rem;
}

/* Layout 2: Visual rechts, Text links (Split) */
.layout-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  align-items: stretch;
}

.layout-split .article-visual {
  height: 100%;
  position: sticky;
  top: 0;
}

.layout-split .article-hero {
  padding: 8rem 3rem 4rem;
}

/* ─── INLINE VISUALS im Artikel ──────────────────────── */

/* Großes Bild mit Caption */
.visual-block {
  margin: 3rem -2rem;
  position: relative;
}

.visual-block img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: saturate(0.85);
  display: block;
}

.visual-block figcaption {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.visual-block figcaption::before {
  content: '// AI';
  color: var(--purple);
}

/* Pulled quote mit Visual-Hintergrund */
.visual-quote {
  position: relative;
  margin: 3rem 0;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: center;
}

.visual-quote-bg {
  position: absolute;
  inset: 0;
  background: var(--surface);
}

.visual-quote-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: saturate(0);
}

.visual-quote-text {
  position: relative;
  z-index: 1;
  padding: 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  border-left: 3px solid var(--purple);
}

/* ─── CARD VISUALS ───────────────────────────────────── */

/* Post card mit starkem Visual */
.post-card-visual {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  margin: -2rem -2rem 1.5rem;
}

.post-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.85);
  transition: transform 0.6s;
}

.post-card:hover .post-card-visual img {
  transform: scale(1.05);
}

.post-card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(14,14,30,0.9) 100%);
}

/* Featured post visual */
.post-featured-image-full {
  position: relative;
  aspect-ratio: 21/9;
  overflow: hidden;
  margin-bottom: 3rem;
}

.post-featured-image-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.8);
}

.post-featured-image-full::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(12,11,20,0.6) 70%,
    var(--void) 100%
  );
}

.post-featured-overlay {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  z-index: 1;
}

.post-featured-overlay .post-title {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--text-primary);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* ─── KATEGORIE VISUALS ──────────────────────────────── */
.category-card-visual {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  margin: -1.8rem -1.8rem 1.2rem;
}

.category-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6) brightness(0.5);
  transition: transform 0.6s;
}

.category-card:hover .category-card-visual img {
  transform: scale(1.05);
}

.category-card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(14,14,30,0.8));
}

/* ─── LOADING SKELETON ───────────────────────────────── */
.visual-skeleton {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.visual-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(155,48,255,0.05) 50%,
    transparent 100%
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

.visual-generating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple);
}

.visual-generating::before {
  content: '//';
  opacity: 0.5;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .layout-split        { grid-template-columns: 1fr; }
  .visual-block        { margin: 2rem 0; }
  .post-card-visual    { margin: -1.2rem -1.2rem 1rem; }
}
