/* blog.css - GECORRIGEERDE VERSIE */

:root {
  --primary-color: #1a5276;
  --secondary-color: #2e86c1;
  --accent-color: #6caedd;
  --light-blue: #e8f4fd;
  --light-color: #f8f9fa;
  --dark-color: #1a5276;
  --text-color: #2c3e50;
  --text-light: #7f8c8d;
  --ml-color: #FF6B6B;
  --dl-color: #4ECDC4;
  --sklearn-color: #F9C74F;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --error-color: #e74c3c;
}

* { 
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
}

header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 40px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.logo {
  height: 80px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.header-content {
  position: relative;
}

header h1 {
  margin: 0;
  font-size: 2.5em;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

header p {
  margin-top: 10px;
  font-size: 1.2em;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.navbar {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.menu-toggle {
  font-size: 1.4em;
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  display: none;
  padding: 8px 12px;
  position: absolute;
  right: 20px;
  top: 15px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.nav-menu li a i {
  margin-right: 8px;
}

.nav-menu li a:hover, .nav-menu li a.active {
  background-color: var(--secondary-color);
  color: white;
}

/* Vacature CTA Button */
.vacature-cta {
  background-color: var(--accent-color);
  color: white !important;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--accent-color);
  margin-left: 10px;
}

.vacature-cta:hover {
  background-color: white;
  color: var(--accent-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Dropdown menu styling */
.nav-menu li {
  position: relative;
}

.sub-menu {
  display: none;
  position: absolute;
  background: var(--primary-color);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 1001;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
  top: 100%;
  left: 0;
}

.nav-menu li:hover .sub-menu {
  display: block;
}

.sub-menu li {
  width: 100%;
}

.sub-menu li a {
  padding: 12px 20px;
  border-left: 3px solid transparent;
  color: white;
  justify-content: flex-start;
}

.sub-menu li a:hover {
  border-left-color: var(--secondary-color);
  background: #2c3e50;
}

.has-submenu > a::after {
  content: "▼";
  font-size: 10px;
  margin-left: 5px;
}

main {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  position: relative;
}

.blog-content {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  padding: 40px;
  margin-bottom: 40px;
}

/* Blog Header */
.blog-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--light-blue);
}

.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.2em;
  color: var(--text-color);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  font-style: italic;
}

/* Blog Content Styling */
h1, h2, h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

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(--light-blue);
}

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.3s;
}

a:hover {
  color: var(--accent-color);
  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(--secondary-color);
  color: white;
  font-weight: 600;
  padding: 12px 15px;
  text-align: left;
}

.comparison-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
}

.comparison-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.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(--secondary-color);
  color: white;
  font-weight: 600;
}

tr:hover {
  background-color: var(--light-blue);
}

/* Blog Navigation */
.blog-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid var(--light-blue);
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--secondary-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s;
  font-weight: 600;
}

.nav-button:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  text-decoration: none;
}

.nav-button.prev {
  background: var(--accent-color);
}

.nav-button.next {
  margin-left: auto;
}

/* 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;
}

/* ========== AUTHOR BIO STYLING ========== */
.author-bio {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 25px;
  margin: 40px 0;
  border-left: 5px solid #3498db;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 20px 25px;
  grid-template-areas:
    "avatar title"
    "avatar content"
    "avatar links";
}

.author-avatar {
  grid-area: avatar;
  align-self: start;
}

.author-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #3498db;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.author-info h4 {
  grid-area: title;
  color: #2c3e50;
  margin: 0 0 8px 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.author-info p {
  grid-area: content;
  color: #34495e;
  line-height: 1.6;
  margin: 0 0 15px 0;
  font-size: 1rem;
}

.author-links {
  grid-area: links;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.author-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: #3498db;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  min-width: 120px;
}

.author-links a:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* LinkedIn link */
.author-links a:nth-child(1) {
  background: #0077b5;
}
.author-links a:nth-child(1):hover {
  background: #005582;
}

/* GitHub link */
.author-links a:nth-child(2) {
  background: #333;
}
.author-links a:nth-child(2):hover {
  background: #222;
}

/* Over mij link */
.author-links a:nth-child(3) {
  background: #2ecc71;
}
.author-links a:nth-child(3):hover {
  background: #27ae60;
}

footer {
  background: var(--dark-color);
  color: white;
  padding: 60px 20px 30px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.footer-column h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2em;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--secondary-color);
}

.footer-column p, .footer-column a {
  color: #bdc3c7;
  margin-bottom: 15px;
  display: block;
}

.footer-column a:hover {
  color: white;
  text-decoration: none;
}

.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: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #bdc3c7;
  font-size: 0.9em;
}

/* ========== DROPDOWN NAVIGATIE ========== */
.nav-menu .dropdown {
  position: relative;
}

.dropdown-toggle {
  position: relative;
  padding-right: 25px !important;
}

.dropdown-toggle i.fa-chevron-down {
  font-size: 12px;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 10px 0;
  z-index: 1001;
  list-style: none;
  margin-top: 5px;
}

.dropdown-menu:before {
  content: '';
  position: absolute;
  top: -8px;
  left: 20px;
  width: 16px;
  height: 16px;
  background: white;
  transform: rotate(45deg);
  box-shadow: -2px -2px 5px rgba(0,0,0,0.05);
}

.dropdown-menu li {
  width: 100%;
  border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu a {
  color: #333 !important;
  padding: 12px 20px !important;
  display: block;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  margin: 0 !important;
  border-radius: 0 !important;
}

.dropdown-menu a:hover {
  background: #f8f9fa;
  color: var(--primary-color) !important;
  padding-left: 25px !important;
  border-left-color: var(--secondary-color);
  text-decoration: none !important;
}

.nav-cta-top {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  justify-content: center;
}

.cta-button-small {
  background: var(--secondary-color);
  color: white !important;
  padding: 8px 15px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 2px solid var(--secondary-color);
}

.cta-button-small:hover {
  background: white;
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cta-button-small.freelance {
  background: var(--ml-color);
  border-color: var(--ml-color);
}

.cta-button-small.freelance:hover {
  background: white;
  color: var(--ml-color) !important;
}

.nav-menu .dropdown:hover .dropdown-menu {
  display: block;
  animation: fadeIn 0.3s ease;
}

.nav-menu .dropdown:hover .dropdown-toggle i.fa-chevron-down {
  transform: rotate(180deg);
}

.nav-menu .dropdown.active .dropdown-toggle {
  background-color: var(--secondary-color);
  color: white !important;
}

.nav-menu .dropdown.active .dropdown-menu {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.2em;
  }
  
  header p {
    font-size: 1.1em;
  }
  
  .logo {
    height: 60px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: white;
    display: none;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
    gap: 0;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-menu li a {
    padding: 15px 20px;
    border-radius: 0;
    justify-content: flex-start;
  }
  
  .vacature-cta {
    margin-left: 0;
    margin-top: 10px;
    text-align: center;
  }
  
  .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;
  }
  
  /* Mobile submenu styling */
  .sub-menu {
    position: static;
    display: none;
    box-shadow: none;
    padding-left: 20px;
    background: #f8f9fa;
  }
  
  .nav-menu li.active .sub-menu {
    display: block;
  }
  
  .has-submenu > a::after {
    content: "►";
    float: right;
  }
  
  .nav-menu li.active > a::after {
    content: "▼";
  }
  
  .sub-menu li a {
    color: var(--primary-color);
  }
  
  .sub-menu li a:hover {
    background: #e9ecef;
  }
  
  /* Mobile CTA buttons */
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-button {
    justify-content: center;
  }
  
  /* Mobile implementation steps */
  .implementation-step {
    padding-left: 25px;
    padding-top: 60px;
  }
  
  .implementation-step::before {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* Mobile dropdown styling */
  .nav-cta-top {
    display: none;
  }
  
  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: rgba(0,0,0,0.05);
    margin: 10px 0 10px 20px;
    width: calc(100% - 20px);
    display: none;
    border-radius: 5px;
  }
  
  .dropdown-menu:before {
    display: none;
  }
  
  .dropdown-menu a {
    color: var(--primary-color) !important;
    padding: 10px 15px !important;
  }
  
  .dropdown-menu a:hover {
    background: rgba(0,0,0,0.05);
  }
  
  .nav-menu .dropdown:hover .dropdown-menu {
    display: none;
  }
  
  .nav-menu .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .dropdown-toggle {
    cursor: pointer;
  }
  
  .dropdown-toggle i.fa-chevron-down {
    float: right;
    margin-top: 4px;
  }
  
  /* Mobile author bio */
  .author-bio {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "avatar"
      "title"
      "content"
      "links";
    text-align: center;
    gap: 15px;
    padding: 20px;
  }
  
  .author-avatar {
    justify-self: center;
  }
  
  .author-avatar img {
    width: 80px;
    height: 80px;
  }
  
  .author-links {
    justify-content: center;
  }
  
  .author-links a {
    min-width: 110px;
    padding: 8px 14px;
  }
}