/* ================================================================
   skills.css  —  Toolkit Mind Map
   Matches Luique template: #F0EBE3 bg / #bdd5bf sage / #262626 ink
================================================================ */

.canvas-wrap {
  position: relative;
  width: 100%;
  overflow-x: auto;
  padding: 32px 0 60px;
  -webkit-overflow-scrolling: touch;
}
.mindmap-canvas { position: relative; margin: 0 auto; }

/* ── Filter bar ── */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; padding: 28px 20px 0;
}
.filter-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 18px; border-radius: 100px;
  border: 1.5px solid rgba(38,38,38,0.12);
  background: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #9a9a8a; cursor: pointer;
  text-decoration: none;
  transition: all 0.22s ease;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.filter-btn .icon { font-size: 14px; }
.filter-btn:hover { border-color: #bdd5bf; color: #262626; background: #e8f3e9; }
.filter-btn.active { background: #262626; border-color: #262626; color: #fff; box-shadow: 3px 3px 0 #bdd5bf; }
.filter-btn.all-btn.active { background: #7aaa7d; border-color: #7aaa7d; box-shadow: 3px 3px 0 #d4c4b0; }

/* ── SVG lines ── */
.flow-svg {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; overflow: visible;
}
.flow-path { fill: none; stroke: #bdd5bf; stroke-width: 1.5; opacity: 0.35; stroke-linecap: round; transition: opacity 0.3s, stroke-width 0.3s; }
.flow-path.lit  { opacity: 0.9; stroke-width: 2.5; stroke: #7aaa7d; }
.flow-path.dim  { opacity: 0.06; }
.flow-path.animated { stroke-dasharray: 6 8; animation: flowDash 2.5s linear infinite; }
@keyframes flowDash { to { stroke-dashoffset: -40; } }

/* ── Domain bubble ── */
.domain-node {
  position: absolute; transform: translate(-50%, -50%);
  text-align: center; cursor: pointer; z-index: 4;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.domain-node:hover { transform: translate(-50%,-50%) scale(1.06); }
.domain-bubble {
  width: 80px; height: 80px; border-radius: 50%;
  background: #fff; border: 2px solid #262626;
  box-shadow: 4px 4px 0 #bdd5bf, 0 8px 24px rgba(38,38,38,0.08);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto; transition: all 0.22s ease;
}
.domain-node:hover .domain-bubble,
.domain-node.active .domain-bubble { background: #262626; box-shadow: 5px 5px 0 #7aaa7d; }
.domain-node:hover .d-icon,
.domain-node.active .d-icon { filter: brightness(10); }
.d-icon { font-size: 26px; line-height: 1; }
.d-label-wrap { margin-top: 8px; }
.d-name { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #262626; white-space: nowrap; line-height: 1.3; }
.d-count { font-size: 10px; color: #9a9a8a; }

/* ── Skill chip ── */
.skill-node {
  position: absolute; transform: translate(-50%, -50%);
  z-index: 3; cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.skill-node:hover { transform: translate(-50%,-50%) scale(1.1); }
.skill-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: 100px;
  background: #fff; border: 1.5px solid rgba(38,38,38,0.1);
  font-size: 12px; font-weight: 500; color: #262626;
  white-space: nowrap; box-shadow: 2px 2px 0 rgba(38,38,38,0.07);
  transition: all 0.2s ease;
}
.skill-node.core .skill-chip { background: #e8f3e9; border-color: #bdd5bf; font-weight: 700; font-size: 13px; }
.skill-node:hover .skill-chip,
.skill-node.hovered .skill-chip,
.skill-node.tapped .skill-chip { background: #262626; color: #fff; border-color: #262626; box-shadow: 3px 3px 0 #bdd5bf; }
.skill-node.dim { opacity: 0.1; pointer-events: none; }
.core-dot { width: 5px; height: 5px; border-radius: 50%; background: #7aaa7d; flex-shrink: 0; }
.skill-node:hover .core-dot, .skill-node.hovered .core-dot { background: #bdd5bf; }

/* ── Tooltip ── */
.sk-tip {
  position: fixed; width: 270px;
  background: #fff; border: 2px solid #262626;
  border-radius: 16px; padding: 18px 20px 16px;
  box-shadow: 5px 5px 0 rgba(38,38,38,0.1);
  pointer-events: none; opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.18s, transform 0.18s; z-index: 9999;
}
.sk-tip.show { opacity: 1; transform: translateY(0) scale(1); }
.sk-tip-domain { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: #9a9a8a; margin-bottom: 5px; }
.sk-tip-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.2; }
.sk-tip-desc { font-size: 12.5px; line-height: 1.7; color: #555; }
.sk-tip-badge { display: inline-block; margin-top: 10px; padding: 3px 9px; border-radius: 4px; background: #e8f3e9; color: #7aaa7d; border: 1px solid #bdd5bf; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }

/* ── Custom cursor ── */
#sk-cur {
  position: fixed; width: 10px; height: 10px; border-radius: 50%;
  background: #262626; pointer-events: none; z-index: 99999;
  transform: translate(-50%,-50%);
  transition: width .15s, height .15s, background .15s;
  mix-blend-mode: multiply;
}
#sk-cur.big { width: 24px; height: 24px; background: #bdd5bf; }

/* ── Ripple ── */
@keyframes ripple {
  0%   { transform: translate(-50%,-50%) scale(0.8); opacity: 0.4; }
  100% { transform: translate(-50%,-50%) scale(2.4); opacity: 0; }
}
.ripple-ring {
  position: absolute; width: 80px; height: 80px; border-radius: 50%;
  border: 2px solid #bdd5bf; pointer-events: none;
  animation: ripple 0.6s ease-out forwards; z-index: 2;
}

/* ── Mobile drawer ── */
.sk-drawer {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 2px solid #262626;
  border-radius: 20px 20px 0 0;
  padding: 20px 22px 36px;
  box-shadow: 0 -6px 30px rgba(38,38,38,0.13);
  z-index: 99998;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.34,1.2,0.64,1);
}
.sk-drawer.show { transform: translateY(0); }
.sk-drawer-close {
  position: absolute; top: 14px; right: 16px;
  background: #F0EBE3; border: 1.5px solid rgba(38,38,38,0.15);
  border-radius: 50%; width: 30px; height: 30px;
  font-size: 12px; cursor: pointer; color: #262626;
  display: flex; align-items: center; justify-content: center;
}
.sk-drawer-domain { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: #9a9a8a; margin-bottom: 6px; }
.sk-drawer-name   { font-size: 20px; font-weight: 700; margin-bottom: 10px; line-height: 1.2; }
.sk-drawer-desc   { font-size: 13px; line-height: 1.75; color: #555; }
.sk-drawer-badge  { display: inline-block; margin-top: 12px; padding: 3px 10px; border-radius: 4px; background: #e8f3e9; color: #7aaa7d; border: 1px solid #bdd5bf; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }

@media (max-width: 767px) {
  .sk-drawer { display: block; }
  #sk-cur { display: none; }
  .sk-tip  { display: none; }
  .canvas-wrap::after {
    content: 'tap a skill for details  ·  swipe to explore →';
    display: block; text-align: center;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: #9a9a8a; padding-top: 8px;
  }
}
