/* CardNav — floating centered navigation */
.cn-wrapper {
  position: relative;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cn-nav {
  background: #0e0c13;
  border: 1px solid rgba(230, 184, 64, 0.18);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.06);
  min-width: 340px;
  will-change: height;
}

/* Top bar */
.cn-top {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 10px;
}

/* Hamburger */
.cn-hamburger {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 10px;
  transition: all .2s cubic-bezier(.4,0,.2,1);
}
.cn-hamburger:hover {
  border-color: rgba(230,184,64,0.4);
  background: rgba(230,184,64,0.07);
}
.cn-line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #ede9e0;
  transition: transform .25s ease, opacity .2s;
  transform-origin: center;
  border-radius: 2px;
}
.cn-hamburger.open .cn-line:first-child { transform: translateY(3.5px) rotate(45deg); }
.cn-hamburger.open .cn-line:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* Center label */
.cn-center-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: "Montserrat", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ede9e0;
}
.cn-diamond { color: #e6b840; font-size: 9px; }
.cn-nav-text { opacity: 0.9; }

/* Kbd badge */
.cn-kbd {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 5px;
  padding: 2px 8px;
  font-family: "Geist Mono", monospace;
  font-size: 8.5px;
  color: #605c74;
  letter-spacing: 0.08em;
  user-select: none;
}

/* Cards container */
.cn-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  padding: 6px;
  height: 174px;
}
.cn-nav:not(.open) .cn-cards {
  visibility: hidden;
  pointer-events: none;
}
.cn-nav.open .cn-cards {
  visibility: visible;
  pointer-events: auto;
}

/* Individual card */
.cn-card {
  border-radius: 9px;
  padding: 12px 13px 10px;
  display: flex;
  flex-direction: column;
  transition: filter .18s;
  cursor: default;
}
.cn-card:hover { filter: brightness(1.14); }

.cn-card-label {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.cn-card-icon { font-size: 12px; opacity: 0.9; }

.cn-card-links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cn-card-link {
  background: none;
  border: none;
  color: rgba(237,233,224,0.55);
  font-family: "Montserrat", sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .15s;
}
.cn-card-link:hover { color: #ede9e0; }

.cn-arrow {
  font-size: 11px;
  opacity: 0.5;
  transition: opacity .15s, transform .15s;
  display: inline-block;
}
.cn-card-link:hover .cn-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* Responsive — CardNav en mobile */
@media (max-width: 760px) {
  .cn-nav { min-width: 0; width: min(320px, 92vw); }
  .cn-cards { grid-template-columns: 1fr 1fr; height: auto; }
  .cn-card { padding: 10px 11px 8px; }
  .cn-card-label { font-size: 12px; margin-bottom: 8px; }
  .cn-card-link { font-size: 10px; }
}
