.logo-text p {
    font-size: 1.1rem;
    margin-top: 0.2em;
    color: #666;
}

/* Modal styles for recipe details */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

.modal[aria-hidden="false"] {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}

.modal-card {
    position: relative;
    z-index: 1001;
    background: #fff;
    margin: 4rem auto;
    max-width: 960px;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    max-height: 80vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: .6rem;
    right: .7rem;
    background: none;
    border: 0;
    font-size: 1.6rem;
    cursor: pointer;
}

.modal-cols {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .modal-cols {
        grid-template-columns: 1fr;
    }
}

.ingredients-list,
.directions-list {
    margin: .5rem 0 0;
    padding-left: 1.25rem;
}

.nutri-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
}

.nutri-grid .card {
    background: #f7faf7;
    border: 1px solid #e5eee5;
    border-radius: 12px;
    padding: .7rem;
}

.nutri-grid .key {
    font-size: .85rem;
    color: #666;
}

.nutri-grid .val {
    font-size: 1.1rem;
    color: #2e7d32;
    font-weight: 600;
}

/* Modal styles for recipe details */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

.modal[aria-hidden="false"] {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-card {
    position: relative;
    z-index: 1001;
    background: #fff;
    margin: 4rem auto;
    max-width: 900px;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
}

.modal-close {
    position: absolute;
    top: .5rem;
    right: .5rem;
    background: none;
    border: 0;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-cols {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

@media(max-width:800px) {
    .modal-cols {
        grid-template-columns: 1fr;
    }
}

/* Modal styles for recipe details */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.modal-card {
    position: relative;
    max-width: 980px;
    margin: 4rem auto;
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
}

.modal-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    font-size: 1.5rem;
    background: none;
    border: 0;
    cursor: pointer;
}

.modal-cols {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1.2fr .8fr;
}

@media (max-width: 900px) {
    .modal-cols {
        grid-template-columns: 1fr;
    }
}

.ingredients-list,
.directions-list {
    margin: .5rem 0 0;
    padding-left: 1.25rem;
}

.nutri-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}

.nutri-grid .card {
    background: #f8faf8;
    border: 1px solid #e6eee6;
    border-radius: 12px;
    padding: .75rem;
}

.nutri-grid .key {
    font-size: .85rem;
    color: #666;
}

.nutri-grid .val {
    font-size: 1.1rem;
    color: #2e7d32;
    font-weight: 600;
}

/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Navigation Bar Styles */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* Always show navbar, no hover effect */
    transform: translateY(0);
    transition: none;
    /* Move navbar down to avoid covering page title */
    margin-top: 0;
}

.navbar:hover {
    transform: translateY(0);
    transition: transform 0.3s ease 0s;
}

/* Hover trigger area for navbar */
.navbar-trigger {
    display: none;
}

.navbar-trigger:hover + .navbar {
    transform: translateY(0);
    transition: transform 0.3s ease 0s;
}

.nav-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 110px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    position: relative;
    width: 80px;
    height: 80px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Custom logo styles */
.custom-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.custom-logo-icon {
    font-size: 24px;
    color: white;
}

.text-logo {
    font-size: 22px;
    font-weight: bold;
    color: white;
    text-align: center;
    line-height: 80px;
}

.logo-text h1 {
    color: #2E7D32;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.logo-text p {
    color: #666;
    font-size: 12px;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 30px;
    margin: 0 auto;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 20px;
    transition: color 0.3s ease;
    gap: 5px;
}

.nav-link i {
    font-size: 16px;
}

.nav-link.active {
    color: #4CAF50;
}

.nav-link:hover {
    color: #4CAF50;
}

.nav-right {
    display: flex;
    gap: 15px;
}

.nav-icon-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.nav-icon-btn:hover {
    background-color: #f5f5f5;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 8px;
}

/* Mobile menu styles */
.nav-links.show {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
    .nav-links.show {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links.show .nav-link {
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
    }
}

/* Main content area */
.main-content {
    margin-top: 0;
}

/* 单页面滚动支持 */
html {
    scroll-behavior: smooth;
}

/* 导航栏滚动隐藏效果 */
.navbar {
    transition: transform 0.3s ease;
}

.navbar.hidden {
    transform: translateY(-100%);
}

/* 滚动到各个部分的间距 */
.scroll-to-section {
    scroll-margin-top: 110px;
}

/* Hero Section Styles */
.hero-section {
    /* background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)), url('WechatIMG1763.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat; */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 120px 20px;
    text-align: center;
    min-height: 60vh;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 20px;
    line-height: 1.2;
    white-space: nowrap;
    margin-left: -50px;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
    background: white;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    border-color: #4CAF50;
    color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* How It Works Section Styles */
.how-it-works {
    padding: 80px 20px;
    background: white;
}

.section-container {
    max-width: 80%;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #4CAF50;
    margin-bottom: 60px;
    position: relative;
}


.features-section .section-title::before,
.features-section .section-title::after {
    display: none !important;
    content: none !important;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border 0.3s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border: 2px solid #4CAF50;
}

.card:hover .card-icon {
    background: #4CAF50;
    color: white;
    transform: scale(1.1);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #4CAF50;
    position: relative;
    transition: background 0.3s ease, transform 0.3s ease;
}



.card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.card p {
    color: #666;
    line-height: 1.6;
}

/* Feature button area styles */
.features-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

.features-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0.7;
    text-decoration: none;
}

.feature-item,
.feature-item:visited,
.feature-item:active,
.feature-item:focus,
.feature-item:hover {
    text-decoration: none !important;
    color: inherit;
}


.feature-item:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 30px;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background: #4CAF50;
    color: white;
    transform: scale(1.1);
}

.feature-text {
    color: #666;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease;
}

.feature-item:hover .feature-text {
    color: #4CAF50;
}

/* Footer styles */
.footer {
    background: #333;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-text {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #ccc;
    line-height: 1.6;
}

.footer-copyright {
    font-size: 0.9rem;
    color: #999;
    margin: 0;
}

/* Explore Recipes Page Styles */
.page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 20px;
    text-align: center;
    margin-top: 110px;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-description {
    font-size: 1rem;
    color: #888;
    margin-top: 10px;
}

.search-filter-section {
    padding: 40px 20px;
    background: white;
    max-width: 90%;
    margin: 0 auto;
}

.search-filter-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.filter-header h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-header i {
    color: #4CAF50;
    font-size: 1.5rem;
}

.search-bar {
    position: relative;
    margin-bottom: 30px;
}

.search-bar i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 18px;
}

.search-input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 20px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.filter-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    font-size: 22px;
}

.filter-select {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 20px;
    background: white;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #4CAF50;
}

.apply-filters-btn {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    display: block;
    font-size: 20px;
}

.recipe-results {
    padding: 40px 20px;
    background: #f8f9fa;
}

.results-header h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.recipe-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
    margin: 0 auto;
    align-items: center;
}

.recipe-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(76, 175, 80, 0.10);
    margin: 13px;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    transition: box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
    height: 300px;
}

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

.recipe-image {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.recipe-content {
    padding: 25px;
}

.recipe-title {
    font-size: 1.45rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: left;
    color: #333;
    line-height: 1.3;
}

.recipe-description {
    font-size: 1.08rem;
    color: #666;
    margin-bottom: 0.7rem;
    text-align: left;
    line-height: 1.5;
}

.recipe-tags {
    margin-top: 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-start;

    .recipe-tags-row {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        margin-top: 0.7rem;
        align-items: flex-start;
    }

    .health-tags-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.3rem;
        flex-direction: row;
        align-items: center;
    }

    .category-tags-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.3rem;
        flex-direction: row;
        align-items: center;
    }
}

.health-tags-group,
.category-tags-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    flex-direction: row;
    align-items: center;
}

/* Load More Button */
#load-more-btn {
    height: 48px;
    min-width: 160px;
    border-radius: 32px;
    font-size: 1rem;
    font-weight: 600;
    background: #4CAF50;
    color: #fff;
    border: none;
    display: block;
    margin: 1.5rem auto;
    cursor: pointer;
    transition: background 0.2s;
}

#load-more-btn:hover {
    background: #45a049;
}

.tag {
    background: #f5f8f5;
    color: #333;
    border-radius: 12px;
    padding: 0.18rem 0.5rem;
    font-size: 1rem;
    font-weight: 400;
    margin: 0.12rem 0.12rem;
    display: inline-block;
    box-shadow: 0 1px 4px rgba(76, 175, 80, 0.07);
    letter-spacing: 0.2px;
    border: 1px solid #e0e0e0;
}

.health-tag {
    background: #e8f5e9;
    color: #43a047;
    font-weight: 400;
}

.category-tag {
    background: #f5f8f5;
    color: #222;
    font-weight: 400;
}

/* Nutrition Dashboard Page Styles */
.overall-progress-section {
    padding: 40px 20px;
    background: white;
}

.progress-box {
    background: #f0f8f0;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.progress-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ff9800;
    font-weight: 600;
    font-size: 16px;
}

.progress-warning i {
    font-size: 18px;
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.progress-text {
    color: #666;
    font-size: 14px;
}

.progress-percentage {
    color: #4CAF50;
    font-size: 2rem;
    font-weight: 700;
}

.progress-bar-container {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    border-radius: 6px;
    transition: width 0.8s ease;
}

.nutrition-cards-section {
    padding: 40px 20px;
    background: #f8f9fa;
}

.nutrition-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Container used by JS-rendered summary cards (adds spacing between cards) */
.nutrition-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px; /* spacing between cards */
    align-items: start;
    margin-top: 12px;
}

.nutrition-cards .nutrition-card {
    margin: 0; /* remove any inline margins from JS templates */
}

.nutrition-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.nutrition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: #f0f8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4CAF50;
    font-size: 30px;
    margin: 0;
}

.card-title h3 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.status-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-tag.low {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.card-value {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.current-value {
    color: #4CAF50;
    font-size: 2rem;
    font-weight: 700;
}

.separator {
    color: #999;
    font-size: 1.5rem;
    font-weight: 400;
}

.goal-value {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.unit {
    color: #666;
    font-size: 1rem;
    font-weight: 400;
    margin-left: 5px;
}

.card-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.card-progress {
    margin-top: 15px;
}

.card-progress .progress-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.card-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    border-radius: 4px;
    transition: width 0.8s ease;
}

.goals-section {
    padding: 40px 20px;
    background: white;
}

.goals-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    max-width: 100%;
}

.goals-header h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.goals-header i {
    color: #4CAF50;
    font-size: 1.6rem;
}

.goals-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.goal-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    position: relative;
}

.goal-icon {
    width: 40px;
    height: 40px;
    background: #fff3cd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff9800;
    font-size: 16px;
    flex-shrink: 0;
}

.goal-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.goal-name {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.goal-progress {
    color: #666;
    font-size: 13px;
}

.goal-progress-bar {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 120px;
}

.goal-progress-bar .progress-bar {
    width: 100px;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.goal-progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    border-radius: 3px;
    transition: width 0.8s ease;
}

.progress-text {
    color: #666;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
}

/* Health Tip Section Styles */
.health-tip-section {
    padding: 40px 20px;
    background: #f8f9fa;
}

.health-tip-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #4CAF50;
}

.health-tip-header h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.health-tip-header i {
    color: #4CAF50;
    font-size: 1.3rem;
}

.health-tip-content p {
    color: #666;
    line-height: 1.7;
    font-size: 15px;
    margin: 0;
}

.health-tip-content strong {
    color: #333;
    font-weight: 600;
}

/* Goals row: left side Today's Goals list, right side Today's Meals Added panel */
.goals-row {
    display: grid;
    grid-template-columns: 1fr 340px; /* left side flexible, right side fixed width */
    gap: 20px;
    align-items: start;
    margin-top: 12px;
}

/* On narrow screens, collapse to single column: Meals panel moves below */
@media (max-width: 900px) {
    .goals-row {
        grid-template-columns: 1fr;
    }
}

/* Ensure goals-list fills the left side */
.goals-list { width: 100%; }

/* Right panel styles */
.meals-added-section {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    padding: 14px;
    min-width: 260px;
}

/* meals list item styles */
.meals-added-header { display:flex; align-items:center; gap:10px; font-weight:600; color:#222; margin-bottom:10px; }
.meals-added-list { list-style:none; margin:0; padding:0; }
.meal-item { display:flex; align-items:center; justify-content:space-between; padding:10px 6px; border-bottom:1px solid #f3f3f3; }
.meal-item:last-child { border-bottom:none; }
.meal-left { display:flex; flex-direction:column; gap:4px; }
.meal-name { font-weight:600; color:#222; }
.meal-meta { font-size:0.92rem; color:#666; }
.meal-right { display:flex; align-items:center; gap:10px; }
.meal-kcal { color:#4caf50; font-weight:600; font-size:0.95rem; }
.meal-delete { background:none; border:0; color:#999; cursor:pointer; font-size:1rem; padding:6px; border-radius:6px; }
.meal-delete:hover { color:#e53935; }

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-title::before,
    .section-title::after {
        width: 40px;
    }

    .section-title::before {
        left: calc(50% - 60px);
    }

    .section-title::after {
        right: calc(50% - 60px);
    }

    .cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        padding: 30px 20px;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .search-filter-box {
        padding: 30px 20px;
    }

    .filter-options {
        grid-template-columns: 1fr;
    }

    .recipe-cards-container {
        grid-template-columns: 1fr;
    }

    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .progress-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nutrition-cards-container {
        grid-template-columns: 1fr;
    }

    .goals-list {
        gap: 10px;
    }

    .goal-progress-bar {
        min-width: 100px;
    }

    .goal-progress-bar .progress-bar {
        width: 80px;
    }

    .features-container {
        gap: 20px;
    }

    .feature-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }

    .hero-section {
        padding: 80px 15px;
        min-height: 70vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .how-it-works {
        padding: 60px 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-title::before,
    .section-title::after {
        display: none;
    }

    .page-header {
        padding: 40px 15px;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .search-filter-section {
        padding: 20px 15px;
    }

    .search-filter-box {
        padding: 25px 20px;
    }

    .recipe-results {
        padding: 20px 15px;
    }

    .overall-progress-section {
        padding: 20px 15px;
    }

    .progress-box {
        padding: 20px;
    }

    .nutrition-cards-section {
        padding: 20px 15px;
    }

    .nutrition-card {
        padding: 20px;
    }

    .goals-section {
        padding: 20px 15px;
    }

    .goals-container {
        padding: 20px;
    }

    .health-tip-section {
        padding: 20px 15px;
    }

    .health-tip-container {
        padding: 20px;
    }

    .goal-progress-bar {
        min-width: 80px;
    }

    .goal-progress-bar .progress-bar {
        width: 60px;
    }

    .goal-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .goal-progress-bar {
        align-items: flex-start;
        width: 100%;
    }

    .features-container {
        gap: 15px;
    }

    .feature-item {
        padding: 10px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .footer {
        padding: 30px 15px;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title,
.hero-subtitle,
.hero-description,
.hero-buttons {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
    animation-delay: 0.2s;
}

.hero-description {
    animation-delay: 0.4s;
}

.hero-buttons {
    animation-delay: 0.6s;
}

.card {
    animation: fadeInUp 0.8s ease forwards;
}

.card:nth-child(1) {
    animation-delay: 0.2s;
}

.card:nth-child(2) {
    animation-delay: 0.4s;
}

.card:nth-child(3) {
    animation-delay: 0.6s;
}

.recipe-card {
    animation: fadeInUp 0.8s ease forwards;
}

.recipe-card:nth-child(1) {
    animation-delay: 0.1s;
}

.recipe-card:nth-child(2) {
    animation-delay: 0.2s;
}

.recipe-card:nth-child(3) {
    animation-delay: 0.3s;
}

.recipe-card:nth-child(4) {
    animation-delay: 0.4s;
}

.recipe-card:nth-child(5) {
    animation-delay: 0.5s;
}

.recipe-card:nth-child(6) {
    animation-delay: 0.6s;
}

.nutrition-card {
    animation: fadeInUp 0.8s ease forwards;
}

.nutrition-card:nth-child(1) {
    animation-delay: 0.1s;
}

.nutrition-card:nth-child(2) {
    animation-delay: 0.2s;
}

.nutrition-card:nth-child(3) {
    animation-delay: 0.3s;
}

.nutrition-card:nth-child(4) {
    animation-delay: 0.4s;
}

.goal-item {
    animation: fadeInUp 0.8s ease forwards;
}

.goal-item:nth-child(1) {
    animation-delay: 0.1s;
}

.goal-item:nth-child(2) {
    animation-delay: 0.2s;
}

.goal-item:nth-child(3) {
    animation-delay: 0.3s;
}

.goal-item:nth-child(4) {
    animation-delay: 0.4s;
}

.goal-item:nth-child(5) {
    animation-delay: 0.5s;
}

.goal-item:nth-child(6) {
    animation-delay: 0.6s;
}

.feature-item {
    animation: fadeInUp 0.8s ease forwards;
}

.feature-item:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-item:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-item:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-item:nth-child(4) {
    animation-delay: 0.4s;
}

/* Shine animation for CTA title */
@keyframes shine {
    0% { background-position: -400px 0; }
}

.shine-animate {
    display: inline-block;
    background: linear-gradient(
        120deg,
        #4caf50 0%,
        #4caf50 47%,
        #ace7c3 49%,
        #ace7c3 51%,
        #64c267 53%,
        #64c267 100%
    );
    background-size: 800px 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}