@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700;800&family=Nunito:wght@400;600;700;800&family=Varela+Round&display=swap');

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

:root {
  --color-primary: #2c3e50;
  --color-accent: #e74c3c;
  --color-light: #ecf0f1;
  --color-border: #bdc3c7;
  --color-text: #2c3e50;
  --spacing-unit: 1rem;
}

body {
  font-family: 'Quicksand', 'Nunito', 'Varela Round', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: #F0EDE4;
  font-size: 1.1rem;
}

/* Navbar */
.navbar {
  background-color: var(--color-primary);
  color: white;
  padding: var(--spacing-unit) 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

.logo {
  font-size: 1.8rem;
}

/* Hero titel */
.hero-title {
  font-size: 3.75rem;
  font-weight: 800;
  color: #0A2A4A;
  text-align: center;
  margin: 3rem 0 2.5rem 0;
  letter-spacing: 1px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
  min-height: 100vh;
}

/* Categorieën grid */
.categorieën-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 2rem auto;
  max-width: 1400px;
  padding: 0 2.5rem;
}

.categorie-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  transition: transform 0.2s;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  min-height: auto;
}

/* Category card colors */
.categorie-card {
  color: #FFFFFF;
}

.categorie-card p {
  color: rgba(255, 255, 255, 0.8);
}

.categorie-card:nth-child(1) {
  background-color: #EF9F27;
}

.categorie-card:nth-child(2) {
  background-color: #2D8659;
}

.categorie-card:nth-child(3) {
  background-color: #378ADD;
}

.categorie-card:nth-child(4) {
  background-color: #9FE1CB;
}

.categorie-card:nth-child(5) {
  background-color: #185FA5;
}

.categorie-card:nth-child(6) {
  background-color: #85B7EB;
}

.categorie-card:nth-child(7) {
  background-color: #0F6E56;
}

.categorie-card:nth-child(8) {
  background-color: #E24B4A;
}

.categorie-card:nth-child(9) {
  background-color: #5DCAA5;
}

.categorie-card:nth-child(10) {
  background-color: #47A373;
}

.categorie-emoji {
  display: none;
}

.categorie-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.categorie-card p {
  margin: 0.5rem 0 0 0;
  font-size: 16px;
  text-align: center;
}

/* Recepten lijstweergave */
.recepten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.recept-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  padding: 30px 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: white;
  transition: transform 0.2s;
  font-weight: 500;
}

.recept-card:hover {
  transform: translateY(-2px);
}

.recept-card h3 {
  margin-bottom: 0.75rem;
  color: white;
  font-weight: 700;
  font-size: 1.3rem;
}

.recept-card .recept-categorie {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.9;
}

.recept-card .categorie {
  display: inline-block;
  background-color: var(--color-light);
  color: var(--color-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Categorie header */
.categorie-header {
  margin: 3rem 0 2.5rem 0;
  text-align: center;
}

.categorie-header h1 {
  font-size: 3.75rem;
  font-weight: 800;
  color: #0A2A4A;
  margin-bottom: 0.5rem;
}

.categorie-header p {
  font-size: 1.1rem;
  color: #666;
}

/* Categorie navigatie */
.categorie-nav {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
  text-align: center;
}

.categorie-nav a {
  display: inline-block;
  background-color: #3A8B6E;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s;
  font-size: 1rem;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
}

.categorie-nav a:hover {
  background-color: #2D7A5E;
}

/* Recept detail pagina */
.recept {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 2rem auto;
}

.recept h1 {
  color: #0A2A4A;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #3A8B6E;
  padding-bottom: 0.75rem;
  font-size: 2.5rem;
  font-weight: 700;
}

.recept-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.recept-meta span {
  display: inline-block;
  background-color: #F0EDE4;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-right: 0.5rem;
  color: #0A2A4A;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.recept-meta .categorie {
  background-color: #3A8B6E;
  color: white;
}

.recept-details {
  background-color: #F0EDE4;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.recept-details p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.ingredienten,
.stappen {
  margin-bottom: 2rem;
}

.ingredienten h2,
.stappen h2 {
  color: #0A2A4A;
  margin-bottom: 1.5rem;
  font-size: 1.7rem;
  font-weight: 700;
  border-bottom: 2px solid #3A8B6E;
  padding-bottom: 0.5rem;
}

.ingredienten ul {
  list-style-position: inside;
  margin-left: 1rem;
}

.ingredienten li,
.stappen li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.stappen ol {
  list-style-position: inside;
  margin-left: 1rem;
}

.tips {
  background-color: #F0EDE4;
  padding: 1.5rem;
  border-left: 4px solid #3A8B6E;
  border-radius: 8px;
  margin: 2rem 0;
}

.tips h3 {
  margin-bottom: 1rem;
  color: #0A2A4A;
  font-weight: 700;
}

.tips ul {
  margin-left: 1.5rem;
}

.tips li {
  margin-bottom: 0.5rem;
}

.tags {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.tag {
  display: inline-block;
  background-color: #F0EDE4;
  color: #0A2A4A;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Navigatie */
.recept-nav {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.recept-nav a {
  display: inline-block;
  background-color: #3A8B6E;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s;
  font-weight: 600;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
}

.recept-nav a:hover {
  background-color: #2D7A5E;
}

/* Knoppen */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  text-decoration: none;
  font-weight: 600;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: #3A8B6E;
  color: white;
}

.btn-primary:hover {
  background-color: #2D7A5E;
}

.recept-actions {
  margin: 2rem 0;
  text-align: center;
}

/* Footer */
footer {
  background-color: var(--color-primary);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

footer p {
  margin: 0;
}

/* PDF Receptkaart */
.pdf-receptkaart {
  display: none;
}

.pdf-header {
  margin-bottom: 8mm;
  border-bottom: 2pt solid #333;
  padding-bottom: 4mm;
}

.pdf-header h1 {
  margin: 0 0 3mm 0;
  font-size: 20pt;
  color: #333;
  font-weight: bold;
}

.pdf-meta {
  display: flex;
  gap: 8mm;
  font-size: 11pt;
  color: #666;
}

.pdf-info {
  margin-bottom: 8mm;
  font-size: 11pt;
  line-height: 1.4;
}

.pdf-info div {
  margin: 2mm 0;
}

.pdf-section {
  margin-bottom: 8mm;
}

.pdf-section h2 {
  margin: 6mm 0 3mm 0;
  font-size: 13pt;
  font-weight: bold;
  color: #333;
  border-bottom: 1pt solid #ddd;
  padding-bottom: 2mm;
}

.pdf-section ul,
.pdf-section ol {
  margin: 0 0 0 8mm;
  padding: 0;
  font-size: 11pt;
  line-height: 1.4;
}

.pdf-section li {
  margin-bottom: 2mm;
}

/* Print/PDF */
@media print {
  * {
    margin: 0 !important;
    padding: 0 !important;
  }

  html, body {
    width: 100%;
    height: 100%;
    background-color: white !important;
  }

  body {
    font-size: 8px;
    line-height: 1.1;
    color: #000;
  }

  .recept {
    box-shadow: none !important;
    padding: 0 !important;
    background: white !important;
    margin: 0 !important;
  }

  .recept h1 {
    font-size: 13px;
    font-weight: bold;
    margin: 0 0 1px 0 !important;
    border-bottom: 0.5px solid #000;
    padding: 0 !important;
  }

  .recept-meta {
    font-size: 7px;
    gap: 2px;
    margin-bottom: 2px !important;
    display: flex;
    flex-wrap: wrap;
  }

  .recept-meta span {
    padding: 0 1px;
    font-size: 7px;
    background-color: transparent;
    border: none;
    margin-right: 2px;
  }

  .recept-details {
    font-size: 7px;
    padding: 0 !important;
    margin: 1px 0 !important;
  }

  .recept-details p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.1;
  }

  .ingredienten,
  .stappen,
  .tips {
    margin-bottom: 2px !important;
    padding: 0 !important;
  }

  .ingredienten h2,
  .stappen h2,
  .tips h3 {
    font-size: 9px;
    font-weight: bold;
    margin: 1px 0 0px 0 !important;
    padding: 0 !important;
  }

  .ingredienten ul,
  .stappen ol {
    margin-left: 6px !important;
    padding: 0 !important;
    font-size: 7px;
  }

  .ingredienten li,
  .stappen li {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
  }

  .tips {
    background-color: transparent !important;
    padding: 0 !important;
    border-left: none !important;
    font-size: 7px;
  }

  .tips ul {
    margin-left: 6px !important;
    padding: 0 !important;
  }

  .tips li {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
  }

  .tags {
    font-size: 7px;
    margin-top: 1px !important;
  }

  .tag {
    font-size: 6px;
    padding: 0;
    background-color: transparent !important;
    margin-right: 1px;
  }

  .recept-actions,
  .recept-nav,
  footer {
    display: none !important;
  }
}

/* Responsief */
@media (max-width: 768px) {
  .container {
    margin: 1rem auto;
  }

  .recepten-grid {
    grid-template-columns: 1fr;
  }

  .recept {
    padding: 1rem;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }
}
