/* ============================================================
   Jobit - Integraties › ATS koppelingen
   Builds on tokens.css + site.css + product-multiposter.css.
   Reuses the mp-* scaffold; adds the hero connection visuals
   (3 switchable directions) and a few page-specific sections.
   ============================================================ */

.atsk-page {
  /* wider right column so the bridge / feed visuals fit */
  --mp-visual-col: 500px;
}

/* ============================================================
   HERO VISUAL WRAPPER (replaces the square mp-hero-stage so the
   bridge + feed directions get a landscape canvas)
   ============================================================ */
.atsk-hero-visual {
  position: relative;
  width: 100%;
  min-height: calc(460px * var(--mp-visual-size, 1));
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
}
.atsk-stage {
  position: relative;
  width: 100%;
  max-width: 500px;
  transform: scale(var(--mp-visual-size, 1));
  transform-origin: center center;
}

/* small shared monogram mark used across the visuals */
.atsk-mk {
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; letter-spacing: -0.02em;
  flex-shrink: 0;
}

/* ============================================================
   DIRECTION 1 - Hub & Spoke constellation
   ============================================================ */
.v1-stage { height: 460px; }
.v1-hub {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 116px; height: 116px;
  border-radius: 28px;
  background: linear-gradient(135deg, white 0%, #f4f8ff 100%);
  box-shadow: 0 24px 60px rgba(67,100,173,0.20), 0 0 0 1px rgba(67,100,173,0.08);
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
}
.v1-hub img { width: 64px; height: 64px; object-fit: contain; }
.v1-hub::before {
  content: ""; position: absolute; inset: -14px;
  border-radius: 36px;
  background: radial-gradient(circle, rgba(67,100,173,0.16), transparent 60%);
  animation: v1Pulse 2.8s ease-out infinite;
  z-index: -1;
}
@keyframes v1Pulse {
  0% { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}
.v1-ring {
  position: absolute; left: 50%; top: 50%;
  border: 1.5px dashed rgba(67,100,173,0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.v1-ring.r1 { width: 280px; height: 280px; animation: v1Spin 50s linear infinite; }
.v1-ring.r2 { width: 420px; height: 420px; animation: v1Spin 80s linear infinite reverse; }
@keyframes v1Spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.v1-orbit { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; }
.v1-card {
  position: absolute;
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: 13px;
  padding: 9px 13px;
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700;
  color: var(--fg-strong);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
/* ATS blocks get a distinct treatment vs the plain white jobboard cards */
.v1-card.is-ats {
  background: var(--jobit-blue-50);
  border-color: rgba(54, 82, 142, 0.16);
  border-radius: 11px;
  padding: 11px 15px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(67,100,173,0.16);
}
/* "Jouw ATS" - dashed placeholder showing any ATS can connect */
.v1-card.is-any {
  background: var(--jobit-blue-50);
  border-style: dashed;
  border-color: var(--jobit-blue-300);
  box-shadow: var(--shadow-sm);
}
.v1-card.is-any .atsk-mk { font-size: 16px; line-height: 1; }
.v1-card .atsk-mk { width: 26px; height: 26px; border-radius: 7px; font-size: 11px; }
.v1-card .v1-tag {
  font-size: 9px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: white;
  background: var(--jobit-blue-600);
  padding: 2px 6px; border-radius: var(--r-pill);
}
/* rotated wrapper so the flowing dots travel ALONG each spoke - the
   keyframes animate only translateX, the rotate lives on .v1-spoke */
.v1-spoke {
  position: absolute; left: 50%; top: 50%;
  width: 0; height: 0;
  transform-origin: 0 50%;
  pointer-events: none;
}
.v1-line {
  position: absolute; left: 54px; top: -0.75px;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(67,100,173,0.5), rgba(67,100,173,0.08));
}
.v1-packet {
  position: absolute; left: 0; top: -3.5px;
  width: 7px; height: 7px; border-radius: 50%;
}
.v1-packet.out { background: var(--jobit-blue); box-shadow: 0 0 12px rgba(67,100,173,0.6); animation: v1FlowOut 2.8s ease-in-out infinite; }
.v1-packet.in  { background: var(--success); box-shadow: 0 0 12px rgba(46,157,111,0.6); animation: v1FlowIn 2.8s ease-in-out infinite; }
@keyframes v1FlowOut {
  0% { transform: translateX(54px) scale(0.6); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; transform: translateX(var(--end)) scale(1); }
  100% { transform: translateX(var(--end)) scale(0.4); opacity: 0; }
}
@keyframes v1FlowIn {
  0% { transform: translateX(var(--end)) scale(0.4); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; transform: translateX(54px) scale(1); }
  100% { transform: translateX(54px) scale(0.6); opacity: 0; }
}
.v1-legend {
  position: absolute; left: 50%; bottom: -6px;
  transform: translateX(-50%);
  display: flex; gap: 18px;
  font-size: 11px; font-weight: 600; color: var(--fg-muted);
  white-space: nowrap;
}
.v1-legend span { display: inline-flex; align-items: center; gap: 6px; }
.v1-legend i { width: 8px; height: 8px; border-radius: 50%; }

/* ============================================================
   PROBLEM SECTION - reuses .mp-problem; just the chip icon
   ============================================================ */
/* intro line inside the dark problem panel */
.atsk-ps-intro { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.78); margin: 0 0 20px; }
.atsk-ps-sol-intro { font-size: 14px; line-height: 1.55; color: var(--fg-muted); margin: 0 0 24px; }

/* ============================================================
   SYNC SECTION - what flows back and forth (3 directional cards)
   ============================================================ */
.atsk-sync-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.atsk-sync-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 800px; margin: 0 auto; }
.atsk-sync-card {
  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 28px 30px 32px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.atsk-sync-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--c); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.atsk-sync-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--c); }
.atsk-sync-card:hover::before { transform: scaleX(1); }
.atsk-sync-card[data-dir="out"] { --c: var(--jobit-blue); --cbg: var(--jobit-blue-50); }
.atsk-sync-card[data-dir="in"]  { --c: var(--success);    --cbg: var(--success-bg); }

/* directional flow row: Je ATS <-> Jobit with a travelling dot */
.atsk-sync-flow { display: flex; align-items: center; gap: 0; }
.atsk-sync-pill {
  font-size: 11.5px; font-weight: 800; letter-spacing: -0.01em;
  padding: 7px 13px; border-radius: var(--r-pill);
  background: var(--bg-subtle); border: 1px solid var(--border);
  color: var(--fg-strong); white-space: nowrap; flex-shrink: 0;
}
.atsk-sync-conn { position: relative; flex: 1; height: 3px; border-radius: 999px; background: var(--cbg); }
.atsk-sync-dot {
  position: absolute; top: 50%; left: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 10px var(--c);
  transform: translate(-50%, -50%);
}
.atsk-sync-card[data-dir="out"] .atsk-sync-dot { animation: atskSyncFlow 2.4s var(--ease-in-out) infinite; }
.atsk-sync-card[data-dir="in"] .atsk-sync-dot { animation: atskSyncFlowRev 2.4s var(--ease-in-out) infinite; }
@keyframes atskSyncFlow {
  0% { left: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes atskSyncFlowRev {
  0% { left: 100%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: 0; opacity: 0; }
}
.atsk-sync-icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: var(--cbg); color: var(--c);
  display: flex; align-items: center; justify-content: center;
  align-self: center;
}
.atsk-sync-icon svg { width: 30px; height: 30px; }
.atsk-sync-title { font-size: 20px; font-weight: 800; color: var(--fg-strong); margin: 0; letter-spacing: -0.01em; }
.atsk-sync-desc { font-size: 14px; line-height: 1.6; color: var(--fg-muted); margin: 0; }

/* ============================================================
   SUPPORTED ATS GRID
   ============================================================ */
.atsk-grid-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.atsk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 940px;
  margin: 0 auto;
}
.atsk-ats-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 30px 28px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-base) var(--ease-out);
}
.atsk-ats-card:hover { border-color: var(--mp-accent-200); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.atsk-ats-logo {
  height: 56px; border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  padding: 0 16px;
}
.atsk-ats-logo .atsk-mk { width: 38px; height: 38px; border-radius: 10px; font-size: 14px; }
.atsk-ats-logo-name { font-size: 17px; font-weight: 800; color: var(--fg-strong); letter-spacing: -0.01em; }
.atsk-ats-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; color: var(--success);
}
.atsk-ats-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(46,157,111,0.18); }
.atsk-ats-desc { font-size: 13.5px; line-height: 1.55; color: var(--fg-muted); margin: 0; }

/* "your ATS?" dashed card */
.atsk-ats-card.is-ask {
  background: var(--bg-subtle);
  border-style: dashed;
  border-color: var(--border-strong);
  align-items: flex-start;
  justify-content: center;
  text-decoration: none;
}
.atsk-ats-card.is-ask:hover { border-color: var(--mp-accent); background: var(--mp-accent-50); }
.atsk-ats-ask-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: white; border: 1px solid var(--border);
  color: var(--mp-accent);
  display: flex; align-items: center; justify-content: center;
}
.atsk-ats-ask-title { font-size: 17px; font-weight: 800; color: var(--fg-strong); letter-spacing: -0.01em; }
.atsk-ats-ask-link { font-size: 13px; font-weight: 700; color: var(--mp-accent); display: inline-flex; align-items: center; gap: 6px; }

/* ============================================================
   BENEFITS (dark blue) - icon cards instead of big numbers
   ============================================================ */
.atsk-benefits { background: var(--jobit-blue); color: white; position: relative; overflow: hidden; }
.atsk-benefits::before {
  content: ""; position: absolute; right: -10%; top: -20%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 70%);
  pointer-events: none;
}
.atsk-benefits-head { text-align: center; max-width: 760px; margin: 0 auto 56px; position: relative; z-index: 2; }
.atsk-benefits .eyebrow { background: rgba(255,255,255,0.14); color: white; }
.atsk-benefits-head .mp-section-title { color: white; }
.atsk-benefits-head .mp-section-title em { color: var(--mp-accent-100); }
.atsk-benefits-head .mp-section-sub { color: rgba(255,255,255,0.78); }
.atsk-benefits-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.atsk-benefit {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-xl);
  padding: 26px 22px;
  display: flex; flex-direction: column; gap: 14px;
  transition: all var(--dur-base) var(--ease-out);
}
.atsk-benefit:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.24); transform: translateY(-3px); }
.atsk-benefit-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,0.12);
  color: white;
  display: flex; align-items: center; justify-content: center;
}
.atsk-benefit-title { font-size: 16px; font-weight: 800; color: white; margin: 0; letter-spacing: -0.005em; line-height: 1.2; }
.atsk-benefit-desc { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.72); margin: 0; }

/* ============================================================
   "YOUR ATS NOT LISTED" BAND
   ============================================================ */
.atsk-aanvraag { background: var(--bg-subtle); }

/* product-multiposter.css forces the cta-band divider to white on .mp-page;
   here the section above the CTA is the subtle aanvraag band, so match it. */
.atsk-page .cta-band[data-divider-from="subtle"]::after { background: var(--bg-subtle); }
.atsk-aanvraag-card {
  background: linear-gradient(135deg, var(--jobit-blue-700), var(--jobit-blue));
  border-radius: var(--r-2xl);
  padding: 56px clamp(28px, 5vw, 64px);
  color: white;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.atsk-aanvraag-card::after {
  content: ""; position: absolute; right: -6%; bottom: -40%;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  pointer-events: none;
}
.atsk-aanvraag-eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--jobit-blue-100); margin-bottom: 14px; display: block;
}
.atsk-aanvraag-card h2 {
  font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.02em;
  font-weight: 800; color: white; margin: 0 0 14px; text-wrap: balance;
}
.atsk-aanvraag-card p { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.86); margin: 0; max-width: 520px; }
.atsk-aanvraag-actions { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 2; }
.atsk-aanvraag-actions .btn { justify-content: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .atsk-hero-visual { justify-self: center; margin-top: 16px; }
  .atsk-sync-grid { grid-template-columns: 1fr; }
  .atsk-grid { grid-template-columns: 1fr; max-width: 460px; }
  .atsk-benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .atsk-aanvraag-card { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .atsk-benefits-grid { grid-template-columns: 1fr; }
  .v3-stage { grid-template-columns: 1fr; height: auto; }
  .v2-stage { grid-template-columns: 1fr; }
}
