:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --background-color: #f8f9fa;
    --text-color: #333;
    --header-bg: #ffffff;
    --header-text: #2c3e50;
    --header-hover: #4a90e2;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

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

header {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 0.75rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.nav-left {
    display: flex;
    gap: 1rem;
}

.nav-right {
    display: flex;
    gap: 1rem;
}

nav a {
    color: var(--header-text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

nav a:hover {
    background-color: var(--header-hover);
    color: white;
}

.search-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-input {
    width: 100%;
    padding: 0.8rem;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.search-results {
    margin-top: 2rem;
}

/* Home page styles */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.site-header {
    text-align: center;
    margin-bottom: 3rem;
}

.site-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-top: 0.5rem;
}

.home-grid {
    display: grid;
    gap: 2rem;
}

.filter-options, .recent-recipes {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.filter-card {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.filter-card h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.3rem;
}

.filter-card p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.filter-card .count {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-top: auto;
}

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

.recipe-card {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
}

.recipe-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.recipe-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.recipe-card h3 a:hover {
    color: var(--secondary-color);
}

.recipe-meta {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.recipe-meta span {
    margin-right: 1rem;
}

/* Footer styles */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    background-color: var(--header-bg);
    color: var(--header-text);
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

/* Global list styles */
ul, ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

li {
    margin: 0.25rem 0;
}

/* Global heading styles */
h1, h2, h3, h4, h5, h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

h1:first-child, h2:first-child, h3:first-child {
    margin-top: 0;
}

/* Utility classes */
h2 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Mobile-friendly styles */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }

    header {
        padding: 0.5rem 0;
        margin-bottom: 1rem;
    }

    nav {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.5rem;
    }
    
    .nav-left, .nav-right {
        display: flex;
        gap: 0.3rem;
    }
    
    .nav-link {
        padding: 0.3rem;
        font-size: 0.9rem;
    }
    
    .nav-link svg {
        width: 18px;
        height: 18px;
    }

    .site-header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .home-grid {
        gap: 1rem;
    }

    .filter-options, .recent-recipes {
        padding: 1rem;
    }

    .filter-grid {
        gap: 1rem;
    }

    .filter-card {
        padding: 1rem;
    }

    .filter-card h3 {
        font-size: 1.1rem;
    }

    .recipes-grid {
        gap: 1rem;
    }

    .recipe-card {
        padding: 1rem;
    }

    .recipe-card h3 {
        font-size: 1.1rem;
    }

    .recipe-meta {
        font-size: 0.8rem;
    }

    .recipe-meta span {
        margin-right: 0.5rem;
    }

    footer {
        padding: 1rem 0;
        margin-top: 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .search-container {
        margin: 1rem auto;
        padding: 1rem;
    }

    .search-input {
        padding: 0.6rem;
        font-size: 1rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    nav {
        gap: 0.2rem;
    }

    .nav-left {
        gap: 0.2rem;
    }

    nav a {
        padding: 0.3rem 0.3rem;
        font-size: 0.8rem;
    }

    .icon-link svg {
        width: 16px;
        height: 16px;
    }

    .site-header h1 {
        font-size: 1.8rem;
    }

    .filter-card h3 {
        font-size: 1rem;
    }

    .recipe-card h3 {
        font-size: 1rem;
    }
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link svg {
    flex-shrink: 0;
}

.nav-text {
    display: none;
}

@media (min-width: 769px) {
    .nav-text {
        display: inline;
    }
} 