/* CSS Variables */
:root {
    --primary: 25 85% 60%; /* #E67E22 - warm orange */
    --primary-dark: 25 85% 50%; /* #D35400 */
    --secondary: 120 25% 45%; /* #6B8E4B - sage green */
    --accent: 45 100% 70%; /* #FFD93D - golden yellow */
    --background: 210 11% 98%; /* #F5F7FA */
    --surface: 0 0% 100%; /* #FFFFFF */
    --text-primary: 220 13% 18%; /* #2C3E50 */
    --text-secondary: 215 15% 47%; /* #7F8C8D */
    --border: 210 14% 89%; /* #E5E8EB */
    --shadow: 220 13% 18% / 0.1;
    --red: 354 70% 54%; /* #E74C3C */
    --green: 142 71% 45%; /* #27AE60 */
    
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: hsl(var(--text-primary));
    background-color: hsl(var(--background));
}

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

/* Header Styles */
header {
    background-color: hsl(var(--surface));
    box-shadow: 0 2px 10px hsl(var(--shadow));
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    padding: 0 20px;
}

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

.nav-logo h1 {
    color: hsl(var(--primary));
    font-size: 1.8rem;
    margin-bottom: -5px;
}

.nav-logo span {
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: hsl(var(--text-primary));
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: hsl(var(--primary));
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: hsl(var(--text-primary));
    margin: 3px 0;
    transition: var(--transition);
}

/* Cookie Notice Styles */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--text-primary));
    color: white;
    padding: 1rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: var(--transition);
}

.cookie-notice.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

.cookie-buttons button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.cookie-buttons button:first-child {
    background-color: hsl(var(--primary));
    color: white;
}

.cookie-buttons button:nth-child(2) {
    background-color: hsl(var(--surface));
    color: hsl(var(--text-primary));
}

.cookie-buttons button:last-child {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

/* Cookie Modal */
.cookie-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.cookie-modal-content {
    background-color: hsl(var(--surface));
    margin: 15% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
}

.cookie-option {
    margin: 1rem 0;
}

.cookie-option label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.cookie-option span {
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cookie-modal-buttons button {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.cookie-modal-buttons button:first-child {
    background-color: hsl(var(--primary));
    color: white;
}

.cookie-modal-buttons button:last-child {
    background-color: hsl(var(--border));
    color: hsl(var(--text-primary));
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 4rem 0;
    background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(var(--accent) / 0.1) 100%);
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 4rem 20px;
}

.hero-content h1 {
    font-size: 3rem;
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: hsl(var(--text-secondary));
    margin-bottom: 2rem;
}

.cta-button {
    background-color: hsl(var(--primary));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: hsl(var(--primary-dark));
    transform: translateY(-2px);
}

.image-placeholder {
    background-color: hsl(var(--border));
    border: 2px dashed hsl(var(--text-secondary));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--text-secondary));
    font-size: 1rem;
    text-align: center;
    min-height: 200px;
}

/* Recipe of the Day */
.recipe-day {
    padding: 4rem 0;
    background-color: hsl(var(--surface));
}

.recipe-day h2 {
    text-align: center;
    font-size: 2.5rem;
    color: hsl(var(--text-primary));
    margin-bottom: 3rem;
}

.recipe-card-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background-color: hsl(var(--surface));
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px hsl(var(--shadow));
}

.recipe-card-large .recipe-image {
    height: 400px;
}

.recipe-content {
    padding: 2rem;
}

.recipe-content h3 {
    font-size: 2rem;
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
}

.recipe-description {
    color: hsl(var(--text-secondary));
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.recipe-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.recipe-meta span {
    background-color: hsl(var(--background));
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
}

.recipe-ingredients h4 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
}

.recipe-ingredients ul {
    list-style: none;
    color: hsl(var(--text-secondary));
}

.recipe-ingredients li {
    padding: 0.3rem 0;
    border-bottom: 1px solid hsl(var(--border));
}

.recipe-ingredients li:before {
    content: "• ";
    color: hsl(var(--primary));
    font-weight: bold;
}

/* Popular Recipes */
.popular-recipes {
    padding: 4rem 0;
    background-color: hsl(var(--background));
}

.popular-recipes h2 {
    text-align: center;
    font-size: 2.5rem;
    color: hsl(var(--text-primary));
    margin-bottom: 3rem;
}

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

.recipe-card {
    background-color: hsl(var(--surface));
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px hsl(var(--shadow));
    transition: var(--transition);
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px hsl(var(--shadow));
}

.recipe-card .recipe-image {
    height: 200px;
}

.recipe-info {
    padding: 1.5rem;
}

.recipe-info h3 {
    color: hsl(var(--text-primary));
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.recipe-info p {
    color: hsl(var(--text-secondary));
    margin-bottom: 1rem;
}

.cook-time {
    background-color: hsl(var(--accent) / 0.2);
    color: hsl(var(--text-primary));
    padding: 0.3rem 0.8rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

/* Shopping List */
.shopping-list {
    padding: 4rem 0;
    background-color: hsl(var(--surface));
}

.shopping-list h2 {
    text-align: center;
    font-size: 2.5rem;
    color: hsl(var(--text-primary));
    margin-bottom: 3rem;
}

.shopping-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.shopping-description h3 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.shopping-description p {
    color: hsl(var(--text-secondary));
    font-size: 1.1rem;
}

.shopping-list-tool {
    background-color: hsl(var(--background));
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px hsl(var(--shadow));
}

.list-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.list-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.list-input button {
    background-color: hsl(var(--primary));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.list-input button:hover {
    background-color: hsl(var(--primary-dark));
}

.shopping-items {
    list-style: none;
    margin-bottom: 1rem;
}

.shopping-items li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: hsl(var(--surface));
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
}

.shopping-items li button {
    background-color: hsl(var(--red));
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.8rem;
}

.clear-list {
    width: 100%;
    background-color: hsl(var(--text-secondary));
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.clear-list:hover {
    background-color: hsl(var(--text-primary));
}

/* Blog Section */
.blog-section {
    padding: 4rem 0;
    background-color: hsl(var(--background));
}

.blog-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: hsl(var(--text-primary));
    margin-bottom: 3rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: hsl(var(--surface));
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px hsl(var(--shadow));
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px hsl(var(--shadow));
}

.blog-card .blog-image {
    height: 200px;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    margin-bottom: 1rem;
}

.blog-content h3 a {
    color: hsl(var(--text-primary));
    text-decoration: none;
    font-size: 1.3rem;
    transition: var(--transition);
}

.blog-content h3 a:hover {
    color: hsl(var(--primary));
}

.blog-content p {
    color: hsl(var(--text-secondary));
    margin-bottom: 1rem;
}

.blog-date {
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
    font-style: italic;
}

/* Newsletter */
.newsletter {
    padding: 4rem 0;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary-dark)) 100%);
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.newsletter-form button {
    background-color: hsl(var(--surface));
    color: hsl(var(--primary));
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: hsl(var(--background));
}

.newsletter-privacy {
    font-size: 0.9rem;
    opacity: 0.8;
}

.newsletter-privacy a {
    color: white;
    text-decoration: underline;
}

/* About Section */
.about {
    padding: 4rem 0;
    background-color: hsl(var(--surface));
}

.about h2 {
    font-size: 2.5rem;
    color: hsl(var(--text-primary));
    margin-bottom: 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    color: hsl(var(--text-secondary));
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    height: 300px;
}

/* Footer */
footer {
    background-color: hsl(var(--text-primary));
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: hsl(var(--accent));
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: hsl(var(--accent));
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: hsl(var(--primary));
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: hsl(var(--surface));
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 27px hsl(var(--shadow));
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .recipe-card-large {
        grid-template-columns: 1fr;
    }
    
    .shopping-content {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .recipes-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

.show {
    display: block;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
a:focus {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}
