:root {
    --bg-color: #FDF5E6; /* Old Lace (Cream) */
    --text-color: #4A3728; /* Dark Brown */
    --accent-color: #D2691E; /* Chocolate */
    --highlight-color: #FFA07A; /* Light Salmon */
    --card-bg: #FFF8DC; /* Cornsilk */
    --header-bg: #8B4513; /* Saddle Brown */
    --header-text: #FAEBD7; /* Antique White */
}

body {
    font-family: 'Georgia', serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--header-text);
}

.nav-links a {
    color: var(--header-text);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--highlight-color);
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.search-bar {
    margin-bottom: 2rem;
    text-align: center;
}

.search-bar input {
    padding: 0.8rem;
    width: 60%;
    max-width: 500px;
    border: 2px solid var(--accent-color);
    border-radius: 25px;
    background-color: #fff;
    font-family: inherit;
    outline: none;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.recipe-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid #E6D8AD;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.recipe-image-placeholder {
    height: 180px;
    width: 100%;
}

.recipe-content {
    padding: 1.5rem;
}

.recipe-title {
    font-size: 1.4rem;
    margin: 0 0 0.5rem 0;
    color: var(--header-bg);
}

.recipe-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}

.tag {
    background-color: var(--highlight-color);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    display: inline-block;
}

/* Detail Page */
.recipe-detail {
    background-color: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.detail-header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 2rem;
}

.detail-image {
    width: 100%;
    height: 300px;
    background-color: #ddd;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.detail-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1rem;
    font-weight: bold;
    color: var(--accent-color);
}

.recipe-sections {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

@media (max-width: 768px) {
    .recipe-sections {
        grid-template-columns: 1fr;
    }
}

.section-title {
    color: var(--header-bg);
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

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

ul.ingredients-list li {
    padding: 0.5rem 0;
    border-bottom: 1px dotted #eee;
}

ol.instructions-list li {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

/* Form Styles */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--header-bg);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s;
    display: block;
    width: 100%;
}

.btn-primary:hover {
    background-color: #A0522D; /* Sienna */
}
