nav {
    margin-bottom: 2rem;
}

nav a {
    margin-right: 1rem;
}

.form-actions {
    margin-top: 1.5rem;
}

.form-actions button {
    margin-right: 0.5rem;
}

textarea {
    font-family: monospace;
}

.recipe-list {
    list-style: none;
    padding: 0;
}

.recipe-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.recipe-list a {
    flex-grow: 1;
}

.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.delete-btn:hover {
    background: #c82333;
}

.checkbox-label {
    display: inline-block;
    margin-right: 1rem;
    font-weight: normal;
}

fieldset {
    margin-bottom: 1rem;
}

/* Search */
.search-container {
    margin-bottom: 1.5rem;
}

#search {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem;
    font-size: 1rem;
}

/* Recipe Grid */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.recipe-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: var(--background-body);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.recipe-card:hover {
    border-color: var(--links);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recipe-card a {
    flex-grow: 1;
}

.recipe-card form {
    margin-left: 1rem;
}

/* Static site card (a element) */
a.recipe-card {
    display: block;
}

/* Recipe View */
.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.meta-item {
    font-size: 0.9rem;
}

.recipe-tags {
    margin-bottom: 1.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin-right: 0.5rem;
    background: var(--button-base);
    border-radius: 4px;
    font-size: 0.85rem;
}

.recipe section {
    margin-bottom: 2rem;
}

.recipe h3 {
    margin-bottom: 0.75rem;
}

.recipe h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}
