/* ==========================================================================
   OSpectra — Command Center Agent
   Shared template (Agent_Template.css) covers owns/how/sees/closing/pager,
   all in the site's standard light theme. This file holds the accent token
   and the kept unique visual: the live dashboard card.
   Namespace: .cc-*
   ========================================================================== */

:root {
  --agent-accent: var(--purple-light);
  --agent-gradient: linear-gradient(135deg, #0f0c2c, #5B3FE0);
}

.btn-link {
  background: color-mix(in srgb, var(--agent-accent) 18%, white);
}

/* Pager links (Previous: Data Analyst, group 4; Next: back to the portfolio) — the
   group's real gradient (navy→purple) is too dark to read at pager-link size, so
   use the lighter purple pairing instead */
.agent-pager-prev,
.agent-pager-next {
  background: linear-gradient(135deg, #5B3FE0, #8a6ef5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head h2 {
  background: var(--agent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cc-hero-actions .btn-primary {
  background: var(--agent-gradient);
  box-shadow: 0 12px 24px -10px rgba(91, 63, 224, 0.5);
}

.cc-hero-actions .btn-primary .btn-circle {
  background: #fff;
}

.cc-hero-actions .btn-primary .btn-arrow {
  background: var(--agent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   HERO (kept unique visual: glow + live dashboard card)
   ========================================================================== */
.cc-hero {
  position: relative;
  overflow: hidden;
  padding: 6px 0 64px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f3ff 100%);
}

.cc-hero-glow {
  position: absolute;
  top: -220px;
  right: -140px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(138, 110, 245, 0.18) 0%, rgba(138, 110, 245, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.cc-hero-wrap {
  position: relative;
  z-index: 1;
}

.cc-hero-inner {
  max-width: 760px;
  margin-top: 26px;
}

.cc-hero-inner h1 {
  font-size: clamp(30px, 4vw, 50px);
  color: var(--ink);
  font-family: var(--font-montserrat-bold), sans-serif;
}

.cc-hero-inner h1 span {
  font-weight: 300;
  color: var(--purple);
}

.cc-hero-inner .lede {
  font-size: 15px;
  max-width: 620px;
  color: var(--muted);
  font-weight: 400;
}

.cc-hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.cc-dashboard-card {
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-top: 44px;
}

.cc-dashboard-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-live {
  margin-left: auto;
  color: #4ade80;
  letter-spacing: 0.06em;
}

.cc-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cc-panel {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 22px;
}

.cc-panel-priorities {
  grid-column: 1 / -1;
}

.cc-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.cc-panel-head h4 {
  font-size: 15.5px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.cc-panel-tag {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple-light);
  background: rgba(138, 110, 245, 0.16);
  padding: 4px 10px;
  border-radius: 20px;
}

.cc-panel-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 16px;
  max-width: 640px;
}

.cc-priority-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cc-priority-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cc-dot-red {
  background: #ef4a6a;
  box-shadow: 0 0 8px rgba(239, 74, 106, 0.7);
}

.cc-dot-amber {
  background: #fbbf60;
  box-shadow: 0 0 8px rgba(251, 191, 96, 0.6);
}

.cc-priority-label {
  flex: 1;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.88);
}

.cc-sev {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}

.cc-sev-high {
  color: #ff9baf;
  background: rgba(239, 74, 106, 0.16);
}

.cc-sev-med {
  color: #fbbf60;
  background: rgba(251, 191, 96, 0.14);
}

.cc-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.cc-chain-step {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.cc-chain-risk {
  color: #ff9baf;
  background: rgba(239, 74, 106, 0.14);
  border-color: rgba(239, 74, 106, 0.3);
}

.cc-chain-arrow {
  color: var(--purple-light);
  font-size: 13px;
  flex-shrink: 0;
}

.cc-fields {
  display: flex;
  flex-direction: column;
}

.cc-field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.88);
}

.cc-field-row:last-child {
  border-bottom: none;
}

.cc-field-row span:first-child {
  color: rgba(255, 255, 255, 0.48);
}

.cc-capacity-bar {
  height: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 10px;
}

.cc-capacity-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-light), var(--pink));
  border-radius: 6px;
}

.cc-capacity-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .cc-dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cc-panel-priorities {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .cc-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .cc-dashboard-card {
    padding: 20px;
  }
}
