:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #ff9a44;
    --light: #f8f9fa;
    --dark: #343a40;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

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

.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('http://static.photos/food/1200x630/1');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    border-radius: 1rem;
    margin: 2rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    padding: 2rem;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-container {
    display: flex;
    background: white;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-container input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
}

.search-container button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.search-container button:hover {
    background: var(--secondary);
}

.filters {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tabs button {
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    border: none;
    background: #e9ecef;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-tabs button.active {
    background: var(--primary);
    color: white;
}

.filter-tabs button:hover:not(.active) {
    background: #dee2e6;
}

.sort-options select {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
    background: white;
    cursor: pointer;
}

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

@media (max-width: 768px) {
    .hero {
        height: 300px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .recipe-grid {
        grid-template-columns: 1fr;
    }
}