/* =====================================================
   site-chrome.css — styles for site-chrome.js
   ===================================================== */

/* Scroll progress */
#beaucv-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 100;
  pointer-events: none;
  background: rgba(20,18,28,0.04);
}
#beaucv-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 50%, #fb923c 100%);
  transition: width 0.05s linear;
  box-shadow: 0 0 6px rgba(236,72,153,0.4);
}

/* Cmd-K palette */
#beaucv-palette {
  position: fixed; inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}
#beaucv-palette.open { display: flex; }
#beaucv-palette .lp-back {
  position: absolute; inset: 0;
  background: rgba(20,18,28,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#beaucv-palette .lp-card {
  position: relative;
  width: min(640px, calc(100vw - 32px));
  max-height: 70vh;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.95);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: 22px;
  box-shadow:
    0 1px 0 rgba(255,255,255,1) inset,
    0 30px 60px -20px rgba(20,18,28,0.32),
    0 12px 30px -8px rgba(139,92,246,0.18);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: lp-pop 0.18s ease-out;
}
@keyframes lp-pop {
  from { transform: translateY(-8px) scale(0.98); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.lp-search {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(20,18,28,0.08);
}
.lp-search .lp-icon {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(20,18,28,0.06);
  color: var(--ink-2);
}
.lp-search input {
  flex: 1;
  border: 0; outline: 0; background: transparent;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.lp-search kbd {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  padding: 3px 7px;
  background: rgba(20,18,28,0.06);
  border-radius: 6px;
  color: var(--ink-2);
}
.lp-results { overflow-y: auto; padding: 8px; }
.lp-grp {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 12px 10px 6px;
}
.lp-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  align-items: center;
  cursor: pointer;
  color: var(--ink-1);
}
.lp-item.on { background: rgba(139,92,246,0.1); color: var(--ink-0); }
.lp-item:hover { background: rgba(139,92,246,0.08); }
.lp-k {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: rgba(20,18,28,0.04);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: var(--ink-1);
}
.lp-item.on .lp-k { background: var(--grad-brand); color: white; }
.lp-t { font-size: 14.5px; }
.lp-h { font-family: "Geist Mono", monospace; font-size: 11px; color: var(--ink-3); }
.lp-empty { padding: 30px; text-align: center; color: var(--ink-2); font-size: 14px; }
.lp-foot {
  border-top: 1px solid rgba(20,18,28,0.08);
  padding: 10px 16px;
  display: flex; gap: 16px;
  font-size: 11.5px; color: var(--ink-2);
}
.lp-foot kbd {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  padding: 1px 5px;
  background: rgba(20,18,28,0.06);
  border-radius: 4px;
  margin-right: 4px;
}

/* Cmd-K trigger pill (for header) */
.cmdk-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 12px;
  border-radius: 999px;
  background: rgba(20,18,28,0.05);
  border: 1px solid rgba(20,18,28,0.08);
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cmdk-pill:hover { background: rgba(20,18,28,0.08); color: var(--ink-0); }
.cmdk-pill kbd {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(255,255,255,0.85);
  border-radius: 5px;
  color: var(--ink-1);
  box-shadow: 0 1px 0 rgba(20,18,28,0.06);
}

/* Mobile menu */
#beaucv-mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  display: none;
}
#beaucv-mobile-menu.open { display: block; }
#beaucv-mobile-menu .lmm-back {
  position: absolute; inset: 0;
  background: rgba(20,18,28,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#beaucv-mobile-menu .lmm-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(360px, 86vw);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-left: 1px solid rgba(255,255,255,0.95);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  animation: lmm-in 0.22s ease-out;
}
@keyframes lmm-in { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.lmm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.lmm-close {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: rgba(20,18,28,0.06);
  font-size: 22px; line-height: 1;
  color: var(--ink-1);
}
.lmm-list { display: flex; flex-direction: column; gap: 4px; }
.lmm-list a {
  padding: 12px 10px;
  border-radius: 10px;
  font-size: 17px;
  color: var(--ink-0);
  transition: background 0.15s;
}
.lmm-list a:hover { background: rgba(139,92,246,0.1); }
.lmm-sep { height: 1px; background: rgba(20,18,28,0.08); margin: 12px 10px; }

/* === Cookie banner (redesigned) === */
#beaucv-cookie {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 80;
  width: 420px;
  max-width: calc(100vw - 48px);
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 0.4s cubic-bezier(.2,.9,.3,1), transform 0.4s cubic-bezier(.2,.9,.3,1);
  pointer-events: none;
}
#beaucv-cookie.open { opacity: 1; transform: none; pointer-events: auto; }
#beaucv-cookie .lc-card {
  position: relative;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.95);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 22px;
  padding: 22px 22px 18px;
  box-shadow:
    0 1px 0 rgba(255,255,255,1) inset,
    0 -1px 0 rgba(0,0,0,0.04) inset,
    0 24px 50px -16px rgba(20,18,28,0.22),
    0 8px 18px -6px rgba(139,92,246,0.18);
  overflow: hidden;
}
#beaucv-cookie .lc-glow {
  position: absolute;
  inset: -40% -10% auto auto;
  width: 70%; height: 200%;
  background: radial-gradient(closest-side, rgba(236,72,153,0.35), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.7;
}
.lc-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 12px;
  align-items: center;
  position: relative;
}
.lc-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 60%, #fb923c 100%);
  color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 -1px 0 rgba(0,0,0,0.18) inset,
    0 6px 14px -4px rgba(236,72,153,0.45);
}
.lc-title {
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.015em;
  color: var(--ink-0);
}
.lc-meta {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 3px;
}
.lc-x {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: rgba(20,18,28,0.06);
  color: var(--ink-2);
  font-size: 18px; line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lc-x:hover { background: rgba(20,18,28,0.12); color: var(--ink-0); }

.lc-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 16px;
  position: relative;
}
.lc-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  background: rgba(20,18,28,0.04);
  border: 1px solid rgba(20,18,28,0.06);
  font-size: 11.5px;
  color: var(--ink-1);
}
.lc-cat em {
  font-family: "Geist Mono", monospace;
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-left: 4px;
  padding-left: 4px;
  border-left: 1px solid rgba(20,18,28,0.1);
}
.lc-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-3);
}
.lc-cat.on {
  background: rgba(34,197,94,0.14);
  border-color: rgba(34,197,94,0.22);
  color: #15803d;
}
.lc-cat.on .lc-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.18); }
.lc-cat.optional {
  background: rgba(139,92,246,0.1);
  border-color: rgba(139,92,246,0.18);
  color: #6d28d9;
}
.lc-cat.optional .lc-dot { background: #8b5cf6; }
.lc-cat.off {
  color: var(--ink-3);
  opacity: 0.65;
}

.lc-body {
  font-size: 13px;
  color: var(--ink-1);
  line-height: 1.5;
  margin-top: 14px;
  position: relative;
}
.lc-body b { color: var(--ink-0); font-weight: 600; }
.lc-body a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink-0);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  margin-left: 4px;
}

.lc-actions {
  display: flex;
  gap: 6px;
  margin-top: 18px;
  position: relative;
  flex-wrap: wrap;
}
.lc-btn {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lc-btn.ghost {
  color: var(--ink-1);
  background: rgba(255,255,255,0.7);
  border-color: rgba(20,18,28,0.08);
  flex: 1;
}
.lc-btn.ghost:hover {
  background: rgba(255,255,255,0.95);
  color: var(--ink-0);
  border-color: rgba(20,18,28,0.14);
}
.lc-btn.primary {
  position: relative;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #fb923c 100%);
  color: white;
  flex: 1.4;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 -1px 0 rgba(0,0,0,0.12) inset,
    0 8px 18px -4px rgba(236,72,153,0.45);
  overflow: hidden;
}
.lc-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 -1px 0 rgba(0,0,0,0.14) inset,
    0 12px 24px -4px rgba(236,72,153,0.55);
}
.lc-btn.primary .lc-sparkle {
  position: absolute; top: 0; left: -60%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.55) 50%, transparent 80%);
  transform: skewX(-18deg);
  animation: lc-sparkle 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes lc-sparkle {
  0% { left: -60%; }
  60%, 100% { left: 120%; }
}

@media (max-width: 640px) {
  #beaucv-cookie { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .cmdk-pill { display: none; }
  .lc-actions { flex-direction: column-reverse; }
  .lc-actions .lc-btn { width: 100%; flex: none; }
}
