/* 
   =========================================
   1. CONFIGURATIE & VARIABELEN
   =========================================
*/
:root {
  /* Kleurenpalet */
  --warm-brown: #A87E69;
  --light-beige: #DDBEA9;
  --soft-pink: #FFEEE1;
  --cream-white: #FFF4EB;
  --taupe: #BCB6A0;
  --olive-gray: #A5A58D;
  --olive-dark: #868e6e;
  
  /* Achtergronden */
  --bg-overlay: rgba(165, 165, 141, 0.85);
  --bg-white-overlay: rgba(255, 255, 255, 0.95);

  /* Tekst */
  --text-white: #ffffff;
  --text-dark: #333333;
}

/* 
   =========================================
   2. ALGEMENE STIJL (Body, Navigatie, Footer)
   =========================================
*/
html {
  scroll-behavior: smooth;
}

html, body { 
  overflow-x: hidden; 
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: var(--cream-white);
  background-image: url('Afbeeldingen/ChatGPT Image 21 okt 2025 20_38_55.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

main {
  text-align: center;
  margin-top: 50px;
}

/* --- Navigatie --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--olive-dark);
  padding: 10px 20px;
  height: 45px;
  font-size: 20px;
}

.logo img {
  height: 50px;
  border: 2px solid var(--taupe);
  border-radius: 10px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
  margin-left: auto;
  padding: 0;
}

.nav-links li { position: relative; }

/* Knoppen in menu */
.nav-links a,
.profile-trigger {
  text-decoration: none;
  color: var(--text-white);
  border: 2px solid var(--olive-gray);
  border-radius: 5px;
  background-color: var(--olive-gray);
  padding: 5px 10px;
  display: inline-block;
  height: auto;
  font-size: inherit;
  cursor: pointer;
  transition: all 220ms ease;
  user-select: none;
}

.nav-links a:hover,
.profile-trigger:hover,
.profile-trigger:focus {
  background-color: var(--taupe);
  color: var(--text-white);
  outline: none;
}

/* Profiel Dropdown Menu */
.profile-dropdown {
  position: relative;
  list-style: none;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, -10px) scale(0.98);
  background-color: var(--olive-gray);
  border: 2px solid var(--olive-gray);
  border-radius: 6px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease, transform 180ms cubic-bezier(.2,.8,.2,1);
  z-index: 2000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  pointer-events: none;
}

.profile-dropdown:hover .profile-menu,
.profile-dropdown.open .profile-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}

.profile-logout {
  display: block;
  width: 100%;
  padding: 14px 18px;
  color: var(--text-white);
  text-decoration: none;
  border-radius: 3px;
  transition: background-color 180ms ease;
  text-align: center;
  box-sizing: border-box;
}

.profile-logout:first-child { border-radius: 3px 3px 0 0; }
.profile-logout:last-child { border-radius: 0 0 3px 3px; }
.profile-logout:hover { background-color: rgba(0,0,0,0.06); }


/* --- Footer --- */
footer {
  background-color: var(--olive-dark);
  color: var(--text-white);
  padding-top: 40px;
  margin-top: 60px;
  border-top: 4px solid var(--olive-gray);
  text-align: left;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
  gap: 30px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--soft-pink);
  border-bottom: 2px solid var(--olive-gray);
  display: inline-block;
  padding-bottom: 5px;
}

.footer-section p {
  line-height: 1.6;
  font-size: 15px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li { margin-bottom: 10px; }

.footer-section ul li a {
  text-decoration: none;
  color: var(--text-white);
  transition: color 0.2s ease;
}

.footer-section ul li a:hover {
  color: var(--soft-pink);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-icons a {
  text-decoration: none;
  color: var(--olive-dark);
  background-color: var(--cream-white);
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.social-icons a:hover {
  background-color: var(--taupe);
  color: var(--text-white);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 15px;
  font-size: 14px;
  color: var(--light-beige);
}


/* 
   =========================================
   3. ALGEMENE ELEMENTEN (Containers & Buttons)
   =========================================
*/

/* Containers voor formulieren en content */
.login-container,
.register-container,
.logout-container,
.recepten-container,
.contact-wrapper {
  background-color: var(--bg-overlay);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  color: var(--text-white);
  margin: 80px auto;
}

.login-container,
.register-container,
.logout-container {
  max-width: 400px;
  padding: 30px;
}

.recepten-container {
  max-width: 1100px;
  margin: 50px auto;
  padding: 30px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
  max-width: 1200px;
  margin: 50px auto;
}

.logout-container {
  text-align: center;
  padding: 40px;
}

/* Headers */
.login-container h1,
.register-container h1,
.recepten-container h1 {
  text-align: center;
  margin-bottom: 20px;
}

.logout-container h1 {
  margin-bottom: 20px;
  font-size: 32px;
}

/* Inputs & Formulier layout */
.login-form,
.register-form,
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-form label,
.register-form label { font-weight: bold; }

.login-form input,
.register-form input,
.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: none;
  border-radius: 5px;
}

/* Algemene Button Stijl */
button {
  padding: 15px 30px;
  width: auto;
  height: 60px;
  font-size: 16px;
  cursor: pointer;
  background-color: var(--olive-gray);
  border: 2px solid var(--olive-gray);
  border-radius: 5px;
  color: var(--text-white);
}

button:hover {
  background-color: var(--taupe);
  color: var(--text-white);
}

/* Specifieke formulier buttons */
.login-form button,
.register-form button,
.contact-form button {
  padding: 12px;
  font-size: 16px;
  background-color: var(--olive-gray);
  color: var(--text-white);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: auto;
  height: auto;
}

.contact-form button { text-align: center; }

.login-form button:hover,
.register-form button:hover,
.contact-form button:hover {
  background-color: var(--taupe);
}


/* 
   =========================================
   4. HOMEPAGINA (Hero, Klok, Sidebar)
   =========================================
*/
.hero {
  height: 55vh;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cream-white);
  background-image: url('Afbeeldingen/hero-placeholder.jpg');
  background-size: cover;
  background-position: center;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

.hero-inner {
  background: rgba(255,255,255,0.75);
  padding: 30px 40px;
  border-radius: 10px;
  text-align: center;
}

.hero-inner h1 {
  margin: 0 0 18px 0;
  font-size: 22px;
  color: #3e3e3e;
}

/* --- De Klok (Nieuw) --- */
.klok-container {
  background-color: rgba(255, 255, 255, 0.85);
  border: 2px solid var(--olive-gray);
  border-radius: 10px;
  padding: 15px 25px;
  margin-bottom: 20px;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.klok-container .datum {
  font-size: 1.1rem;
  color: var(--olive-dark);
  font-weight: bold;
  margin-bottom: 5px;
  text-transform: capitalize;
}

.klok-container .tijd {
  font-size: 2.5rem;
  font-weight: 800;
  color: #333;
  font-family: 'Courier New', Courier, monospace;
  line-height: 1;
}

/* Call to Action knop */
.btn.primary {
  display: inline-block;
  padding: 10px 22px;
  background: var(--olive-gray);
  color: var(--text-white);
  text-decoration: none;
  border-radius: 8px;
}

/* Sidebar layout */
.menu-and-sidebar {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px 40px 20px;
}

.side-video video {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.buy-btn {
  display: inline-block;
  margin-top: 12px;
  background: var(--warm-brown);
  color: var(--text-white);
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  height: auto;
}

.buy-btn:hover {
  opacity: 0.95;
  background-color: var(--light-beige);
}

.today-menu {
  background: var(--bg-white-overlay);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

.menu-item {
  margin: 12px 0;
  padding: 12px;
  border-radius: 10px;
  background: var(--cream-white);
  text-align: left;
}

.menu-item a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: bold;
  transition: color 0.2s ease;
}

.menu-item a:hover {
  color: var(--olive-dark);
  text-decoration: underline;
}


/* 
   =========================================
   5. RECEPTEN (Grid & Cards)
   =========================================
*/
.recipes {
  padding: 30px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.recipes-grid,
.recepten-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Card Styles & Animatie */
.card {
  background: rgba(255,255,255,0.9);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1000ms ease, transform 1000ms cubic-bezier(.2,.8,.2,1);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.card h3 {
  margin: 12px 10px 0 10px;
  font-size: 16px;
  color: var(--text-dark);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.card-link .card {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.card-link:hover .card {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* Ripple effect */
.card-link .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255,255,255,0.6);
  pointer-events: none;
}

.ripple.animate {
  transform: scale(1);
  transition: transform 420ms ease-out, opacity 420ms ease-out;
  opacity: 0;
}


/* 
   =========================================
   6. PAGINA SPECIFIEK (Detail, Over Ons, Zoeken, Contact, Logout)
   =========================================
*/

/* --- Recept Detail Pagina --- */
.recept-detail-container {
  max-width: 1000px;
  margin: 40px auto;
  background-color: var(--cream-white);
  padding: 30px;
}

.recept-header-box {
  text-align: center;
  margin-bottom: 30px;
}

.recept-header-box h1 {
  display: inline-block;
  border: 3px solid var(--olive-dark);
  border-radius: 15px;
  padding: 10px 40px;
  background-color: #fff;
  color: var(--olive-dark);
  font-size: 28px;
  margin: 0;
}

.recept-top-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  margin-bottom: 30px;
}

.recept-img-box {
  border: 3px solid var(--olive-dark);
  border-radius: 20px;
  overflow: hidden;
  height: 350px;
  background-color: #fff;
}

.recept-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recept-info-text {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px 0;
  text-align: left;
}

.info-label {
  font-weight: bold;
  color: var(--olive-dark);
  display: block;
  margin-bottom: 4px;
}

.nutrition-bar {
  display: flex;
  justify-content: space-between;
  border-top: 3px solid var(--olive-dark);
  border-bottom: 3px solid var(--olive-dark);
  padding: 15px 0;
  margin-bottom: 30px;
}

.nutri-item {
  flex: 1;
  text-align: center;
  border-right: 2px solid var(--olive-dark);
}

.nutri-item:last-child { border-right: none; }

.nutri-label {
  font-weight: bold;
  display: block;
  color: var(--olive-dark);
}

.recept-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}

.ingredients-box, 
.preparation-box {
  border: 3px solid var(--olive-dark);
  border-radius: 20px;
  padding: 25px;
  background-color: #fff;
}

.ingredients-box h3, 
.preparation-box h3 {
  margin-top: 0;
  color: var(--olive-dark);
  border-bottom: 2px solid var(--cream-white);
  padding-bottom: 10px;
}

.ingredients-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Checkbox styling ingrediënten */
.checkbox-wrapper {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding-left: 35px;
  user-select: none;
}

.checkbox-wrapper input {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  left: 0;
  top: 0;
  height: 22px;
  width: 22px;
  background-color: var(--cream-white);
  border: 2px solid var(--olive-gray);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.checkbox-wrapper:hover input ~ .checkmark { border-color: var(--olive-dark); }
.checkbox-wrapper input:checked ~ .checkmark {
  background-color: var(--olive-dark);
  border-color: var(--olive-dark);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-wrapper input:checked ~ .checkmark:after { display: block; }
.checkbox-wrapper input:checked ~ .text {
  text-decoration: line-through;
  color: var(--taupe);
}

.step {
  margin-bottom: 20px;
  text-align: left;
}


/* --- Over Ons Pagina --- */
.about-container {
  max-width: 800px;
  margin: 80px auto;
  padding: 30px;
  background-color: var(--olive-gray); 
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  color: var(--text-white);
  text-align: center;
}

.about-container h1 { margin-bottom: 20px; font-size: 32px; }
.about-container p { margin-bottom: 15px; line-height: 1.6; }

.about-image-wrapper { margin: 20px 0; display: flex; justify-content: center; }
.about-image { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,0.18); display: block; }

.onsteam-container {
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 20px;
  background-color: var(--taupe);
  border-left: 5px solid var(--olive-dark);
  border-radius: 5px;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.onsteam-container p { margin: 10px 0; }

.about-container table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.about-container th {
  background-color: var(--olive-dark);
  color: var(--text-white);
  padding: 15px;
  text-align: left;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--taupe);
}

.about-container td {
  padding: 12px 15px;
  color: var(--text-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.about-container tr:last-child td { border-bottom: none; }
.about-container tr:hover td {
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.2s ease;
}


/* --- Zoekpagina --- */
.search-container {
  text-align: center;
  margin: 40px auto 20px auto;
  max-width: 600px;
  padding: 0 20px;
}

.search-form {
  display: flex;
  gap: 10px;
  background: var(--bg-white-overlay);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.search-input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid var(--olive-gray);
  border-radius: 5px;
  font-size: 16px;
  background-color: var(--cream-white);
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.3s;
}

.search-input:focus { border-color: var(--olive-dark); }

.search-btn {
  padding: 12px 25px;
  background-color: var(--olive-dark);
  color: var(--text-white);
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
  height: auto;
}

.search-btn:hover { background-color: var(--olive-gray); }


/* --- Contact Pagina --- */
.contact-map iframe {
  width: 100%;
  height: 370px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.contact-openingstijden,
.contact-gegevens {
  background-color: rgba(134, 142, 110, 0.9);
  padding: 20px;
  border-radius: 8px;
  text-align: left;
}


/* --- Logout Pagina --- */
.logout-container p {
  margin-bottom: 30px;
  line-height: 1.6;
  font-size: 18px;
  width: auto;
}

.logout-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-logout-yes, .btn-logout-no {
  padding: 12px 30px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-white);
  transition: all 220ms ease;
}

.btn-logout-yes { background-color: var(--olive-gray); }
.btn-logout-yes:hover {
  background-color: var(--taupe);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-logout-no { background-color: var(--olive-dark); }
.btn-logout-no:hover {
  background-color: var(--olive-gray);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.logout-success {
  color: var(--soft-pink);
  font-weight: bold;
  animation: fadeIn 500ms ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* 
   =========================================
   7. RESPONSIVE MEDIA QUERIES
   =========================================
*/
@media (max-width: 900px) {
  /* Tablet / Laptop */
  .recept-top-grid, 
  .recept-bottom-grid,
  .recipe-body { grid-template-columns: 1fr; }
  
  .recipes-grid, .recepten-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-and-sidebar { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-section h3 { display: inline-block; }
  .social-icons { justify-content: center; }
  
  .recept-img-box { height: 250px; }
  .nutrition-bar { flex-wrap: wrap; }
  .nutri-item { min-width: 33%; border-right: none; margin-bottom: 10px; }
}

@media (max-width: 600px) {
  /* Mobiel */
  .profile-menu { right: 8px; left: 8px; min-width: auto; border-radius: 8px; }
  .nav-links { gap: 8px; }
  .about-container table { display: block; overflow-x: auto; white-space: nowrap; }
  .about-container th, .about-container td { padding: 10px; font-size: 14px; }
}

@media (max-width: 480px) {
  /* Klein Mobiel */
  .recipes-grid, .recepten-grid { grid-template-columns: 1fr; }
  .hero-inner h1 { font-size: 18px; }
}
