/* My Bowl of Happiness - Modern Recipe Blog Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #D32F2F;
    --light-red: #E57373;
    --fresh-red: #EF5350;
    --warm-orange: #FF7043;
    --light-orange: #FFB74D;
    --primary-green: #66BB6A;
    --light-green: #81C784;
    --fresh-green: #4CAF50;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --soft-gray: #E9ECEF;
    --text-dark: #212529;
    --text-medium: #6C757D;
    --text-light: #ADB5BD;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header & Navigation */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-red);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-red);
}

.main-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-toggle,
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

.menu-toggle {
    flex-direction: column;
    gap: 4px;
    display: none;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    background-color: var(--white);
    border-top: 1px solid var(--soft-gray);
    padding: 1rem 2rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--primary-red);
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    padding: 4rem 2rem 3rem;
    color: white;
}

.carousel-content .category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--light-orange);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.carousel-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.carousel-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.95;
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.carousel-content a {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-red);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
}

.carousel-content a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background-color: #f8f9fa;
}

.carousel-nav {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Styling */
.recipes-section {
    padding: 5rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.category-filters {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    flex-wrap: wrap;
}

.category-filters button {
    background: var(--white);
    border: 2px solid var(--soft-gray);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-medium);
    cursor: pointer;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-filters button:hover,
.category-filters button.active {
    color: var(--primary-red);
    border-color: var(--primary-red);
    background-color: rgba(211, 47, 47, 0.05);
}

/* Recipe Grid */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.recipe-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--soft-gray);
    cursor: pointer;
    opacity: 1;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(211, 47, 47, 0.2);
}

.recipe-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.recipe-card:hover img {
    transform: scale(1.05);
}

.recipe-card-content {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.recipe-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.recipe-card p {
    color: var(--text-medium);
    margin-bottom: 1.25rem;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 0.95rem;
}

.recipe-link {
    color: var(--warm-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.recipe-card:hover .recipe-link {
    color: var(--light-orange);
    gap: 0.75rem;
}

.recipe-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.recipe-card:hover .recipe-link::after {
    transform: translateX(4px);
}

/* Recipe Page Styles */
.recipe-hero {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
}

.recipe-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-intro {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.recipe-intro h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.recipe-intro .meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    color: var(--text-medium);
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.recipe-intro .description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.recipe-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.ingredients-section,
.method-section {
    padding-top: 2rem;
}

.ingredients-section h2,
.method-section h2 {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.3px;
}

.ingredients-list {
    list-style: none;
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--soft-gray);
}

.ingredients-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--soft-gray);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.ingredients-list li:last-child {
    border-bottom: none;
}

.method-steps {
    list-style: none;
    counter-reset: step-counter;
    background-color: var(--white);
    padding: 2rem;
    border-left: 4px solid var(--primary-red);
    border-radius: 0 8px 8px 0;
    box-shadow: var(--shadow-sm);
}

.method-steps li {
    counter-increment: step-counter;
    padding-left: 3rem;
    padding-bottom: 2rem;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.method-steps li:last-child {
    padding-bottom: 0;
}

.method-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-red);
}

.nutrition-section {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2.5rem;
    background-color: var(--light-gray);
    border-radius: 16px;
    border: 1px solid var(--soft-gray);
}

.nutrition-section h2 {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.3px;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.nutrition-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--soft-gray);
    color: var(--text-dark);
}

.nutrition-item:last-child {
    border-bottom: none;
}

.related-recipes {
    margin: 4rem 0;
    padding: 0;
}

.related-recipes .container h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Footer Styles */
.site-footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 4rem 2rem 2rem;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--light-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Page Content Styles */
.page-content {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem 4rem;
}

.page-content h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.page-content h2 {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.3px;
}

.page-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.page-content ul,
.page-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.page-content li {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

/* Contact Form */
.contact-form {
    max-width: 650px;
    margin: 3rem auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--soft-gray);
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--soft-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.form-group textarea {
    min-height: 160px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 1.1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.3px;
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--fresh-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem 1.5rem;
    }
    
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
    }

    .hero-carousel {
        height: 500px;
    }

    .carousel-content {
        padding: 3rem 1.5rem 2rem;
    }

    .carousel-content h1 {
        font-size: 2rem;
    }

    .recipes-section {
        padding: 3.5rem 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .recipes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .recipe-card-image {
        height: 220px;
    }

    .recipe-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem 3rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-content {
        padding: 0 1.5rem 3rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .carousel-content {
        padding: 2rem 1rem 1.5rem;
    }

    .carousel-content h1 {
        font-size: 1.75rem;
    }

    .recipe-intro h1 {
        font-size: 1.75rem;
    }

    .recipe-hero {
        height: 400px;
    }
}
