/* =========================================
   Recept.css - Styles for the Recipe Detail Page
   ========================================= */

/* 1. General Styles and Reset
   --------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  background: var(--light);
  color: var(--dark);
  transition: background 0.3s ease, color 0.3s ease; /* Smooth theme transitions */
}

main.recept-detail {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
}

/* 2. Back Navigation
   ------------------ */
.recept-terug-naar-overzicht {
  margin-bottom: 1.5rem;
  text-align: left;
}

.recept-terug-naar-overzicht a {
  color: var(--blue);
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.recept-terug-naar-overzicht a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* 3. Recipe Header
   ---------------- */
.recept-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.recept-afbeelding {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 15px; /* Rounded corners for a unique look */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.recept-afbeelding:hover {
  transform: scale(1.02); /* Subtle zoom on hover */
}

.recept-info {
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.recept-titel-favoriet {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.recept-titel-favoriet h1 {
  font-size: 2.5rem;
  color: var(--orange); /* Warm, appetizing color for titles */
  margin: 0;
}

.recept-favoriet-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--red); /* Heart color */
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.recept-favoriet-btn.active .recept-heart {
  color: white; 
}

.recept-favoriet-btn:hover {
  transform: scale(1.2); /* Enlarge on hover for interactivity */
}

.recept-heart {
  font-size: 1.5rem; /* Using the Unicode heart */
}

.recept-beschrijving {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.recept-meta {
  font-size: 1rem;
  color: var(--teal);
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.recept-personen-btn {
  background: var(--blue);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 50%; /* Circular buttons for a unique touch */
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.recept-personen-btn:hover {
  background: var(--gold);
  transform: scale(1.1);
}

.recept-categorieen {
  margin-top: 1rem;
}

.recept-categorie-tag {
  background: var(--green);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin: 0.5rem;
  display: inline-block;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.recept-categorie-tag:hover {
  background: var(--teal);
}

.recept-gemiddelde-beoordeling {
  font-size: 1rem;
  color: var(--gold);
  margin-top: 1rem;
}

.recept-gemiddelde-beoordeling .star {
  font-size: 1.2rem;
  color: var(--gold);
  margin: 0 0.2rem;
}

/* 4. Recipe Body (Ingredients and Instructions)
   --------------------------------------------- */
.recept-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.recept-ingrediënten,
.recept-bereidingswijze {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.recept-ingrediënten:hover,
.recept-bereidingswijze:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.recept-ingrediënten h2,
.recept-bereidingswijze h2 {
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 1rem;
}

.recept-ingrediënten ul {
  list-style: none;
}

.recept-ingrediënten li {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.recept-ingredient-check {
  margin-right: 0.5rem;
}

.recept-hoeveelheid {
  font-weight: bold;
}

.recept-bereidingswijze ol {
  list-style: decimal;
  padding-left: 1.5rem;
}

.recept-bereidingswijze li {
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* 5. Reviews and Rating Form
   -------------------------- */
.recept-laatste-beoordelingen,
.recept-beoordeling {
  margin-top: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.recept-laatste-beoordelingen:hover,
.recept-beoordeling:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.recept-laatste-beoordelingen h2,
.recept-beoordeling h2 {
  font-size: 1.5rem;
  color: var(--teal);
  margin-bottom: 1rem;
}

.recept-beoordeling {
  .recept-sterren {
    font-size: 1.5rem;
    color: var(--gold);
    cursor: pointer;
    margin-bottom: 1rem;
  }

  .recept-ster:hover {
    color: var(--orange); /* Highlight on hover */
    transform: scale(1.2);
  }

  textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gray);
    border-radius: 5px;
    margin-bottom: 1rem;
    resize: vertical;
  }

  .recept-btn {
    background: var(--blue);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .recept-btn:hover {
    background: var(--gold);
  }
}

/* 6. Responsive Design
   ------------------- */
@media (max-width: 768px) {
  .recept-header {
    flex-direction: column;
  }

  .recept-titel-favoriet {
    flex-direction: column;
    align-items: flex-start;
  }

  .recept-meta {
    flex-direction: column;
    align-items: center;
  }

  .recept-body {
    gap: 1.5rem;
  }
}

/* 7. Dark Mode Adjustments
   ----------------------- */
[data-theme="dark"] .recept-header,
[data-theme="dark"] .recept-body,
[data-theme="dark"] .recept-laatste-beoordelingen,
[data-theme="dark"] .recept-beoordeling {
  background: var(--light);
  color: var(--dark);
}

[data-theme="dark"] .recept-btn,
[data-theme="dark"] .recept-personen-btn {
  background: var(--blue);
  color: var(--dark);
}

[data-theme="dark"] .recept-sterren {
  color: var(--gold);
}

[data-theme="dark"] textarea {
  background: var(--light);
  border-color: var(--gray);
}
