/* =====================
   KEYBINDS – Dominate (Green / Premium)
   Matcher FAQ-tema (neutral mørk + grøn glow)
   ===================== */

html, body { margin: 0; padding: 0; }

.keybinds-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;

  color: #fff;
  font-family: var(--main-font);
  padding: 110px 0 0;

  background:
    radial-gradient(55% 55% at 50% 8%, rgba(2, 207, 92, 0.12), rgba(5, 5, 9, 0) 58%),
    radial-gradient(35% 45% at 18% 28%, rgba(1, 150, 67, 0.07), rgba(5, 5, 9, 0) 62%),
    radial-gradient(30% 40% at 85% 24%, rgba(2, 207, 92, 0.06), rgba(5, 5, 9, 0) 65%),
    #050509;
}


.keybinds-wrapper {
  flex: 1 0 auto;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 50px;
}

.keybinds-body footer,
.keybinds-body .footer,
.keybinds-body .site-footer {
  margin-top: auto;
}

/* =====================
   Header block
   ===================== */

.keybinds-header { margin: 12px 0 18px; }

.keybinds-title-block {
  position: relative;
  overflow: hidden;

  padding: 18px 18px 16px;
  border-radius: 20px;

  background: rgba(10, 10, 12, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.7);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.keybinds-title-block::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(60% 80% at 50% 0%, rgba(2, 207, 92, 0.16), rgba(0,0,0,0) 60%);
  pointer-events: none;
}

.keybinds-title-block::after {
  content: "";
  position: absolute;
  left: -20%;
  top: -40%;
  width: 140%;
  height: 120%;
  background: linear-gradient(90deg,
    rgba(2, 207, 92, 0) 0%,
    rgba(2, 207, 92, 0.06) 45%,
    rgba(2, 207, 92, 0) 70%);
  transform: rotate(-6deg);
  opacity: 0.35;
  pointer-events: none;
}

.keybinds-title-row{
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.keybinds-title-row h1 {
  margin: 0 0 6px;
  font-size: clamp(2.0rem, 3.2vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;

  background: linear-gradient(90deg, var(--servername-gradient));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.keybinds-title-row p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.74);
}

.keybinds-tools{
  position: relative;
  z-index: 1;
  margin-top: 14px;

  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* =====================
   Search + filters
   ===================== */

.kb-search{
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 999px;

  background: rgba(10, 10, 12, 0.66);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 16px 40px rgba(0,0,0,0.65);
}

.kb-search-icon{
  width: 18px; height: 18px;
  opacity: .75;
  background:
    radial-gradient(circle at 65% 35%, rgba(2,207,92,.95) 0 20%, transparent 21%),
    linear-gradient(45deg, transparent 0 55%, rgba(2,207,92,.9) 56% 64%, transparent 65% 100%);
  border-radius: 50%;
  position: relative;
}
.kb-search-icon::after{
  content:"";
  position: absolute;
  width: 10px; height: 2px;
  right: -7px; bottom: -2px;
  background: rgba(2,207,92,.85);
  transform: rotate(45deg);
  border-radius: 999px;
  opacity: .9;
}

.kb-search input{
  flex: 1;
  background: transparent;
  border: none;
  outline: none;

  color: rgba(255,255,255,0.92);
  font-size: 0.98rem;
}

.kb-search input::placeholder{
  color: rgba(255,255,255,0.55);
}

.kb-filters{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kb-filter{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 14px;
  border-radius: 999px;

  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;

  text-decoration: none;
  color: rgba(255,255,255,0.78);

  background: rgba(10,10,12,0.58);
  border: 1px solid rgba(255,255,255,0.08);

  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
  -webkit-tap-highlight-color: transparent;
}

.kb-filter:hover{
  transform: translateY(-2px);
  border-color: rgba(2,207,92,0.18);
  box-shadow: 0 0 0 1px rgba(2,207,92,0.05) inset, 0 18px 48px rgba(0,0,0,0.75);
}

.kb-filter.is-active{
  color: rgba(255,255,255,0.95);
  background: rgba(2,207,92,0.10);
  border-color: rgba(2,207,92,0.20);
  box-shadow: 0 0 0 1px rgba(2,207,92,0.06) inset, 0 18px 48px rgba(0,0,0,0.78);
}


.kb-count{
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
}

/* Filter farver (stadig premium, men som chips på billederne) */
.kb-filter--GENVEJ.is-active{ background: rgba(184, 140, 58, 0.16); border-color: rgba(184,140,58,0.34); }
.kb-filter--KORETOJ.is-active{ background: rgba(2,207,92,0.16); border-color: rgba(2,207,92,0.34); }
.kb-filter--BAAD.is-active{ background: rgba(92, 170, 168, 0.14); border-color: rgba(92,170,168,0.30); }
.kb-filter--FLY.is-active{ background: rgba(162, 120, 210, 0.14); border-color: rgba(162,120,210,0.30); }
.kb-filter--MOTORCYKEL.is-active{ background: rgba(94, 160, 128, 0.14); border-color: rgba(94,160,128,0.30); }
.kb-filter--CHAT.is-active{ background: rgba(160, 130, 80, 0.14); border-color: rgba(160,130,80,0.30); }

/* =====================
   Grid + cards
   ===================== */

.kb-grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.kb-card{
  position: relative;
  overflow: hidden;

  border-radius: 18px;
  padding: 18px 18px 16px;

  background: rgba(10, 10, 12, 0.70);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 16px 46px rgba(0,0,0,0.72);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.kb-card::before{
  content:"";
  position:absolute;
  left: 16px;
  right: 16px;
  top: 12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(2,207,92,0.95), rgba(1,150,67,0.15));
  opacity: .55;
}

.kb-card::after{
  content:"";
  position:absolute;
  right:-60px;
  top:-60px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(2,207,92,0.10), rgba(0,0,0,0) 60%);
  opacity: .40;
  pointer-events:none;
}

.kb-card:hover{
  transform: translateY(-3px);
  background: rgba(10,10,12,0.78);
  border-color: rgba(2,207,92,0.22);
  box-shadow: 0 0 0 1px rgba(2,207,92,0.06) inset, 0 26px 70px rgba(0,0,0,0.86);
}


.kb-card-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.kb-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kb-tag{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 5px 10px;
  border-radius: 999px;

  font-size: 0.70rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.06);
}

/* Tag farver */
.kb-tag--GENVEJ{ color: rgba(255, 213, 140, 0.98); background: rgba(184,140,58,0.14); border-color: rgba(184,140,58,0.28); }
.kb-tag--KORETOJ{ color: rgba(2,207,92,0.98); background: rgba(2,207,92,0.12); border-color: rgba(2,207,92,0.24); }
.kb-tag--BAAD{ color: rgba(150, 240, 238, 0.95); background: rgba(92,170,168,0.12); border-color: rgba(92,170,168,0.26); }
.kb-tag--FLY{ color: rgba(215, 190, 255, 0.95); background: rgba(162,120,210,0.12); border-color: rgba(162,120,210,0.26); }
.kb-tag--MOTORCYKEL{ color: rgba(170, 235, 205, 0.95); background: rgba(94,160,128,0.12); border-color: rgba(94,160,128,0.26); }
.kb-tag--CHAT{ color: rgba(255, 225, 175, 0.95); background: rgba(160,130,80,0.12); border-color: rgba(160,130,80,0.26); }

.kb-keycap{
  min-width: 52px;
  height: 44px;
  padding: 0 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;

  color: rgba(255,255,255,0.92);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 12px 26px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,0,0,0.35) inset;
}

.kb-title{
  margin: 14px 0 8px;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.35;
  color: rgba(255,255,255,0.95);
}

.kb-desc{
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.78;
  color: rgba(255,255,255,0.72);
  min-height: 44px;
}

.kb-actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.kb-delete-form{ margin: 0; }

/* =====================
   Buttons
   ===================== */

.kb-btn{
  border: none;
  cursor: pointer;
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 14px;
  border-radius: 12px;

  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;

  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);

  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
  -webkit-tap-highlight-color: transparent;
}

.kb-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.65);
  border-color: rgba(2,207,92,0.24);
}

.kb-btn--primary{
  background: rgba(2,207,92,0.16);
  border-color: rgba(2,207,92,0.30);
  color: rgba(255,255,255,0.96);
}

.kb-btn--ghost{
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.10);
}

.kb-btn--danger{
  background: rgba(220, 78, 78, 0.14);
  border-color: rgba(220, 78, 78, 0.26);
}

.kb-btn:focus{ outline: none; }

/* =====================
   Flash + empty
   ===================== */

.kb-flash{
  position: relative;
  z-index: 1;
  margin-top: 12px;

  padding: 12px 14px;
  border-radius: 14px;

  background: rgba(10,10,12,0.70);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.86);
}

.kb-flash.is-ok{
  border-color: rgba(2,207,92,0.30);
  background: rgba(2,207,92,0.10);
}

.kb-flash.is-err{
  border-color: rgba(220, 78, 78, 0.30);
  background: rgba(220, 78, 78, 0.10);
}

.kb-empty{
  grid-column: 1 / -1;
  padding: 18px;
  border-radius: 18px;
  background: rgba(10,10,12,0.62);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
}

/* =====================
   Dialog (Add/Edit)
   ===================== */

.kb-dialog{
  border: none;
  padding: 0;
  background: transparent;
}

.kb-dialog::backdrop{
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(8px);
}

.kb-form{
  width: min(720px, calc(100vw - 28px));
  border-radius: 18px;

  background: rgba(10,10,12,0.86);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 30px 120px rgba(0,0,0,0.80);

  padding: 16px;
}

.kb-form-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 6px 10px;
}

.kb-form-head h2{
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: white;
}

.kb-x{
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  cursor: pointer;
}
.kb-x:hover{ border-color: rgba(2,207,92,0.22); }

.kb-field{
  display:block;
  margin-top: 12px;
}

.kb-field > span{
  display:block;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.78);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.kb-field input,
.kb-field textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  padding: 12px 12px;
  outline: none;
  box-sizing: border-box;
}

.kb-field textarea{ resize: vertical; min-height: 110px; }

/* ===== Pænere kategori-chips (toggle) ===== */

.kb-checks{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 16px;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

/* Hele label = klikbart */
.kb-check{
  position: relative;
  display: inline-flex;
  align-items: center;
  user-select: none;
}

/* Skjul checkbox, men behold accessibility */
.kb-check input{
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

/* Chip */
.kb-check-pill{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 999px;

  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;

  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);

  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  transition: transform .16s ease, border-color .16s ease, background .16s ease,
    box-shadow .16s ease, color .16s ease;
  cursor: pointer;
}

/* Lille indikator-dot */
.kb-check-pill::before{
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;

  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.25) inset;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.kb-check:hover .kb-check-pill{
  transform: translateY(-2px);
  border-color: rgba(2,207,92,0.24);
  box-shadow: 0 18px 45px rgba(0,0,0,0.55);
}

/* Checked state */
.kb-check input:checked + .kb-check-pill{
  color: rgba(255,255,255,0.96);
  background: rgba(2,207,92,0.12);
  border-color: rgba(2,207,92,0.30);
  box-shadow:
    0 0 0 1px rgba(2,207,92,0.10) inset,
    0 22px 60px rgba(0,0,0,0.70);
}

.kb-check input:checked + .kb-check-pill::before{
  background: rgba(2,207,92,0.85);
  border-color: rgba(2,207,92,0.65);
  box-shadow:
    0 0 0 3px rgba(2,207,92,0.10),
    0 0 12px rgba(2,207,92,0.10);
  transform: scale(1.03);
}


/* Keyboard focus */
.kb-check input:focus-visible + .kb-check-pill{
  outline: none;
  box-shadow:
    0 0 0 2px rgba(2,207,92,0.22),
    0 0 0 1px rgba(2,207,92,0.10) inset,
    0 22px 60px rgba(0,0,0,0.70);
}

/* ===== Farve-varianter (bevarer jeres kategori-farver) ===== */
.kb-check-pill--GENVEJ{ color: rgba(255,213,140,0.92); border-color: rgba(184,140,58,0.22); }
.kb-check-pill--KORETOJ{ color: rgba(2,207,92,0.95); border-color: rgba(2,207,92,0.22); }
.kb-check-pill--BAAD{ color: rgba(150,240,238,0.92); border-color: rgba(92,170,168,0.22); }
.kb-check-pill--FLY{ color: rgba(215,190,255,0.92); border-color: rgba(162,120,210,0.22); }
.kb-check-pill--MOTORCYKEL{ color: rgba(170,235,205,0.92); border-color: rgba(94,160,128,0.22); }
.kb-check-pill--CHAT{ color: rgba(255,225,175,0.92); border-color: rgba(160,130,80,0.22); }

/* Når de er checked: brug deres farve som “active glow” */
.kb-check input:checked + .kb-check-pill--GENVEJ{ background: rgba(184,140,58,0.12); border-color: rgba(184,140,58,0.30); }
.kb-check input:checked + .kb-check-pill--KORETOJ{ background: rgba(2,207,92,0.12); border-color: rgba(2,207,92,0.30); }
.kb-check input:checked + .kb-check-pill--BAAD{ background: rgba(92,170,168,0.10); border-color: rgba(92,170,168,0.28); }
.kb-check input:checked + .kb-check-pill--FLY{ background: rgba(162,120,210,0.10); border-color: rgba(162,120,210,0.28); }
.kb-check input:checked + .kb-check-pill--MOTORCYKEL{ background: rgba(94,160,128,0.10); border-color: rgba(94,160,128,0.28); }
.kb-check input:checked + .kb-check-pill--CHAT{ background: rgba(160,130,80,0.10); border-color: rgba(160,130,80,0.28); }


.kb-form-actions{
  display:flex;
  align-items:center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

/* =====================
   Responsive
   ===================== */

@media (max-width: 1080px){
  .kb-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px){
  .kb-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){
  .keybinds-wrapper{ padding: 0 16px 44px; }
  .keybinds-body{ padding-top: 96px; }

  .keybinds-title-block{ border-radius: 18px; padding: 16px; }
  .kb-search{ flex-wrap: wrap; border-radius: 18px; }
}

/* Overskrift i kort – mere tema (grøn/Dominate) */
.kb-title{
  margin: 14px 0 8px;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.01em;

  /* grøn premium gradient */
  background: linear-gradient(90deg,
    rgba(2,207,92,0.98),
    rgba(1,150,67,0.75)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  /* subtil glow */
  text-shadow: 0 0 12px rgba(2,207,92,0.08);
}

/* =====================
   Soft navigation animation (filters/search)
   ===================== */

.kb-grid{
  transition: opacity .18s ease, transform .18s ease;
  will-change: opacity, transform;
}

.kb-grid.is-leaving{
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.kb-grid.is-entering{
  opacity: 0;
  transform: translateY(10px);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .kb-grid{ transition: none; }
  .kb-grid.is-leaving,
  .kb-grid.is-entering{
    opacity: 1;
    transform: none;
  }
}
