body {
    font-family: 'Poppins', sans-serif;
    background-color: #fffaf0;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #ffe6f0;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(230, 230, 250, 0.5);
}

header {
    text-align: center;
    margin-bottom: 25px;
}

h1 {
    font-family: 'Caveat', cursive;
    font-size: 4rem;
    color: #ff69b4;
    margin: 0;
}

header p {
    font-size: 1.2rem;
    color: #b8001c;
    margin: 5px 0 0;
}

.search-area {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

input {
    flex: 1;
    padding: 12px;
    font-size: 1.2rem;
    border: 2px solid #e6e6fa;
    border-radius: 15px;
    outline: none;
    background: #fff;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #ff69b4;
}

a {
    padding: 10px 25px;
    color: #f3f3f3;
    font-size: 1.2rem;
}
#return-button {
    padding: 10px 0px;
}
button {
    padding: 12px 20px;
    font-size: 14px;
    background: linear-gradient(135deg, #ff69b4, #ffb6c1);
    color: #fff;
    font-size: 1.2rem;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.2s;
}

button:hover {
    transform: scale(1.05);
}

.spinner {
    display: none;
    width: 40px;
    height: 40px;
    border: 4px solid #ffb6c1;
    border-top: 4px solid #ff69b4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.recipe-card {
    background: #fff;
    border: 2px solid #e6e6fa;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(255, 182, 193, 0.3);
    transition: transform 0.3s;
}

.recipe-card:hover {
    transform: translateY(-5px);
}

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

.recipe-card h2 {
    font-family: 'Caveat', cursive;
    font-size: 28px;
    color: #ff69b4;
    margin: 10px 0;
}

.recipe-card p {
    font-size: 14px;
    color: #ffb6c1;
    margin: 5px 0;
}

.view-recipe {
    background: linear-gradient(135deg, #ff69b4, #ffb6c1);
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 15px;
}

.no-results, .error {
    font-size: 16px;
    color: #ffb6c1;
    text-align: center;
    padding: 20px;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.recipe-details {
    margin-top: 15px;
    padding: 15px;
    background: #e6e6fa;
    border-radius: 15px;
}

.recipe-details h3 {
    font-family: 'Caveat', cursive;
    font-size: 24px;
    color: #ff69b4;
    margin: 0 0 10px;
}

.recipe-details p {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px;
}

.recipe-details a {
    color: #ff69b4;
    text-decoration: none;
    font-weight: 600;
}

.recipe-details a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .search-area {
        flex-direction: column;
    }
    input, button {
        width: 100%;
        border-radius: 15px;
    }
    .recipe-card {
        width: 100%;
    }
}