body {
    background-color: #fff7f8;
    font-family: Nunito, sans-serif;
    min-height: 100vh;
    margin: 0;
}

.page-header {
    text-align: center;
    padding: 36px 20px 12px;
}

.page-header h1 {
    font-size: 32px;
    color: #a34e69;
    font-weight: 800;
    margin: 0;
}

.page-header p {
    font-size: 14px;
    color: #9b697a;
    margin: 8px 0 0;
}

#recipes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 550px;
    margin: 20px auto;
}

.recipe-card {
    background-color: #ffffff;
    border: 1px solid #f2d7dd;
    border-radius: 12px;
    padding: 12px 16px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s;
}

.recipe-card:hover {
  box-shadow: 0 4px 12px rgba(230, 158, 158, 0.2);
}

.recipe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.recipe-header h4 {
    margin: 0;
    font-size: 16px;
    color: #402a34;
    min-width: 0;
    overflow-wrap: anywhere;
}

.recipe-card p {
    font-size: 11px;
    font-weight: 600;
    color: #9b697a;
    margin: 10px 0 6px;
}

.recipe-rate {
    background-color: #e5f5e9;
    color: #237344;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 9px;
    border-radius: 20px;
    white-space: nowrap;
}

#search-input {
    display: block;
    margin: 20px auto;
    width: 90%;
    max-width: 550px;
    box-sizing: border-box;

    background-color: #ffffff;
    border: 1px solid #f2d7dd;
    border-radius: 12px;
    padding: 14px 18px;

    font-family: Nunito, sans-serif;
    font-size: 15px;
    color: #402a34;

    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#search-input::placeholder {
    color: #b9a0a8;
}

#search-input:focus {
    border-color: #d98ba3;
    box-shadow: 0 0 0 3px rgba(217, 139, 163, 0.15);
}

#search-input:hover {
    border-color: #d98ba3;
}

.ingredient-label {
    font-size: 11px;
    font-weight: 600;
    color: #9b697a;
    margin: 10px 0 6px;
}

.ingredient-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px; 
}

.ingredient-tag {
    background-color: #fff0f3;
    color: #a34e69;
    border-radius: 20px;
    padding: 4px 9px;
    font-size: 12px;
}

@media (max-width: 480px) {
  .page-header {
    padding-top: 24px;
  }

  .page-header h1 {
    font-size: 26px;
  }
}