/* Nutrition Page Specific Styles */

/* Hero Section */
.nutrition-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1490645935967-10de6ba17061?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.nutrition-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.nutrition-hero p {
    font-size: 1.2rem;
    max-width: 700px;
}

/* Introduction Section */
.nutrition-intro {
    padding: 3rem 0;
    text-align: center;
    background-color: #f8f9fa;
}

.nutrition-intro h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.nutrition-intro p {
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

/* Macronutrients Section */
.macronutrients {
    padding: 3rem 0;
    background-color: white;
}

.macronutrients h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.macronutrient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.macronutrient-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.macronutrient-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.macro-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.macronutrient-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.macronutrient-card p {
    color: #7f8c8d;
}

/* Food Groups Section */
.food-groups {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.food-groups h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.food-group-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    background-color: #e0e0e0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    background-color: #d0d0d0;
}

.tab-btn.active {
    background-color: #3498db;
    color: white;
}

.tab-content {
    display: none;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.tab-content p {
    color: #555;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.food-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.food-item {
    text-align: center;
}

.food-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.food-item p {
    font-weight: bold;
    color: #2c3e50;
}

/* Meal Planning Section */
.meal-planning {
    padding: 3rem 0;
    background-color: white;
}

.meal-planning h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.meal-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tip-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tip-card i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.tip-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.tip-card p {
    color: #7f8c8d;
}

/* Nutrition Calculator Section */
.nutrition-calculator {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.nutrition-calculator h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.calculator-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: bold;
}

input[type="range"] {
    width: 100%;
    margin-bottom: 0.5rem;
}

.macro-distribution {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.macro-distribution div {
    text-align: center;
}

.results {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #e8f4fc;
    border-radius: 5px;
    display: none;
}

.results h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.results p {
    margin-bottom: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nutrition-hero h1 {
        font-size: 2rem;
    }
    
    .food-group-tabs {
        flex-direction: column;
    }
    
    .macro-distribution {
        grid-template-columns: 1fr;
    }
}