/*
Theme Name: FB Like Button Tools
Template: legal-base
Author: Onlino
Description: Child-thema voor fbaddlikebutton.com (facebook-tools, en). Meertalig: en + nl/de/fr/es/it/pt/pl/sv/da taalfolders. Tool-first, brutalist design: geen gradients, geen soft shadows, 1 sterke accentkleur, dikke borders.
Version: 2.0.0
*/

/* === Palet: eigen 12 tokens, monochroom blauw (geen gradient-mix) === */
:root{
  --accent:        #1449E0;
  --accent-rgb:    20,73,224;
  --accent-2:      #0F3BC0;
  --accent-2-rgb:  15,59,192;
  --accent-3:      #0B2F8A;
  --accent-3-rgb:  11,47,138;
  --accent-light:  #4C74F5;
  --accent-bg:     #F4F1E9;
  --accent-bg-2:   #F4F1E9;
  --accent-bg-3:   #EDEAE0;
  --accent-bg-soft:#F4F1E9;
  --accent-bg-alt: #EDEAE0;

  /* extra tokens voor het brutalist systeem */
  --ink:   #0B0E14;
  --paper: #F4F1E9;
  --off:   6px;
}

/* ════════════════════════════════════════════════════════════════════════
   GLOBAL OVERRIDES , canvas, typografie, borders i.p.v. blur/gradient
   ════════════════════════════════════════════════════════════════════════ */
body { background: var(--paper); }

.btn {
  border-radius: 6px;
  border: 2px solid var(--ink);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 13.5px;
  box-shadow: var(--off) var(--off) 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: calc(var(--off) + 2px) calc(var(--off) + 2px) 0 var(--ink); }
.btn:active { transform: translate(0,0); box-shadow: 2px 2px 0 var(--ink); }
.btn-dark { background: var(--accent); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: var(--accent-2); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-outline { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: var(--off) var(--off) 0 var(--ink); }

.avg-header { background: var(--paper); border-bottom: 2px solid var(--ink); backdrop-filter: none; }
.avg-logo img { height: 42px; }
.avg-nav a { color: var(--ink); font-weight: 700; text-transform: uppercase; font-size: 12.5px; letter-spacing: .03em; }
.avg-nav a:hover { color: var(--accent); }
.avg-burger { border-radius: 6px; border: 2px solid var(--ink); }

.avg-footer { background: var(--ink); }

/* ════════════════════════════════════════════════════════════════════════
   LANGUAGE SWITCHER , header dropdown, brutalist (vierkant, geen pills)
   ════════════════════════════════════════════════════════════════════════ */
.lang-switch { position: relative; flex-shrink: 0; }
.lang-switch__current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 6px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .03em;
  color: var(--ink);
  user-select: none;
}
.lang-switch__current::-webkit-details-marker { display: none; }
.lang-switch__current::after {
  content: '';
  width: 0; height: 0;
  margin-left: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--ink);
}
.lang-switch[open] .lang-switch__current { background: var(--accent); color: var(--white); }
.lang-switch[open] .lang-switch__current::after { border-top-color: var(--white); }
.lang-switch__flag { font-size: 15px; line-height: 1; }
.lang-switch__code { font-family: 'Courier New', monospace; }

.lang-switch__list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  min-width: 190px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  max-height: 340px;
  overflow-y: auto;
}
.lang-switch__list li { list-style: none; }
.lang-switch__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.lang-switch__item:hover { background: var(--paper); }
.lang-switch__item.is-active { background: var(--ink); color: var(--white); }
.lang-switch__check { margin-left: auto; font-size: 12px; }

/* Mobile drawer: static, always-open grid instead of a dropdown */
.lang-switch--mobile { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.lang-switch__list--static {
  position: static;
  border: none;
  box-shadow: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  max-height: none;
}
.lang-switch__list--static .lang-switch__item { border: 2px solid var(--ink); border-radius: 6px; }
@media (min-width: 781px) { .lang-switch--mobile { display: none; } }

/* ════════════════════════════════════════════════════════════════════════
   TOOLS , brutalist shell, gedeeld door font generator, emoji, sizes,
   birthday én de homepage-toolwidget. Geen zachte hero, geen gradients.
   ════════════════════════════════════════════════════════════════════════ */
.fb-page-head { padding: 40px 0 28px; border-bottom: 2px solid var(--ink); background: var(--paper); }
.fb-page-head__badge {
  display: inline-block;
  padding: 5px 12px;
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}
.fb-page-head h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1.02;
  margin-bottom: 12px;
  max-width: 820px;
}
.fb-page-head p {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--ink);
  opacity: .7;
  max-width: 620px;
  line-height: 1.55;
  font-weight: 500;
}

.tool-widget {
  margin: 28px 0 40px;
  padding: 28px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--off) var(--off) 0 var(--ink);
}
@media (max-width: 640px) { .tool-widget { padding: 18px; box-shadow: 4px 4px 0 var(--ink); } }

.tool-widget__label {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.tool-input {
  width: 100%;
  padding: 16px 18px;
  font-size: 19px;
  font-weight: 600;
  border: 2px solid var(--ink);
  background: var(--paper);
  border-radius: 6px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: box-shadow .12s;
}
.tool-input:focus { background: var(--white); box-shadow: 4px 4px 0 var(--accent); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--white);
  transition: all .12s;
  white-space: nowrap;
}
.copy-btn:hover { background: var(--accent); border-color: var(--ink); transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.copy-btn.is-copied { background: #16A34A; border-color: var(--ink); }

/* ── Font generator: live output list ─────────────────────────────────── */
.font-gen__results { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.font-style-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 6px;
}
.font-style-row__name { font-size: 11.5px; font-weight: 800; color: var(--ink); text-transform: uppercase; letter-spacing: .04em; opacity: .55; }
.font-style-row__text { font-size: 19px; font-weight: 600; color: var(--ink); word-break: break-word; line-height: 1.4; }
@media (max-width: 640px) {
  .font-style-row { grid-template-columns: 1fr; gap: 8px; }
  .font-style-row__name { order: 1; }
  .font-style-row__text { order: 2; }
  .copy-btn { order: 3; justify-self: start; }
}

/* ── Homepage: other tools as a simple row (geen feature-cards/emoji-iconen) ── */
.fb-toolrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0; }
@media (max-width: 860px) { .fb-toolrow { grid-template-columns: 1fr; } }
.fb-toolrow a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.fb-toolrow a:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.fb-toolrow__label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.fb-toolrow__title { font-size: 20px; font-weight: 900; color: var(--ink); letter-spacing: -.01em; }
.fb-toolrow__desc { font-size: 13.5px; color: var(--ink); opacity: .65; line-height: 1.5; }

/* ── Section headings used across homepage/tool pages (no gradients) ──── */
.fb-section { padding: 56px 0; border-top: 2px solid var(--ink); background: var(--paper); }
.fb-section__label { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.fb-section h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 900; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; margin-bottom: 10px; }
.fb-section p.fb-section__sub { color: var(--ink); opacity: .65; font-size: 15.5px; max-width: 560px; margin-bottom: 32px; }

/* ── Guides / blog list (replaces steps + latest soft cards) ──────────── */
.fb-guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .fb-guides-grid { grid-template-columns: 1fr; } }
.fb-guide-card { display: block; padding: 20px 22px; background: var(--white); border: 2px solid var(--ink); border-radius: 8px; transition: transform .12s, box-shadow .12s; }
.fb-guide-card:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.fb-guide-card__cat { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 8px; display: block; }
.fb-guide-card__title { font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.3; margin-bottom: 8px; }
.fb-guide-card__desc { font-size: 13.5px; color: var(--ink); opacity: .65; line-height: 1.5; }

/* ── Emoji library ──────────────────────────────────────────────────── */
.emoji-search { width: 100%; padding: 14px 18px; font-size: 15px; font-weight: 600; border: 2px solid var(--ink); background: var(--paper); border-radius: 6px; margin-bottom: 24px; outline: none; }
.emoji-search:focus { box-shadow: 4px 4px 0 var(--accent); }
.emoji-cat { margin-bottom: 28px; }
.emoji-cat__title { font-size: 12px; font-weight: 800; color: var(--ink); letter-spacing: .05em; text-transform: uppercase; opacity: .55; margin-bottom: 12px; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 8px; }
.emoji-item {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1; font-size: 24px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 6px;
  cursor: pointer; transition: all .12s; position: relative;
}
.emoji-item:hover { background: var(--white); transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.emoji-item.is-copied::after {
  content: 'Copied!'; position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--white); font-size: 10px; font-weight: 800;
  padding: 3px 8px; border-radius: 4px; white-space: nowrap; z-index: 5;
}
.emoji-empty { color: var(--ink); opacity: .6; font-size: 14px; padding: 24px 0; text-align: center; }

/* ── Image size cheat sheet ─────────────────────────────────────────── */
.size-table-wrap { overflow-x: auto; margin-bottom: 8px; border: 2px solid var(--ink); border-radius: 8px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.size-table th, .size-table td { padding: 14px 16px; text-align: left; border-bottom: 2px solid var(--ink); }
.size-table tr:last-child td { border-bottom: none; }
.size-table th { font-size: 11px; font-weight: 800; color: var(--ink); letter-spacing: .06em; text-transform: uppercase; background: var(--paper); }
.size-table td strong { color: var(--ink); }
.size-table .copy-btn { padding: 6px 14px; font-size: 11.5px; }
.size-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.size-cat-btn {
  padding: 8px 16px; background: var(--paper); border: 2px solid var(--ink); border-radius: 6px;
  font-size: 12.5px; font-weight: 800; text-transform: uppercase; color: var(--ink);
  cursor: pointer; transition: all .12s;
}
.size-cat-btn.is-active, .size-cat-btn:hover { background: var(--accent); color: var(--white); }

/* ── Birthday wishes ────────────────────────────────────────────────── */
.bday-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.bday-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 720px) { .bday-grid { grid-template-columns: 1fr; } }
.bday-card { padding: 18px 20px; background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; display: flex; flex-direction: column; gap: 12px; }
.bday-card__cat { align-self: flex-start; font-size: 10px; font-weight: 800; color: var(--white); background: var(--ink); letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px; border-radius: 4px; }
.bday-card__text { font-size: 14.5px; color: var(--ink); line-height: 1.55; font-weight: 500; }
.bday-card .copy-btn { align-self: flex-start; }

/* ── Cross-links below each tool ───────────────────────────────────── */
.tool-crosslinks { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.tool-crosslinks a {
  padding: 9px 16px; background: var(--white); border: 2px solid var(--ink); border-radius: 6px;
  font-size: 12.5px; font-weight: 800; text-transform: uppercase; color: var(--ink); transition: all .12s;
}
.tool-crosslinks a:hover { background: var(--accent); color: var(--white); border-color: var(--ink); }

/* ── FAQ, restyled square (parent .faq-item reused, borders instead of shadow) */
.faq-section { background: var(--paper); }
.faq-item { border: 2px solid var(--ink); border-radius: 6px; box-shadow: none; }
.faq-item[open] { box-shadow: 4px 4px 0 var(--ink); border-color: var(--ink); }
.faq-item__toggle { border-radius: 4px; }

/* ── KB dark preview + latest-blog: keep parent layout, square the corners */
.basis-section { background: var(--ink); }
.basis-card, .latest-card { border-radius: 8px; }
