/*
 * kennisbank.css — TikTop Kennisbank
 * Gedeelde stylesheet voor alle kennisbankartikelen
 * Vervangt inline <style> blokken in de HTML-widgets / PHP-templates
 *
 * Inladen via functions.php:
 * wp_enqueue_style('tiktop-kennisbank', get_template_directory_uri() . '/assets/kennisbank.css', [], '1.0.0');
 */

/* ============================================================
   VARIABELEN — afgestemd op Elementor global colors & fonts
   ============================================================ */
:root {
  --tt-blue:        #0000E3;  /* --e-global-color-primary      */
  --tt-blue-dark:   #00008F;
  --tt-pink:        #F84BFF;  /* --e-global-color-secondary    */
  --tt-white:       #FFFFFF;
  --tt-text:        #1a1a2e;
  --tt-muted:       #4a4a6a;
  --tt-border:      #e4e4f0;
  --tt-light-bg:    #f4f4fc;
  --tt-font-head:   'Raleway', sans-serif;    /* Elementor primary typography  */
  --tt-font-body:   'Zilla Slab', serif;      /* Elementor text typography     */
}

/* ============================================================
   RESET & BASE
   ============================================================ */
.tt-kennisbank *,
.tt-kennisbank *::before,
.tt-kennisbank *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.tt-kennisbank {
  font-family: var(--tt-font-body);
  color: var(--tt-text);
  font-size: 18px;
  line-height: 1.75;
}

/* ============================================================
   HERO
   ============================================================ */
.tt-hero {
  background: var(--tt-blue);
  padding: 60px 40px 80px;
  position: relative;
  overflow: hidden;
}

.tt-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--tt-white);
  clip-path: polygon(0 60%, 100% 0%, 100% 100%, 0% 100%);
}

.tt-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: var(--tt-pink);
  border-radius: 50%;
  opacity: 0.15;
}

.tt-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

.tt-hero-label {
  display: inline-block;
  background: var(--tt-pink);
  color: var(--tt-white);
  font-family: var(--tt-font-head);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 3px;
  margin-bottom: 18px;
}

.tt-hero h1 {
  font-family: var(--tt-font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  color: var(--tt-white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.tt-hero-intro {
  font-family: var(--tt-font-body);
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  line-height: 1.7;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.tt-breadcrumb {
  font-family: var(--tt-font-head);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tt-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.15s;
}

.tt-breadcrumb a:hover {
  color: var(--tt-white);
}

.tt-breadcrumb span {
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   ARTIKEL WRAPPER
   ============================================================ */
.tt-article-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* ============================================================
   INHOUDSOPGAVE
   ============================================================ */
.tt-toc {
  background: var(--tt-light-bg);
  border-left: 4px solid var(--tt-blue);
  border-radius: 0 6px 6px 0;
  padding: 24px 28px;
  margin-bottom: 48px;
}

.tt-toc-title {
  font-family: var(--tt-font-head);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tt-blue);
  margin-bottom: 14px;
}

.tt-toc ol {
  list-style: none;
  counter-reset: toc;
  padding: 0;
}

.tt-toc li {
  counter-increment: toc;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.tt-toc li::before {
  content: counter(toc);
  font-family: var(--tt-font-head);
  font-weight: 700;
  color: var(--tt-pink);
  font-size: 0.8rem;
  min-width: 18px;
}

.tt-toc a {
  color: var(--tt-blue-dark);
  text-decoration: none;
  font-family: var(--tt-font-body);
  transition: color 0.15s;
}

.tt-toc a:hover {
  color: var(--tt-blue);
  text-decoration: underline;
}

/* ============================================================
   ARTIKEL TYPOGRAFIE
   ============================================================ */
.tt-article h2 {
  font-family: var(--tt-font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--tt-blue-dark);
  margin: 48px 0 16px;
  line-height: 1.25;
  scroll-margin-top: 24px;
}

.tt-article h3 {
  font-family: var(--tt-font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--tt-blue);
  margin: 32px 0 12px;
  scroll-margin-top: 24px;
}

.tt-article p {
  margin-bottom: 20px;
  color: var(--tt-text);
}

.tt-article a {
  color: var(--tt-blue);
  text-decoration: underline;
  text-decoration-color: var(--tt-pink);
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.15s;
}

.tt-article a:hover {
  color: var(--tt-pink);
}

/* ============================================================
   LIJSTEN
   ============================================================ */
.tt-article ul {
  padding-left: 0;
  margin-bottom: 24px;
  list-style: none;
}

.tt-article ul li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
}

.tt-article ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 3px;
  background: var(--tt-pink);
  border-radius: 2px;
}

.tt-article ol {
  list-style: none;
  counter-reset: ol-c;
  padding: 0;
  margin-bottom: 24px;
}

.tt-article ol li {
  counter-increment: ol-c;
  padding-left: 36px;
  position: relative;
  margin-bottom: 12px;
}

.tt-article ol li::before {
  content: counter(ol-c);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--tt-font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--tt-blue);
  background: var(--tt-light-bg);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ============================================================
   HIGHLIGHT / QUOTE BLOK
   ============================================================ */
.tt-highlight {
  background: var(--tt-blue);
  border-radius: 6px;
  padding: 28px 32px;
  margin: 36px 0;
  position: relative;
}

.tt-highlight::before {
  content: '"';
  font-family: var(--tt-font-head);
  font-size: 4rem;
  color: var(--tt-pink);
  position: absolute;
  top: -10px;
  left: 24px;
  line-height: 1;
}

.tt-highlight p {
  color: var(--tt-white);
  margin: 0;
  padding-top: 16px;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============================================================
   TIP BLOK
   ============================================================ */
.tt-tip {
  border: 2px solid var(--tt-blue);
  border-radius: 6px;
  padding: 20px 24px;
  margin: 32px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.tt-tip-label {
  font-family: var(--tt-font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tt-white);
  background: var(--tt-blue);
  padding: 4px 10px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
}

.tt-tip p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--tt-muted);
}

/* ============================================================
   STATISTIEKEN
   ============================================================ */
.tt-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 36px 0;
}

.tt-stat {
  background: var(--tt-light-bg);
  border-top: 3px solid var(--tt-blue);
  border-radius: 0 0 6px 6px;
  padding: 20px 16px;
  text-align: center;
}

.tt-stat-number {
  font-family: var(--tt-font-head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--tt-blue);
  line-height: 1;
  margin-bottom: 6px;
}

.tt-stat-number span {
  color: var(--tt-pink);
}

.tt-stat-label {
  font-family: var(--tt-font-body);
  font-size: 0.85rem;
  color: var(--tt-muted);
  line-height: 1.4;
}

/* ============================================================
   STAPPENPLAN
   ============================================================ */
.tt-steps {
  margin: 32px 0;
}

.tt-step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.tt-step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--tt-blue);
  color: var(--tt-white);
  font-family: var(--tt-font-head);
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.tt-step-body h4 {
  font-family: var(--tt-font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--tt-blue-dark);
  margin-bottom: 6px;
}

.tt-step-body p {
  font-size: 0.97rem;
  color: var(--tt-muted);
  margin: 0;
}

/* ============================================================
   TOETSENBORD VISUALISATIE
   ============================================================ */
.tt-keyboard {
  background: var(--tt-light-bg);
  border-radius: 8px;
  padding: 28px 24px;
  margin: 32px 0;
  font-family: var(--tt-font-head);
}

.tt-keyboard-title {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tt-blue);
  margin-bottom: 18px;
}

.tt-keyboard-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  justify-content: center;
}

.tt-key {
  width: 42px;
  height: 42px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--tt-white);
  border: 2px solid var(--tt-border);
  color: var(--tt-muted);
  flex-shrink: 0;
}

.tt-key.links-pink  { background: var(--tt-pink);   border-color: var(--tt-pink);   color: var(--tt-white); }
.tt-key.links-blue  { background: var(--tt-blue);   border-color: var(--tt-blue);   color: var(--tt-white); }
.tt-key.rechts-pink { background: #ff9ff3;           border-color: #ff9ff3;           color: var(--tt-blue-dark); }
.tt-key.rechts-blue { background: #8080ff;           border-color: #8080ff;           color: var(--tt-white); }
.tt-key.home        { border: 3px solid var(--tt-pink); }

.tt-keyboard-legenda {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 0.8rem;
}

.tt-legenda-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--tt-muted);
}

.tt-legenda-dot {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ============================================================
   FAQ
   ============================================================ */
.tt-faq {
  margin: 36px 0;
}

.tt-faq-item {
  border-bottom: 2px solid var(--tt-border);
}

.tt-faq-item:first-child {
  border-top: 2px solid var(--tt-border);
}

.tt-faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 4px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--tt-font-head);
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--tt-blue-dark);
}

.tt-faq-trigger:hover {
  color: var(--tt-blue);
}

.tt-faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 2px solid var(--tt-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  position: relative;
}

.tt-faq-icon::before,
.tt-faq-icon::after {
  content: '';
  position: absolute;
  background: var(--tt-blue);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.tt-faq-icon::before { width: 11px; height: 2px; }
.tt-faq-icon::after  { width: 2px;  height: 11px; }

.tt-faq-item.open .tt-faq-icon                      { background: var(--tt-blue); }
.tt-faq-item.open .tt-faq-icon::before,
.tt-faq-item.open .tt-faq-icon::after               { background: var(--tt-white); }
.tt-faq-item.open .tt-faq-icon::after               { transform: rotate(90deg); opacity: 0; }

.tt-faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.tt-faq-item.open .tt-faq-panel {
  max-height: 400px;
}

.tt-faq-panel-inner {
  padding: 14px 4px 18px;
  font-size: 0.95rem;
  color: var(--tt-muted);
  line-height: 1.7;
  border-top: 1px solid var(--tt-border);
  font-style: italic;
}

/* ============================================================
   CTA BLOKKEN
   ============================================================ */
.tt-inline-cta {
  background: var(--tt-blue);
  border-radius: 6px;
  padding: 36px 32px;
  text-align: center;
  margin: 48px 0;
}

.tt-inline-cta h3 {
  font-family: var(--tt-font-head);
  font-weight: 800;
  color: var(--tt-white);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.tt-inline-cta p {
  color: rgba(255, 255, 255, 0.72);
  font-style: italic;
  margin-bottom: 20px;
  font-size: 0.97rem;
}

.tt-end-cta {
  background: var(--tt-blue);
  border-radius: 6px;
  padding: 48px 40px;
  text-align: center;
  margin-top: 56px;
  position: relative;
  overflow: hidden;
}

.tt-end-cta::before {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: var(--tt-pink);
  border-radius: 50%;
  opacity: 0.15;
}

.tt-end-cta h3 {
  font-family: var(--tt-font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--tt-white);
  margin-bottom: 10px;
  position: relative;
}

.tt-end-cta p {
  color: rgba(255, 255, 255, 0.72);
  font-style: italic;
  margin-bottom: 10px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.tt-price-tag {
  display: inline-block;
  background: var(--tt-pink);
  color: var(--tt-white);
  font-family: var(--tt-font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 5px 18px;
  border-radius: 3px;
  margin-bottom: 22px;
  position: relative;
}

.tt-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================================
   KNOPPEN
   ============================================================ */
.tt-btn {
  display: inline-block;
  background: var(--tt-pink);
  color: var(--tt-white) !important;
  font-family: var(--tt-font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 30px;
  border-radius: 3px;
  text-decoration: none !important;
  transition: opacity 0.15s, transform 0.15s;
  letter-spacing: 0.02em;
}

.tt-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.tt-btn-outline {
  background: transparent;
  color: var(--tt-white) !important;
  border: 2px solid var(--tt-white);
}

.tt-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================================
   GERELATEERDE ARTIKELEN
   ============================================================ */
.tt-related {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 3px solid var(--tt-blue);
}

.tt-related-title {
  font-family: var(--tt-font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--tt-blue-dark);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tt-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.tt-related-card {
  border: 1px solid var(--tt-border);
  border-top: 3px solid var(--tt-blue);
  border-radius: 0 0 6px 6px;
  padding: 18px 20px;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tt-related-card:hover {
  border-top-color: var(--tt-pink);
  box-shadow: 0 4px 16px rgba(0, 0, 227, 0.08);
}

.tt-related-card-label {
  font-family: var(--tt-font-head);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tt-pink);
  margin-bottom: 6px;
}

.tt-related-card-title {
  font-family: var(--tt-font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--tt-blue-dark);
  line-height: 1.35;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .tt-hero              { padding: 44px 20px 72px; }
  .tt-article-wrap      { padding: 40px 16px 60px; }
  .tt-stats             { grid-template-columns: 1fr 1fr; }
  .tt-related-grid      { grid-template-columns: 1fr; }
  .tt-end-cta           { padding: 36px 20px; }
  .tt-btn-outline       { display: none; }
  .tt-key               { width: 34px; height: 34px; font-size: 0.68rem; }
  .tt-kennisbank        { font-size: 16px; }
}
