* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #F5E6D3;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    background-color: #2C3E50;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 1.5rem;
}

nav button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
}

nav button:hover {
    color: #D4A574;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #556B2F 0%, #C85A3A 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Search and Filters */
.search-section {
    background: white;
    padding: 30px 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-input {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 2px solid #556B2F;
    border-radius: 4px;
    margin-bottom: 20px;
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #556B2F;
    background: white;
    color: #556B2F;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.filter-btn.active {
    background: #556B2F;
    color: white;
}

.filter-btn:hover {
    background: #556B2F;
    color: white;
}

/* Recipe Grid */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.recipe-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.recipe-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0f0f0;
}

.recipe-content {
    padding: 15px;
}

.recipe-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2C3E50;
    margin-bottom: 8px;
}

.recipe-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #999;
}

.recipe-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.stars {
    color: #FFD700;
}

/* Recipe Detail Page */
.recipe-detail {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.recipe-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    background: #f0f0f0;
}

.recipe-detail-content {
    padding: 30px;
}

.recipe-detail-header {
    margin-bottom: 30px;
}

.recipe-detail-title {
    font-size: 2.5rem;
    color: #2C3E50;
    margin-bottom: 10px;
}

.recipe-detail-description {
    font-size: 1.1rem;
    color: #666;
}

.recipe-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background: #F5E6D3;
    border-radius: 8px;
}

.info-item {
    text-align: center;
}

.info-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #C85A3A;
}

.info-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* Ingredients and Instructions */
.section {
    margin: 30px 0;
}

.section-title {
    font-size: 1.8rem;
    color: #2C3E50;
    margin-bottom: 15px;
    border-bottom: 3px solid #556B2F;
    padding-bottom: 10px;
}

.ingredients-list {
    list-style: none;
}

.ingredients-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.ingredients-list li:last-child {
    border-bottom: none;
}

.instructions-list {
    list-style: none;
    counter-reset: step-counter;
}

.instructions-list li {
    counter-increment: step-counter;
    padding: 15px 0 15px 60px;
    position: relative;
    margin-bottom: 10px;
}

.instructions-list li:before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: #C85A3A;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.tips {
    background: #F5E6D3;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.tips-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #556B2F;
}

.tips ul {
    list-style: none;
}

.tips li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.tips li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #D4A574;
    font-weight: bold;
}

/* Reviews Section */
.reviews-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.reviews-title {
    font-size: 1.8rem;
    color: #2C3E50;
    margin-bottom: 20px;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #F5E6D3;
    border-radius: 8px;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-stars {
    font-size: 1.5rem;
    color: #FFD700;
}

.rating-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2C3E50;
}

.review-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2C3E50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.star-rating {
    display: flex;
    gap: 10px;
    font-size: 2rem;
}

.star-rating button {
    background: none;
    border: none;
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s;
}

.star-rating button:hover,
.star-rating button.active {
    color: #FFD700;
}

.btn {
    padding: 12px 24px;
    background: #C85A3A;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: #A84530;
}

.btn-secondary {
    background: #556B2F;
}

.btn-secondary:hover {
    background: #3d4d20;
}

.review-item {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-author {
    font-weight: bold;
    color: #2C3E50;
}

.review-date {
    color: #999;
    font-size: 0.9rem;
}

.review-rating {
    color: #FFD700;
    margin-bottom: 10px;
}

.review-comment {
    color: #666;
    line-height: 1.6;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #556B2F;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 20px;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: background 0.3s;
}

.back-btn:hover {
    background: #3d4d20;
}

/* Cultural Sections */
.cultural-section {
    margin: 40px 0;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cultural-section h2 {
    font-size: 2rem;
    color: #2C3E50;
    margin-bottom: 20px;
    border-bottom: 3px solid #556B2F;
    padding-bottom: 10px;
}

.spices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.spice-card {
    background: #F5E6D3;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #C85A3A;
}

.spice-card h3 {
    color: #C85A3A;
    margin-bottom: 10px;
}

.spice-card p {
    color: #666;
    font-size: 0.95rem;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.method-card {
    background: linear-gradient(135deg, #C85A3A 0%, #A84530 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
}

.method-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.regional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.regional-card {
    background: #F5E6D3;
    padding: 20px;
    border-radius: 8px;
    border-top: 4px solid #556B2F;
}

.regional-card h3 {
    color: #556B2F;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: #2C3E50;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

footer p {
    margin: 5px 0;
}

/* Print Styles */
@media print {
    nav, .back-btn, .review-form, .filters {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .recipe-detail {
        box-shadow: none;
        border: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .recipes-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .recipe-detail-title {
        font-size: 1.8rem;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .recipe-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .spices-grid,
    .methods-grid,
    .regional-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}
