* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #faf9f4;
    color: #344b3c;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 8%;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 25px;
    font-weight: bold;
    color: #456b50;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #344b3c;
    font-weight: 500;
}

nav a:hover {
    color: #83a889;
}

.hero {
    min-height: 430px;
    display: flex;
    align-items: center;
    padding: 60px 10%;
    background: linear-gradient(
        120deg,
        #e7efe3,
        #f8f5e9
    );
}

.hero-content {
    max-width: 600px;
}

.tag {
    background: #d6e5d3;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 48px;
    margin: 25px 0;
    line-height: 1.2;
}

.hero h1 span {
    color: #729878;
}

.hero p {
    line-height: 1.8;
    color: #657568;
    margin-bottom: 25px;
}

.hero-btn {
    display: inline-block;
    background: #557c5d;
    color: white;
    padding: 13px 25px;
    border-radius: 8px;
    text-decoration: none;
}

.generator, .saved {
    padding: 70px 10%;
    text-align: center;
}

.generator h2, .saved h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

.generator > p, .saved > p {
    color: #7a887d;
    margin-bottom: 30px;
}

.input-box {
    display: flex;
    max-width: 700px;
    margin: auto;
    gap: 10px;
}

.input-box input {
    flex: 1;
    min-width: 0;
    padding: 16px;
    border: 1px solid #d6ded4;
    border-radius: 8px;
    font-size: 15px;
}

button {
    border: none;
    background: #557c5d;
    color: white;
    padding: 14px 22px;
    border-radius: 8px;
    cursor: pointer;
}

button:hover {
    background: #3e6247;
}

.generator h3 {
    margin: 30px 0 15px;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.filters label {
    cursor: pointer;
}

.filters input {
    accent-color: #557c5d;
}

.time-filter {
    margin-top: 25px;
}

.time-filter select {
    padding: 10px;
    border: 1px solid #d6ded4;
    border-radius: 8px;
    margin-left: 8px;
}

.results {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 35px;
    text-align: left;
}

.recipe-card {
    background: white;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 4px 15px #0000000b;
    border: 1px solid #edf0e9;
}

.recipe-card h3 {
    color: #456b50;
    margin-bottom: 10px;
}

.recipe-card p {
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 14px;
}

.recipe-card button {
    margin-top: 10px;
    margin-right: 5px;
    font-size: 12px;
}

.recipe-card .delete {
    background: #b75d54;
}

.empty {
    text-align: center;
    color: #8a958b;
    grid-column: 1 / -1;
}

footer {
    text-align: center;
    padding: 35px;
    background: #344b3c;
    color: white;
    line-height: 2;
}

@media(max-width: 600px) {
    header {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        gap: 15px;
        font-size: 13px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .input-box {
        flex-direction: column;
    }

    .filters {
        flex-direction: column;
        align-items: center;
    }

    .time-filter select {
        margin-top: 10px;
    }
}