/* =========================================================
   ZAR AI HEADER — CLEAN + CONSISTENT
   Fixes:
   - Removes duplicate rules
   - Stabilizes sizing (no layout shifts)
   - Improves mobile wrapping
========================================================= */

/* =================================
   HEADER WRAPPER
================================= */

.zar-llm-header--enhanced {
  display: flex;
  align-items: center;
  gap: 0.75rem;

  margin: 0.35rem 0 1rem 0;

  flex-wrap: wrap;
}


/* =================================
   ICON CONTAINER
================================= */

.zar-ai-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;
  flex: 0 0 34px;

  border-radius: 50%;

  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.12), rgba(255,255,255,0.02) 45%, transparent 70%);

  box-shadow:
    0 0 18px rgba(186, 118, 255, 0.18),
    0 0 34px rgba(93, 131, 255, 0.12);
}


/* =================================
   ICON
================================= */

.zar-ai-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.zar-ai-icon--mini {
  width: 16px;
  height: 16px;
}

/* SVG styling */
.zar-ai-icon-fill-solid {
  fill: #d88cff;
}

.zar-ai-icon-stroke {
  stroke: rgba(255,255,255,0.55);
  stroke-width: 1.15;
}


/* =================================
   TITLE
================================= */

.zar-llm-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.01em;

  color: #f3f6ff;

  line-height: 1.2;
}


/* =================================
   SUB LABEL (PILL)
================================= */

.zar-llm-sub {
  display: inline-flex;
  align-items: center;

  min-height: 34px;
  padding: 0.2rem 0.75rem;

  border-radius: 999px;

  border: 1px solid rgba(157, 130, 255, 0.22);
  background: rgba(255,255,255,0.035);

  color: rgba(220, 227, 255, 0.9);

  font-size: 0.82rem;
  font-weight: 700;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 6px 18px rgba(40, 28, 78, 0.16);
}


/* =================================
   OPTIONAL WRAPPER BLOCK
================================= */

.zar-city-block.zar-city-block--zarai.zar-ai-primary {
  padding: 10px;
  border-radius: 10px;
  background: rgba(23, 23, 26, 0.6);
}

.zar-city-block.zar-city-block--zarai.zar-ai-primary {
  position: relative;
  padding: 16px 18px;
  border-radius: 14px;

  /* Deep layered background */
  background: linear-gradient(
    135deg,
    rgba(28, 28, 34, 0.85) 0%,
    rgba(20, 20, 26, 0.9) 100%
  );

  /* Subtle border glow */
  border: 1px solid rgba(120, 120, 255, 0.12);

  /* Depth (very important) */
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition: all 0.25s ease;
}

/* Optional: soft hover lift (makes it feel alive) */
.zar-city-block.zar-city-block--zarai.zar-ai-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(140, 140, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Top subtle highlight line (premium feel) */
.zar-city-block.zar-city-block--zarai.zar-ai-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(140, 140, 255, 0.35),
    transparent
  );

  opacity: 0.6;
}

/* Optional: faint inner glow aura */
.zar-city-block.zar-city-block--zarai.zar-ai-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background: radial-gradient(
    circle at top left,
    rgba(120, 120, 255, 0.08),
    transparent 60%
  );

  pointer-events: none;
}
.zar-ai-v1-eyebrow {
    /* box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04); */
    font-size: clamp(0.74rem, 1.20vw, 1.34rem);
    color: #b28dbf;
    /* background: #181923; */
}
.zar-llm-stream-content {
    margin: 1rem 0;
}
/* =========================================================
   MOBILE OPTIMIZATION
========================================================= */

@media (max-width: 768px) {

  .zar-llm-header--enhanced {
    gap: 0.6rem;
    margin-bottom: 0.8rem;
  }

  .zar-ai-icon-wrap {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
  }

  .zar-ai-icon {
    width: 20px;
    height: 20px;
  }

  .zar-llm-title {
    font-size: 1rem;
  }

  .zar-llm-sub {
    font-size: 0.75rem;
    padding: 0.18rem 0.65rem;
    min-height: 30px;
  }

}


/* =========================================================
   EXTRA SMALL DEVICES
========================================================= */

@media (max-width: 480px) {

  .zar-llm-header--enhanced {
    flex-direction: row;
    align-items: center;
  }

  .zar-llm-title {
    font-size: 0.95rem;
  }

  .zar-llm-sub {
    font-size: 0.72rem;
  }

}