/* ==========================================================================
   MONO — black / white / grey try-out
   Loaded after style.css. To go back to the violet + cyan look, delete the
   <link ... css/mono.css> line in index.html (or restore backups/before-mono-20261116).
   ========================================================================== */

/* ---------- Dark (default): pure black, soft grey glass, white pill buttons ---------- */
body[data-theme="dark"] {
  --bg: #000000;
  --surface: #0d0d0d;
  --surface-2: #0a0a0a;
  --accent: #4a0d57;            /* deep purple #35063e, lifted just enough to read on black: dim glows, shadows, bars */
  --accent-2: #dccbe0;          /* pale lilac-grey highlight: dots, playhead, focus ring */
  --accent-2-text: #e8dcec;
  --plum: #35063e;
  --plum-lite: #b46bc7;
  --plum-deep: #1a0320;
  --text: #f5f5f5;
  --text-muted: rgba(245, 245, 245, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --card-bg: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.014) 58%, rgba(255,255,255,0.024) 100%);
  --panel-bg: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  --card-glow-a: rgba(120, 30, 140, 0.17);
  --card-glow-b: rgba(120, 30, 140, 0.09);
  --seam-bg: rgba(255, 255, 255, 0.02);
  background: radial-gradient(120% 70% at 50% -8%, #170a1c 0%, #09060b 44%, #000 100%) fixed;
}
/* a quiet plum glow, top-left and mid-right, instead of the old violet + cyan */
body[data-theme="dark"] .glow { opacity: .2; }
body[data-theme="dark"] .glow-a { background: #5b1170; }
body[data-theme="dark"] .glow-b { background: #35063e; opacity: .22; }
body[data-theme="dark"]::before { background: radial-gradient(ellipse 85% 70% at 50% 35%, transparent 45%, rgba(0, 0, 0, 0.62) 100%); }

/* white pill buttons, like the reference */
body[data-theme="dark"] .btn-pill:not(.btn-whatsapp),
body[data-theme="dark"] .work-filter[aria-pressed="true"],
body[data-theme="dark"] .work-view-btn[aria-pressed="true"],
body[data-theme="dark"] .reel-bigplay,
body[data-theme="dark"] .process-num,
body[data-theme="dark"] .flow-num,
body[data-theme="dark"] .exp-mono,
body[data-theme="dark"] .reel-brand-tile--mono {
  background: linear-gradient(180deg, #ffffff 0%, #d9d9d9 100%);
  color: #0a0a0a;
  border-color: transparent;
  box-shadow: 0 10px 28px -10px rgba(255, 255, 255, 0.35), inset 0 1px 0 #ffffff;
}
body[data-theme="dark"] .btn-pill:not(.btn-whatsapp):hover { box-shadow: 0 14px 38px -10px rgba(180, 107, 199, 0.55), inset 0 1px 0 #ffffff; }
body[data-theme="dark"] .work-filter[aria-pressed="true"] .work-filter-count { opacity: .6; }
body[data-theme="dark"] .reel-bigplay { box-shadow: 0 0 0 8px rgba(255,255,255,.12), 0 16px 40px -12px rgba(0,0,0,.6); }

/* small plum accents on the live states */
body[data-theme="dark"] .orbit-item.is-active .orbit-dot { background: var(--plum-lite); border-color: var(--plum-lite); box-shadow: 0 0 0 5px rgba(180, 107, 199, 0.22); }
body[data-theme="dark"] .orbit-item.is-active .orbit-thumb { border-color: var(--plum-lite); box-shadow: 0 0 0 3px rgba(180, 107, 199, 0.25), 0 10px 22px -8px rgba(0, 0, 0, 0.7); }
body[data-theme="dark"] .reel-playhead { background: var(--plum-lite); box-shadow: 0 0 10px rgba(180, 107, 199, 0.7); }
body[data-theme="dark"] .reel-playhead::before { background: var(--plum-lite); }
body[data-theme="dark"] .pill-tag .dot { background: var(--plum-lite); box-shadow: 0 0 0 4px rgba(180, 107, 199, 0.22); }

/* floating tool logos: neutral glow instead of one colour per logo */
body[data-theme="dark"] .floater-chip { --glow: 255, 255, 255 !important; }

/* headline italic words fade white → grey, like the reference headline */
body[data-theme="dark"] .hero-title em,
body[data-theme="dark"] .section-title em {
  background: linear-gradient(180deg, #ffffff 15%, #9a86a6 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* card / panel edges: hairlines, no coloured rims */
body[data-theme="dark"] .reel-window {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.05), 0 44px 110px -40px rgba(140, 40, 170, 0.4);
}
body[data-theme="dark"] .orbit-frame {
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06), 0 40px 80px -28px rgba(140, 40, 170, 0.45);
}
body[data-theme="dark"] .reel-logos::before,
body[data-theme="dark"] .reel-logos::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), rgba(255,255,255,.12), transparent); }

/* ---------- Light: white paper, black ink ---------- */
body[data-theme="light"] {
  --bg: #f4f4f4;
  --accent: #1a1a1a;
  --accent-2: #3a3a3a;
  --accent-2-text: #2b2b2b;
  --text: #0c0c0c;
  --text-muted: rgba(12, 12, 12, 0.6);
  --border: rgba(0, 0, 0, 0.09);
  --border-strong: rgba(0, 0, 0, 0.16);
  --card-glow-a: rgba(0, 0, 0, 0.05);
  --card-glow-b: rgba(0, 0, 0, 0.03);
}
body[data-theme="light"] .btn-pill:not(.btn-whatsapp),
body[data-theme="light"] .work-filter[aria-pressed="true"],
body[data-theme="light"] .work-view-btn[aria-pressed="true"],
body[data-theme="light"] .process-num,
body[data-theme="light"] .flow-num,
body[data-theme="light"] .exp-mono,
body[data-theme="light"] .reel-brand-tile--mono {
  background: linear-gradient(180deg, #2a2a2a, #0a0a0a);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
}
body[data-theme="light"] .floater-chip { --glow: 0, 0, 0 !important; }

/* ---------- Important buttons: white pill warmed with purple, with a soft glowing halo ---------- */
body[data-theme="dark"] .btn-pill:not(.btn-whatsapp),
body[data-theme="dark"] .reel-bigplay {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, #ffffff 0%, #ede3f1 50%, #c7a6d3 100%);
  color: #14081a;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 0 26px -2px rgba(180, 107, 199, 0.55),
    0 14px 34px -10px rgba(112, 30, 142, 0.65);
  transition: transform .25s ease, box-shadow .3s ease;
}
/* breathing halo behind the button */
body[data-theme="dark"] .btn-pill:not(.btn-whatsapp)::before,
body[data-theme="dark"] .reel-bigplay::before {
  content: "";
  position: absolute; inset: -7px; z-index: -1;
  border-radius: inherit;
  background: radial-gradient(closest-side, rgba(176, 92, 206, 0.75), rgba(112, 30, 142, 0.0) 100%);
  filter: blur(12px);
  opacity: .55;
  animation: btn-halo 3.4s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes btn-halo {
  from { opacity: .35; transform: scale(.96); }
  to   { opacity: .8;  transform: scale(1.06); }
}
body[data-theme="dark"] .btn-pill:not(.btn-whatsapp):hover,
body[data-theme="dark"] .reel-bigplay:hover {
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 0 0 1px rgba(255, 255, 255, 0.5),
    0 0 38px 0 rgba(176, 92, 206, 0.75),
    0 18px 44px -10px rgba(112, 30, 142, 0.8);
}
body[data-theme="dark"] .btn-pill:not(.btn-whatsapp):hover::before { opacity: .9; }
@media (prefers-reduced-motion: reduce) {
  body[data-theme="dark"] .btn-pill:not(.btn-whatsapp)::before,
  body[data-theme="dark"] .reel-bigplay::before { animation: none; opacity: .55; }
}

/* process diagram: purple flow lines */
body[data-theme="dark"] .flow-line--run { stroke: var(--plum-lite); }
body[data-theme="dark"] .flow-screen { color: #e8dcec; }

body[data-theme="dark"] .flow-speed { border-color: rgba(180, 107, 199, 0.55); background: rgba(74, 13, 87, 0.45); box-shadow: 0 0 26px -4px rgba(180, 107, 199, 0.6); }
body[data-theme="dark"] .flow-speed svg { color: var(--plum-lite); }
body[data-theme="dark"] .flow-rail-track { background: linear-gradient(90deg, rgba(255,255,255,.14), rgba(180, 107, 199, 0.8)); }
body[data-theme="dark"] .flow-rail-track b { background: var(--plum-lite); box-shadow: 0 0 14px 3px rgba(180, 107, 199, 0.7); }

/* tools: purple glow under a hovered app icon */
body[data-theme="dark"] .tool-icon:hover .mac-icon { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 0 0 1px rgba(255,255,255,.12), inset 0 -10px 18px rgba(0,0,0,.35), 0 30px 46px -14px rgba(160, 80, 200, 0.55), 0 3px 6px rgba(0,0,0,.5); }

/* dock: a faint purple glow under the hovered icon */
body[data-theme="dark"] .dock-item:hover .mac-icon { box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 1px 0 rgba(255,255,255,.3), inset 0 -2px 6px rgba(0,0,0,.45), 0 18px 28px -8px rgba(160, 80, 200, 0.55); }

/* ---------- Reel "Sound" button: purple and pulsing while muted so it gets noticed ---------- */
body[data-theme] .reel-sound {
  color: #fff; font-weight: 600;
  background: linear-gradient(180deg, #a04dbf 0%, #7a2f93 100%);
  border-color: rgba(220, 180, 235, 0.55);
  box-shadow: 0 0 0 0 rgba(180, 107, 199, 0.55), 0 6px 18px -6px rgba(140, 50, 175, 0.7), inset 0 1px 0 rgba(255,255,255,.3);
  animation: sound-pulse 2.2s ease-out infinite;
}
body[data-theme] .reel-sound:hover { color: #fff; background: linear-gradient(180deg, #b45dd3 0%, #8a3aa3 100%); }
body[data-theme] .reel-sound[aria-pressed="true"] {
  animation: none; color: #fff;
  background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); box-shadow: none;
}
@keyframes sound-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(180, 107, 199, 0.55), 0 6px 18px -6px rgba(140, 50, 175, 0.7), inset 0 1px 0 rgba(255,255,255,.3); }
  70%  { box-shadow: 0 0 0 10px rgba(180, 107, 199, 0), 0 6px 18px -6px rgba(140, 50, 175, 0.7), inset 0 1px 0 rgba(255,255,255,.3); }
  100% { box-shadow: 0 0 0 0 rgba(180, 107, 199, 0), 0 6px 18px -6px rgba(140, 50, 175, 0.7), inset 0 1px 0 rgba(255,255,255,.3); }
}
@media (prefers-reduced-motion: reduce) { body[data-theme] .reel-sound { animation: none; } }
