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

body {
  font-family: Arial, sans-serif;
  background-color: #fff9f4;
}

/* === Header & Navigation === */
.header {
  background-color: #5a0f0f;
  padding: 0.5rem 0;
  width: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: 0 auto;
}

.logo {
  color: white;
  font-size: 2rem;
  font-weight: bold;
  text-decoration: none;
}

.nav {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 1.5rem;
}

.nav-item a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.nav-item a.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger-menu .bar {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 10px;
}

/* === Responsive Nav === */
@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #5a0f0f;
    position: absolute;
    top: 60px;
    left: 0;
    text-align: center;
  }

  .nav.active {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
  }

  .nav-item {
    margin: 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .hamburger-menu {
    display: flex;
  }
}

/* === Layout & Headings === */
main {
  max-width: 800px;
  margin: 0rem auto;
  padding: 1rem 1rem 0 1rem;
}

h1, h2 {
  color: #5a0f0f;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 0.5rem;
}

/* === Footer === */
footer {
  text-align: center;
  margin: 4rem 0 2rem;
  font-size: 0.9rem;
  color: #aaa;
}

/* === Recipe Browser === */
.recipe-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .recipe-cards {
    grid-template-columns: 1fr;
  }
}

.recipe-card {
  display: flex;
  align-items: flex-start;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: box-shadow 0.2s ease;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}

.recipe-card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 1rem;
  flex-shrink: 0;
}

.card-info {
  flex: 1;
  padding-left: 0.5rem;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.2rem;
  color: #5a0f0f;
}

.card-description {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.3;
}

/* === Recipe Viewer Layout === */
.recipe-image {
  width: 100%;
  max-width: 256px;
  max-height: 256px;
  height: auto;
  object-fit: cover;
  border-radius: 1rem;
  margin: 1rem 0;
}

.divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 1.5rem 0;
}

.mobile-stack section ul,
.mobile-stack section ol {
  padding-left: 1.5rem;
}

.desktop-columns {
  display: flex;
  flex-direction: row;
  gap: 4rem;
}

.layout-left {
  flex: 1;
}

.layout-right {
  flex: 2;
}

@media (max-width: 1023px) {
  .desktop-columns {
    display: none;
  }
}

@media (min-width: 1024px) {
  .mobile-stack {
    display: none;
  }
}

.meta-line {
  font-size: 0.9rem;
  color: #666;
  margin: 0.25rem 0 1rem;
}

.tag-container {
  margin: 1rem 0;
}

.tag {
  display: inline-block;
  background: #eee;
  border-radius: 12px;
  padding: 0.3em 0.6em;
  margin: 0.2em;
  font-size: 0.8rem;
}

.tag-course { background-color: #fdd; }
.tag-cuisine { background-color: #dfd; }
.tag-diet { background-color: #ddf; }
.tag-protein { background-color: #ffd; }
.tag-tools { background-color: #dff; }
.tag-season { background-color: #fdf; }

/* === Yumurai Viewer Additions === */

/* stepCard styles */
.stepCard {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  background-color: white;
  color: black;
}

.stepCard.active {
  background-color: #5a0f0f;
  color: white;
  
  box-shadow: 0 0 0 2px #5a0f0f inset;
}

.stepCard.inactive {
  background-color: #f0f0f0;
  color: #999;
}

/* Ingredient highlight */
.ingredient.highlight {
  background-color: yellow;
}
  white-space: pre-wrap;

/* Clear button style inside instruction container */






/* Styled horizontal rule for section separators */
hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 1rem 0 1rem 0;
}


.clear-step-button {
  display: block;
  margin: 1rem auto 0 auto;
  padding: 0.5em 1.5em;
  border: none;
  border-radius: 8px;
  background-color: #333;
  color: white;
  font-size: 0.85rem;
  cursor: pointer;
}

.clear-step-button:hover {
  background-color: #555;
}

ul#ingredientList,
ul#mobileIngredientList {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

ul#ingredientList li,
ul#mobileIngredientList li {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
}
