/* wip-tab.css — shared "work in progress" placeholder for not-yet-built tabs
   (IPM, Room Rotation, Messages, Deliveries). Cosmic glass aesthetic, animated
   inline SVG + CSS motion that auto-plays on tab switch (no JS), reduced-motion
   safe. Namespaced `.wipx-*` so it never collides with the legacy `.wip-*` cards
   in base.css. Per-tab accent set via [data-accent] → --wipx-a / --wipx-b. */

.wipx-wrap {
  min-height: calc(100vh - var(--nav-h, 86px) - 40px);
  display: grid; place-items: center;
  padding: 48px 24px;
}
.wipx-card {
  --wipx-a: var(--accent-cyan, #38bdf8);
  --wipx-b: var(--accent-violet, #a78bfa);
  position: relative;
  width: min(680px, 100%);
  text-align: center;
  padding: 44px 40px 40px;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--wipx-a) 12%, transparent), transparent 60%),
    var(--glass-1, rgba(255,255,255,.04));
  border: 1px solid var(--glass-border-2, rgba(255,255,255,.14));
  box-shadow: 0 40px 110px rgba(2,4,14,.5), inset 0 1px 0 rgba(255,255,255,.05);
  animation: wipx-rise .6s cubic-bezier(.2,.7,.2,1) both;
}
.wipx-card[data-accent="lime"]   { --wipx-a: #84cc16; --wipx-b: #2dd4bf; }
.wipx-card[data-accent="cyan"]   { --wipx-a: #38bdf8; --wipx-b: #a78bfa; }
.wipx-card[data-accent="indigo"] { --wipx-a: #818cf8; --wipx-b: #38bdf8; }
.wipx-card[data-accent="violet"] { --wipx-a: #a78bfa; --wipx-b: #38bdf8; }
.wipx-card[data-accent="amber"]  { --wipx-a: #fbbf24; --wipx-b: #f6435f; }

/* faint orbiting field behind the icon */
.wipx-orbits { position: absolute; inset: 0; pointer-events: none; opacity: .5; }
.wipx-orbits svg { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 280px; height: 200px; }

.wipx-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px; border-radius: 100px;
  font: 700 11px/1 var(--font-display, 'Space Grotesk', sans-serif); letter-spacing: .14em; text-transform: uppercase;
  color: var(--wipx-a);
  background: color-mix(in srgb, var(--wipx-a) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--wipx-a) 45%, transparent);
}
.wipx-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--wipx-a); box-shadow: 0 0 8px var(--wipx-a);
  animation: wipx-blink 1.6s ease-in-out infinite;
}

.wipx-icon {
  position: relative; z-index: 1;
  width: 96px; height: 96px; margin: 22px auto 6px;
  display: grid; place-items: center;
  border-radius: 24px;
  background: color-mix(in srgb, var(--wipx-a) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--wipx-a) 30%, transparent);
  color: var(--wipx-a);
  animation: wipx-float 4.5s ease-in-out infinite;
}
.wipx-icon svg { width: 52px; height: 52px; display: block; }

.wipx-eyebrow {
  margin-top: 18px;
  font: 700 11px/1 var(--font-display, 'Space Grotesk', sans-serif); letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-dim, #64748b);
}
.wipx-title {
  margin: 10px 0 0; font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; letter-spacing: -.01em;
  background: linear-gradient(100deg, #fff, color-mix(in srgb, var(--wipx-a) 55%, #fff));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.wipx-lede {
  max-width: 46ch; margin: 12px auto 0;
  font-size: 14.5px; line-height: 1.6; color: var(--text-secondary, #cbd5e1);
}

.wipx-list {
  list-style: none; margin: 26px auto 0; padding: 0; max-width: 460px;
  display: grid; gap: 10px; text-align: left;
}
.wipx-list li {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 13.5px; line-height: 1.45; color: var(--text-secondary, #cbd5e1);
  padding: 11px 13px; border-radius: 13px;
  background: var(--glass-1, rgba(255,255,255,.04));
  border: 1px solid var(--glass-border, rgba(255,255,255,.08));
  animation: wipx-rise .5s cubic-bezier(.2,.7,.2,1) both;
}
.wipx-list li:nth-child(1) { animation-delay: .14s; }
.wipx-list li:nth-child(2) { animation-delay: .22s; }
.wipx-list li:nth-child(3) { animation-delay: .30s; }
.wipx-list li:nth-child(4) { animation-delay: .38s; }
.wipx-list li strong { color: var(--text-primary, #e8ecf6); font-weight: 700; }
.wipx-list li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 5px;
  background: linear-gradient(135deg, var(--wipx-a), var(--wipx-b));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.wipx-bar {
  margin: 30px auto 0; width: 200px; height: 4px; border-radius: 100px; overflow: hidden;
  background: var(--glass-2, rgba(255,255,255,.08));
}
.wipx-bar span {
  display: block; height: 100%; width: 40%; border-radius: 100px;
  background: linear-gradient(90deg, transparent, var(--wipx-a), var(--wipx-b), transparent);
  animation: wipx-slide 1.8s ease-in-out infinite;
}
.wipx-foot {
  margin: 16px 0 0; font-size: 12px; color: var(--text-dim, #64748b);
}

@keyframes wipx-rise  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes wipx-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes wipx-blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes wipx-slide { 0% { transform: translateX(-160%); } 100% { transform: translateX(420%); } }

@media (prefers-reduced-motion: reduce) {
  .wipx-card, .wipx-list li { animation: none; opacity: 1; transform: none; }
  .wipx-icon, .wipx-badge::before, .wipx-bar span, .wipx-orbits .wipx-spin { animation: none; }
}

/* ── Light mode ─────────────────────────────────────────────────────────────
   Glass fills/borders/list backgrounds consume tokens and auto-invert. Two
   leaks remain: the card's near-black drop shadow, and the title gradient,
   which blends toward #fff (invisible on a light surface). */
html[data-theme="light"] .wipx-card {
  box-shadow: 0 40px 110px rgba(80,90,160,0.16), inset 0 1px 0 rgba(255,255,255,0.6);
}
html[data-theme="light"] .wipx-title {
  background: linear-gradient(100deg, var(--text-primary), color-mix(in srgb, var(--wipx-a) 65%, var(--text-primary)));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
