
/* this applies to the whole website, like a color parent*/
:root {
  --blue: #0018A4; /* Technigo blue */
  --pink: #FF6589; /* Technigo pink */
  --aqua: #CCFFE2; /* Technigo light aqua */
  --gray-dark: #333;
  --gray-light: #E5E7EB;
  --bg: #f9fafc;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--bg);
  color: var(--gray-dark);
  font-size: 16px;
  line-height: 24px; 
  margin: 0;
  padding: 32px;
}


h1, h2, h3, h4, h5, h6, p, ul, li {
  margin: 0 0 16px 0; 
  line-height: 24px;
}

.wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

/*  The title style */
.page-title {
  font-family: 'Futura', sans-serif;
  font-weight: 800;
  color: var(--blue);
  font-size: 64px; 
  line-height: 64px; /* extra luft för stor rubrik */
  letter-spacing: 0.5px;
  margin-bottom: 32px;
}

/* div-class = controlls*/
.controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 48px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.control-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--gray-dark);

  
}

.pill-group {           /* container for pillsm wrapps around several .pill (buttons) */
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Design for the pills it controls how each small rounded button looks like*/
.pill {
  padding: 10px 21px;
  border-radius: 9999px;
  border: 2px solid transparent;
  background-color: var(--aqua);
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  line-height: 24px; /* konsekvent med text */
  
}

.pill:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

/* when active state — Kitchen, Diet, Ingredients, and Cooking Time */
.pill.active[data-kitchen],
.pill.active[data-diet],
.pill.active[data-ingredients],
.pill.active[data-time] {
  background-color: var(--blue);                
  color: #fff;                                  
  box-shadow: 0 2px 6px rgba(0, 24, 164, 0.35); 
  transform: translateY(-1px);                 
}

/* Make the sorting row buttons line up nicely */
.sort-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Style the random recipe button to stand out */
#random-btn,
.pink-btn {
  background-color: var(--pink);
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
  box-shadow: 0 2px 6px rgba(255, 102, 137, 0.35);
}

#random-btn:hover,
.pink-btn:hover {
  background-color: var(--blue);
  transform: translateY(-1px);
}


/* The recipes grid */
.recipes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  width: 100%;
}

.card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--gray-light);
  box-shadow: 0 3px 6px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 20px rgba(0, 24, 164, 0.2);
  transform: translateY(-2px);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* card-body the main content section inside a card, put things like text, headings, and details.
   like the “inside of the box” under the picture.*/
.card-body {
  padding: 19px 22px;
  line-height: 24px;
}

.card-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 8px;
  line-height: 24px;
}

.card-body p {
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 24px;
}

.card-body strong {
  font-weight: 700;
  color: var(--blue);
}

.card-body h4 {
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-dark);
  line-height: 24px;
}

.card-body ul {
  padding-left: 19px;
  font-size: 14px;
  color: #444;
  line-height: 24px;
}

/* a message that shows up when no recipes match the user’s filters or search.*/
/*.empty {
  text-align: center;
  padding: 32px;
  font-size: 16px;
  color: #666;
  line-height: 24px;
}

.note {
  font-size: 14px;
  margin-bottom: 24px;
  color: #666;
  line-height: 24px;
}
