/* @import url("./reset.css"); */
@import url("utility.css");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/icon?family=Material+Icons+Outlined");

body {
  background-color: #efefef;
  font-family: "Open Sans", sans-serif;
  overflow-x: hidden;
}
* {
    margin: 0;
    
    padding: 0;
    box-sizing: border-box;
  }
.header {
  display: flex;
  align-items: center;
  position: fixed;
  z-index: 2;
  width: 100vw;
  background-color: #efefef;
  padding: 1rem 9rem 1rem 6rem;
}

.search-container {
  position: relative;
  display: flex;
  gap: 1rem;
  margin-left: auto;
}

.input {
  background-color: transparent;
  border-radius: 4px;
  border: 2px solid;
  padding: 8px 8px 8px 2.5rem;
  font-size: 1.25rem;
  width: 25rem;
}

.input:focus {
  outline: none;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 10px;
}

.main {
  gap: 3rem;
  
  padding: 8rem 5rem 2rem 20rem;
}

.card {
  width: 20rem;
  height: max-content;
  border-radius: 4px;
  background-color: #f8fafc;
  padding: 8px;
}

.card:hover {
  scale: 1.1;
  transition: scale 0.5s;
}

.shadow {
  box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.1);
}

.card-image-container {
  width: 100%;
  height: 18rem;
  padding-bottom: 4px;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: center center;
  border-radius: 4px 4px 4px 4px;
}

.card-image:hover {
  cursor: pointer;
}

.recipe-details {
  padding: 8px;
}

.title {
  font-size: 1.1rem;
}

.ratings {
  display: flex;
  justify-content: space-between;
  color: #71717a;
  padding-top: 8px;
  font-size: 0.875rem;
}

.time {
  font-size: 0.875rem;
  align-self: center;
}

.star-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}

.cuisine-filter {
  width: 18rem;
  position: fixed;
  height: 100%;
  margin-top: 6rem;
  z-index: 1;
  overflow-y: auto;
  padding: 1rem 1rem 8.5rem 1rem;
}

.filter {
  display: flex;
  flex-direction:column;
  gap: 1rem;
  padding: 0.6rem 0.4rem;
  align-items: center;
  margin-left: 1.5rem;
  cursor:pointer;

}

.checkbox {
  width: 1rem;
  height: 1rem;
}

.cuisine-label {
  font-size: 1.1rem;
}

.info {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.fs-large {
  font-size: 1.5rem;
}

.single-card-main {
  padding: 8rem 4rem 2rem 8rem;
}

.recipe-steps {
  width: 50vw;
  padding: 1rem 4rem 2rem 8rem;
}

/* Recipe content container for side-by-side layout */
.recipe-content-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

/* Ingredients sidebar */
.ingredients-sidebar {
    flex: 1;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 300px;
}

.ingredients-sidebar h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #6366f1;
    padding-bottom: 0.5rem;
}

.ingredients-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ingredients-sidebar li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 1.5rem;
}

.ingredients-sidebar li:before {
    content: "•";
    color: #6366f1;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Instructions section */
.recipe-instructions {
    width: 100%;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.recipe-instructions h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #6366f1;
    padding-bottom: 0.5rem;
}

.recipe-instructions ol {
    padding-left: 1.5rem;
}

.recipe-instructions li {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Responsive design */
@media (max-width: 768px) {
    .recipe-content-container {
        flex-direction: column;
    }
    
    .ingredients-sidebar {
        max-width: 100%;
    }
}