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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4;
    color: #000000;
    background-color: #ffffff;
    font-weight: 200;
}

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

/* Header Styles */
.header {
    background: #000000;
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-content {
    text-align: center;
}

.logo {
    font-size: 2.5rem;
    font-weight: 100;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 2px;
}

.logo i {
    color: #ffffff;
}

.subtitle {
    font-size: 1rem;
    font-weight: 200;
    font-family: 'Inter', sans-serif;
    opacity: 0.8;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background: white;
    border: 1px solid #000000;
    padding: 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 200;
    font-family: 'Inter', sans-serif;
    color: #000000;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tab-btn.active {
    background: #000000;
    color: white;
}

.tab-btn:hover:not(.active) {
    background: #f5f5f5;
    color: #000000;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Section Titles */
.section-title {
    font-size: 1.1rem;
    font-weight: 200;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1.5rem;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title i {
    color: #000000;
}

/* Today's Highlight */
.today-highlight {
    background: white;
    border: 1px solid #000000;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.today-meals {
    display: grid;
    gap: 1rem;
}

.meal-card {
    background: white;
    border: 1px solid #000000;
    padding: 1.5rem;
    border-left: 3px solid #000000;
    transition: all 0.2s ease;
    cursor: pointer;
}

.meal-card:hover {
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.meal-card h3 {
    font-size: 1.1rem;
    font-weight: 300;
    font-family: 'Playfair Display', serif;
    color: #000000;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.5px;
}

.meal-card .meal-type {
    font-size: 0.7rem;
    color: #666666;
    text-transform: uppercase;
    font-weight: 200;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
}

.meal-card .calories {
    font-size: 0.7rem;
    color: #000000;
    font-weight: 200;
    font-family: 'Inter', sans-serif;
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
}

/* Weekly Plan Grid */
.days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.day-card {
    background: white;
    border: 1px solid #000000;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.day-card:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.day-card h3 {
    font-size: 1.1rem;
    font-weight: 200;
    font-family: 'Inter', sans-serif;
    color: #000000;
    margin-bottom: 1rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #000000;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.day-card.today {
    border: 2px solid #000000;
    background: #f5f5f5;
}

.day-card.today h3 {
    color: #000000;
    border-bottom-color: #000000;
}

.meals-summary {
    display: grid;
    gap: 0.5rem;
}

.meal-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem;
    background: white;
    border: 1px solid #e0e0e0;
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
}

.meal-summary .meal-name {
    font-weight: 200;
    color: #000000;
}

.meal-summary .meal-calories {
    color: #000000;
    font-weight: 200;
}

.day-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #000000;
    text-align: center;
    font-weight: 200;
    font-family: 'Inter', sans-serif;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

/* Shopping List */
.shopping-list {
    background: white;
    border: 1px solid #000000;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.shopping-category {
    margin-bottom: 1.5rem;
}

.category-title {
    font-size: 1rem;
    font-weight: 200;
    font-family: 'Inter', sans-serif;
    color: #000000;
    margin-bottom: 0.8rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #000000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.category-title i {
    color: #000000;
}

.shopping-items {
    display: grid;
    gap: 0.3rem;
}

.shopping-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.6rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-left: 2px solid #000000;
    transition: background-color 0.2s ease;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
}

.shopping-item:hover {
    background: #f5f5f5;
}

.item-name {
    font-weight: 200;
    color: #000000;
}

.item-quantity {
    color: #666666;
    font-size: 0.75rem;
    background: white;
    padding: 0.2rem 0.5rem;
    border: 1px solid #e0e0e0;
    font-weight: 200;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid #000000;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
    font-weight: 400;
    color: #000000;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #666666;
}

.modal h2 {
    font-size: 1.4rem;
    font-weight: 300;
    font-family: 'Playfair Display', serif;
    color: #000000;
    margin-bottom: 1rem;
    padding-right: 2rem;
    letter-spacing: 1px;
}

.modal .meal-type {
    font-size: 0.8rem;
    color: #666666;
    text-transform: uppercase;
    font-weight: 200;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.modal .calories {
    font-size: 0.8rem;
    color: #000000;
    font-weight: 200;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.modal .recipe {
    background: white;
    padding: 1.5rem;
    border: 1px solid #000000;
    border-left: 3px solid #000000;
    line-height: 1.6;
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

.ingredients-section,
.recipe-section {
    margin-bottom: 2rem;
}

.ingredients-section h3,
.recipe-section h3 {
    font-size: 1rem;
    font-weight: 200;
    font-family: 'Inter', sans-serif;
    color: #000000;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #000000;
    padding-bottom: 0.3rem;
}

.ingredients-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ingredients-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: #000000;
}

.ingredients-list li:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .nav-tabs {
        margin-bottom: 1.5rem;
    }
    
    .tab-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .today-highlight,
    .shopping-list {
        padding: 1.5rem;
    }
    
    .days-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .day-card {
        padding: 1.2rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }
    
    .modal h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.8rem;
    }
    
    .tab-btn {
        flex-direction: column;
        gap: 0.3rem;
        padding: 0.6rem;
    }
    
    .meal-card,
    .day-card {
        padding: 1rem;
    }
    
    .shopping-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .item-quantity {
        align-self: flex-end;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.spinner {
    border: 2px solid #e0e0e0;
    border-top: 2px solid #000000;
    border-radius: 0;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 