/* ===== AI Agents Cards — ipg_ai_agents_cards ===== */

.ipg-agents-block {
  --ipg-bg: #121212;
  --ipg-card-body: #262626;
  --ipg-card-border: rgba(166, 147, 92, 0.28);
  --ipg-text: #ffffff;
  --ipg-text-muted: #a0a0a0;
  --ipg-accent: #4fb3b8;
  --ipg-radius: 16px;
  --ipg-metric-col: 72px;

  background: var(--ipg-bg);
  padding: 48px 20px;
  font-family: inherit;
}

.ipg-agents-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* --- Card --- */

.ipg-agent-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--ipg-radius);
  overflow: hidden;
  border: 1px solid var(--ipg-card-border);
  background: var(--ipg-card-body);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

/* --- Header --- */

.ipg-agent-card__header {
  position: relative;
  padding: 24px 24px 22px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ipg-agent-card__header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 130% 90% at 50% -25%, rgba(255, 214, 130, 0.14), transparent 58%),
    repeating-linear-gradient(
      -4deg,
      transparent 0,
      transparent 10px,
      rgba(255, 255, 255, 0.022) 10px,
      rgba(255, 255, 255, 0.022) 11px
    );
  pointer-events: none;
}

.ipg-agent-card__header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.ipg-agent-card__title {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ipg-text);
}

.ipg-agent-card__tags {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ipg-text-muted);
}

/* --- Body --- */

.ipg-agent-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.ipg-agent-card__text {
  flex: 1;
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ipg-text);
}

/* --- Metrics --- */

.ipg-agent-card__metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ipg-agent-card__metric {
  display: grid;
  grid-template-columns: var(--ipg-metric-col) 1fr;
  gap: 12px;
  align-items: center;
}

.ipg-agent-card__metric-value {
  max-width: var(--ipg-metric-col);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ipg-accent);
  text-align: right;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ipg-agent-card__metric-label {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ipg-text);
}

/* --- Responsive --- */

@media (max-width: 1100px) {
  .ipg-agents-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ipg-agents-block {
    padding: 32px 16px;
  }

  .ipg-agents-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ipg-agent-card__header,
  .ipg-agent-card__body {
    padding: 20px;
  }

  .ipg-agent-card__title {
    font-size: 18px;
  }
}
