/* ============================================================
   Prompt Rocker Terminal Card
   CSS Custom Properties mit Fallbacks (child theme unabhängig)
   ============================================================ */

/* Elementor visibility override */
.elementor-widget-pr-terminal-card,
.elementor-widget-pr-terminal-card.elementor-invisible {
  visibility: visible !important;
}

/* ── CARD ─────────────────────────────────────────────────── */
.pr-tc-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--pr-surface, #131519);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color 0.25s, box-shadow 0.25s;
}

/* ── HEADER ───────────────────────────────────────────────── */
.pr-tc-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 12px 16px;
  background-color: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.09);
  flex-shrink: 0;
}

/* ── DOTS ─────────────────────────────────────────────────── */
.pr-tc-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.pr-tc-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #4B5563;
}
.pr-tc-dot:nth-child(1) {
  background-color: #F59E0B;
}

/* ── LABEL ────────────────────────────────────────────────── */
.pr-tc-label {
  font-family: var(--pr-font-mono, 'DM Mono', 'SF Mono', 'Menlo', monospace);
  font-size: 0.66rem;
  letter-spacing: 0.10em;
  color: rgba(240,237,232,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

/* ── BODY ─────────────────────────────────────────────────── */
.pr-tc-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ── MEDIA: TOP ───────────────────────────────────────────── */
.pr-tc-media-top {
  margin-bottom: 18px;
  flex-shrink: 0;
}

/* ── MEDIA: HORIZONTAL ────────────────────────────────────── */
.pr-tc-layout-h {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
}
.pr-tc-layout-h-reverse {
  flex-direction: row-reverse;
}
.pr-tc-text-block {
  flex: 1;
  min-width: 0;
}

/* ── ICON ─────────────────────────────────────────────────── */
.pr-tc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background-color: rgba(245,158,11,0.12);
  color: var(--pr-amber, #F59E0B);
  flex-shrink: 0;
}
.pr-tc-icon i,
.pr-tc-icon svg {
  width: 24px;
  height: 24px;
  font-size: 24px;
  color: inherit;
}

/* ── IMAGE ────────────────────────────────────────────────── */
.pr-tc-image {
  flex-shrink: 0;
}
.pr-tc-image img {
  display: block;
  width: 80px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

/* ── TITLE ────────────────────────────────────────────────── */
.pr-tc-title {
  font-family: var(--pr-font-body, 'Inter Tight', system-ui, sans-serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--pr-text, #F0EDE8);
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 8px 0;
}

/* ── DESCRIPTION ──────────────────────────────────────────── */
.pr-tc-desc {
  font-family: var(--pr-font-body, 'Inter Tight', system-ui, sans-serif);
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(240,237,232,0.75);
  margin: 0;
}

/* ── LINK ─────────────────────────────────────────────────── */
.pr-tc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pr-amber, #F59E0B);
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
}
.pr-tc-link:hover {
  gap: 0.65rem;
  color: var(--pr-amber-h, #FBBF24);
}

/* ── BADGES ───────────────────────────────────────────────── */
.pr-tc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.pr-tc-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background-color: transparent;
  color: var(--pr-text, #F0EDE8);
  font-family: var(--pr-font-mono, 'DM Mono', monospace);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
  line-height: 1;
}

/* ── LIGHT MODE ───────────────────────────────────────────── */
html.light .pr-tc-card {
  background-color: var(--pr-surface, #F7F3EE);
  border-color: rgba(0,0,0,0.12);
}
html.light .pr-tc-header {
  background-color: rgba(0,0,0,0.04);
  border-bottom-color: rgba(0,0,0,0.09);
}
html.light .pr-tc-label {
  color: rgba(25,24,26,0.55);
}
html.light .pr-tc-title {
  color: var(--pr-text, #19181A);
}
html.light .pr-tc-desc {
  color: rgba(25,24,26,0.75);
}
html.light .pr-tc-badge {
  border-color: rgba(0,0,0,0.20);
  color: var(--pr-text, #19181A);
}

/* ── REDUCED MOTION ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .pr-tc-card,
  .pr-tc-link { transition: none !important; }
}
