/* QA Agent Library */

/* ── Filter buttons ── */
.filter-btn {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  border: 1.5px solid #cbd5e1;
  background: white;
  cursor: pointer;
  transition: all 0.1s;
  color: #475569;
  font-weight: 500;
}
.filter-btn:hover { background: #f1f5f9; }
.filter-btn.active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: white;
}

/* ── Agent cards ── */
.agent-card {
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  cursor: pointer;
}
.agent-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -8px rgba(15,23,42,0.15);
}

/* ── Category pills ── */
.cat-pill {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 10px;
  border-radius: 9999px;
  font-weight: 700;
}
.cat-requirement-analysis { background: #dbeafe; color: #1d4ed8; }
.cat-test-design          { background: #dcfce7; color: #15803d; }
.cat-execution            { background: #fef3c7; color: #b45309; }
.cat-analysis-reporting   { background: #f3e8ff; color: #7e22ce; }
.cat-custom               { background: #fee2e2; color: #b91c1c; }

/* ── Tabs ── */
.tab-btn {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: all 0.1s;
  white-space: nowrap;
}
.tab-btn:hover { color: #1e293b; }
.tab-btn.active {
  color: #4f46e5;
  border-bottom-color: #4f46e5;
  font-weight: 600;
}

/* ── CTA pulse ── */
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.35); }
  50%       { box-shadow: 0 0 0 7px rgba(99,102,241,0); }
}
.cta-pulse { animation: cta-pulse 1.8s ease 0.4s 3; }

/* ── Code / pre ── */
pre { font-family: 'Menlo', 'Consolas', 'Courier New', monospace; }

/* ── Tier pills (on agent cards) ── */
.tier-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 9999px;
}
.tier-basic   { background: #dcfce7; color: #15803d; }
.tier-premium { background: #e0e7ff; color: #4338ca; }

/* ── Locked card ── */
.card-locked { opacity: 0.75; }
.card-locked:hover { transform: none; box-shadow: none; }

/* ── Modal backdrop ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* ── Modal box ── */
.modal-box {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.35);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s;
}
.modal-close:hover { background: #e2e8f0; }
