/* tools.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color:      #1B2232;
  --nav-hover:          #252F47;
  --nav-active:         #2D3A56;
  --nav-text:           #9BA8BC;
  --secondary-color:    #4F79E0;
  --accent:             #4F79E0;
  --accent-hover:       #3B6ACF;
  --accent-light:       #EEF2FF;
  --accent-color:       #4F79E0;
  --light-blue:         #EEF2FF;
  --light-color:        #F8F9FA;
  --card-bg:            #FFFFFF;
  --hover-bg:           #F5F8FF;
  --dark-color:         #1B2232;
  --text-color:         #111827;
  --text-light:         #6B7280;
  --text-muted:         #9CA3AF;
  --border:             #E5E7EB;
  --success-color:      #10B981;
  --warning-color:      #F59E0B;
  --error-color:        #EF4444;
  --ml-color:           #F43F5E;
  --dl-color:           #14B8A6;
  --sklearn-color:      #F59E0B;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  padding-top: 52px;
}

/* ========== NAVBAR ========== */
.navbar {
  background: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 52px;
  position: relative;
}

.nav-brand {
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.nav-brand span { color: var(--secondary-color); }

.menu-toggle {
  font-size: 1.2em;
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  display: none;
  padding: 8px;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2px;
  margin: 0 auto;
  padding: 0;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.nav-menu li a {
  text-decoration: none;
  color: var(--nav-text);
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.82rem;
}

.nav-menu li a i { margin-right: 5px; font-size: 0.85em; opacity: 0.7; }

.nav-menu li a:hover {
  background: var(--nav-hover);
  color: #D0D8E8;
}

.nav-menu li a.active {
  background: var(--nav-active);
  color: #ffffff;
  font-weight: 600;
}

/* Dropdown */
.dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--nav-active);
  min-width: 210px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  border-radius: 8px;
  border: 1px solid var(--nav-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.18s ease;
  z-index: 1000;
  list-style: none;
  padding: 6px;
  margin: 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li { width: 100%; }

.dropdown-menu a {
  padding: 8px 12px;
  display: block;
  color: var(--nav-text);
  text-decoration: none;
  transition: all 0.15s;
  font-size: 0.82rem;
  white-space: nowrap;
  border-radius: 6px;
}

.dropdown-menu a:hover {
  background: var(--nav-hover);
  color: #D0D8E8;
}

/* Vacature CTA Button */
.vacature-cta, .cta-button-small {
  background: var(--secondary-color);
  color: white !important;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s;
  font-size: 0.82rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.vacature-cta:hover, .cta-button-small:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

@media (max-width: 768px) {

  /* Nav */
  .menu-toggle { display: block !important; }
  .nav-brand   { font-size: 0.95rem; margin-right: 10px; }

  .nav-menu {
    position: fixed;
    top: 52px; left: 0;
    width: 100%; height: calc(100vh - 52px);
    flex-direction: column;
    background: #1B2232;
    display: none;
    padding: 12px 0 24px;
    gap: 0;
    z-index: 999;
    overflow-y: auto;
    flex-wrap: nowrap;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }

  .nav-menu.active { display: flex !important; }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-menu li a {
    padding: 14px 24px;
    border-radius: 0;
    justify-content: flex-start;
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    min-height: 48px;
  }

  .nav-menu li a:hover { background: rgba(255,255,255,0.08); }

  .dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    background: rgba(255,255,255,0.04) !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    display: none !important;
    min-width: 0 !important;
  }

  .dropdown.active .dropdown-menu { display: block !important; }
  .dropdown-menu li { border-bottom: 1px solid rgba(255,255,255,0.04); }
  .dropdown-menu a {
    padding: 12px 24px 12px 48px !important;
    font-size: 0.9rem !important;
    color: rgba(255,255,255,0.65) !important;
    min-height: 44px;
    display: flex !important;
    align-items: center;
  }
  .dropdown-toggle i.fa-chevron-down { transition: transform 0.3s; margin-left: auto; }
  .dropdown.active .dropdown-toggle i.fa-chevron-down { transform: rotate(180deg); }

  /* Content */
  main { padding: 0 12px; }
  .blog-content { padding: 20px 16px; }
  .blog-title { font-size: 1.6rem; }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }

  /* Tables */
  table, .comparison-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.85rem;
  }

  /* Grids */
  .ml-grid      { grid-template-columns: 1fr; }
  .algorithm-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .cta-buttons  { flex-direction: column; }
  .cta-button   { justify-content: center; width: 100%; }

  .blog-navigation { flex-direction: column; gap: 10px; }
  .nav-button { justify-content: center; width: 100%; }

  .implementation-step { padding-left: 20px; padding-top: 56px; }
  .implementation-step::before { top: 14px; left: 50%; transform: translateX(-50%); }

  /* Footer */
  .footer-container { grid-template-columns: 1fr; gap: 24px; }
  footer { padding: 36px 16px 20px; margin-top: 40px; }

  img { max-width: 100%; height: auto; }
  .code-block { font-size: 0.8rem; padding: 14px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.15rem; }
  .algorithm-grid { grid-template-columns: 1fr; }
  .blog-title { font-size: 1.3rem; }
}

main {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  position: relative;
}

.blog-content {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 40px;
  margin-bottom: 40px;
}

/* Blog Header */
.blog-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--border);
}

.blog-title {
  color: var(--primary-color);
  font-size: 2.5em;
  margin-bottom: 20px;
  line-height: 1.3;
}

.blog-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: var(--text-light);
  font-size: 0.9em;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-excerpt {
  font-size: 1.15em;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  font-style: italic;
}

/* Content Styling */
h1, h2, h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
}

h1 {
  font-size: 2.2em;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
  margin-bottom: 30px;
}

h2 {
  font-size: 1.8em;
  margin-top: 40px;
  color: var(--secondary-color);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1.4em;
  margin-top: 30px;
  color: var(--primary-color);
}

p {
  margin-bottom: 20px;
  line-height: 1.7;
}

ul, ol {
  margin-bottom: 25px;
  padding-left: 20px;
}

li {
  margin-bottom: 10px;
  line-height: 1.6;
}

strong {
  color: var(--primary-color);
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Highlight Boxes */
.highlight-box {
  background-color: var(--light-blue);
  border-left: 4px solid var(--secondary-color);
  padding: 25px;
  margin: 30px 0;
  border-radius: 0 8px 8px 0;
}

.highlight-box h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.definition-box {
  background: linear-gradient(135deg, var(--light-blue), #ffffff);
  border: 1px solid var(--secondary-color);
  border-radius: 8px;
  padding: 25px;
  margin: 30px 0;
}

/* ML Specific Styling */
.ml-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.ml-feature {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  border-top: 4px solid var(--secondary-color);
}

.ml-feature h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ml-feature.supervised-color {
  border-top-color: var(--ml-color);
}

.ml-feature.unsupervised-color {
  border-top-color: var(--dl-color);
}

.ml-feature.deeplearning-color {
  border-top-color: var(--sklearn-color);
}

.ml-visual {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  margin: 30px 0;
  border-left: 4px solid var(--ml-color);
}

.model-preview {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: center;
  border: 2px dashed #ddd;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comparison-table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  padding: 12px 15px;
  text-align: left;
}

.comparison-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
}

.comparison-table tr:nth-child(even) {
  background-color: var(--light-color);
}

.algorithm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin: 25px 0;
}

.algorithm-type {
  background: white;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border: 2px solid var(--light-blue);
}

.algorithm-type i {
  font-size: 2em;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: bold;
}

.status-good {
  background: var(--success-color);
  color: white;
}

.status-bad {
  background: var(--error-color);
  color: white;
}

/* Implementation Steps */
.implementation-steps {
  counter-reset: step-counter;
  margin: 30px 0;
}

.implementation-step {
  background: white;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  border-left: 4px solid var(--secondary-color);
  position: relative;
  padding-left: 80px;
}

.implementation-step::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--secondary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

/* Vacature CTA Special Styling */
.vacature-cta-large {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  color: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  margin: 40px 0;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.vacature-cta-large h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.6em;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.cta-button {
  padding: 15px 30px;
  background: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  text-decoration: none;
}

.cta-button.primary {
  background: var(--primary-color);
  color: white;
}

/* Code and Examples */
.code-block {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 20px;
  border-radius: 8px;
  margin: 25px 0;
  font-family: 'Courier New', monospace;
  overflow-x: auto;
}

.code-block .comment {
  color: #7f8c8d;
  font-style: italic;
}

.code-block .keyword {
  color: #3498db;
  font-weight: bold;
}

.code-block .function {
  color: #f1c40f;
}

.code-block .string {
  color: #2ecc71;
}

.code-block .number {
  color: #e74c3c;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

tr:hover {
  background-color: var(--hover-bg);
}

/* Blog Navigation */
.blog-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid var(--border);
}

.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--card-bg);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.nav-button:hover {
  background: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
  text-decoration: none;
}

/* Related Posts */
.related-posts {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid var(--light-blue);
}

.related-posts h3 {
  text-align: center;
  margin-bottom: 30px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.related-post {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

.related-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.related-post h4 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.related-post p {
  font-size: 0.9em;
  color: var(--text-light);
  margin-bottom: 15px;
}

.read-more {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.9em;
}

footer {
  background: var(--dark-color);
  color: white;
  padding: 60px 20px 30px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-column h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.3em;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--secondary-color);
}

.footer-column p, .footer-column a {
  color: #bdc3c7;
  margin-bottom: 12px;
  display: block;
  transition: color 0.3s;
  text-decoration: none;
}

.footer-column a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #bdc3c7;
  font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-content {
    padding: 25px 15px;
  }

  .blog-title {
    font-size: 2em;
  }

  h1 { font-size: 1.8em; }
  h2 { font-size: 1.5em; }

  .blog-navigation {
    flex-direction: column;
    gap: 15px;
  }

  .nav-button { justify-content: center; }

  .related-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; }

  .cta-buttons { flex-direction: column; }
  .cta-button  { justify-content: center; }

  .implementation-step {
    padding-left: 25px;
    padding-top: 60px;
  }

  .implementation-step::before {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
  }
}