:root {
    /* Home Page Colors */
    --primary-home: #1e3a5f;
    --secondary-home: #d35400;
    
    /* Meal Plan Colors */
    --primary-meal: #d35400;
    --accent: #f9ede4;
    
    /* Global Colors */
    --bg-color: #fdfbf7;
    --card-bg: #ffffff;
    --text: #333333;
}

/* Global Styles */
body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* --- Home Page Specific Styles --- */
.home-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}
.hero {
    background-color: var(--primary-home);
    color: white;
    width: 100%;
    text-align: center;
    padding: 50px 20px;
    box-sizing: border-box;
    border-bottom: 6px solid var(--secondary-home);
}
.hero h1 {
    margin: 0;
    font-size: 2.2em;
    letter-spacing: 1px;
}
.content {
    max-width: 600px;
    padding: 40px 20px;
    text-align: center;
}
.family-message {
    font-size: 1.15em;
    line-height: 1.7;
    color: #444;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    border-top: 3px solid var(--secondary-home);
}
.family-message strong {
    color: var(--primary-home);
}
.apps-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.app-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 25px 20px;
    text-decoration: none;
    color: var(--primary-home);
    width: 130px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.app-icon {
    font-size: 3.5em;
    margin-bottom: 12px;
    background: var(--bg-color);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.app-title {
    font-weight: 700;
    font-size: 1em;
}

/* --- Meal Plan Specific Styles --- */
.meal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}
.back-btn {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--primary-meal);
    text-decoration: none;
    font-weight: bold;
    background: var(--accent);
    padding: 8px 15px;
    border-radius: 8px;
}
.meal-page h1 {
    text-align: center;
    color: var(--primary-meal);
    border-bottom: 2px solid var(--primary-meal);
    padding-bottom: 10px;
    margin-top: 0;
}
.note {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
}
details.day-details {
    background: var(--card-bg);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}
summary.day-summary {
    font-weight: bold;
    font-size: 1.3em;
    cursor: pointer;
    padding: 15px;
    background-color: var(--accent);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}
summary::-webkit-details-marker {
    display: none;
}
summary.day-summary:after {
    content: '+';
    font-size: 1.5em;
    color: var(--primary-meal);
}
details.day-details[open] > summary.day-summary:after {
    content: '?';
}
.day-content {
    padding: 5px 20px 20px 20px;
}
details.meal-details {
    margin-top: 15px;
    border: 1px solid #eee;
    border-left: 4px solid var(--primary-meal);
    border-radius: 6px;
    background: #fff;
}
summary.meal-summary {
    font-size: 1.1em;
    cursor: pointer;
    padding: 12px 15px;
    background-color: #fafafa;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
}
summary.meal-summary:after {
    content: '+';
    font-size: 1.2em;
    color: var(--primary-meal);
}
details.meal-details[open] > summary.meal-summary:after {
    content: '?';
}
.meal-content {
    padding: 0 15px 15px 15px;
}
.meal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.time-tag {
    background: var(--primary-meal);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: normal;
}
.meal-page h4 {
    margin: 15px 0 5px 0;
    color: #555;
    border-bottom: 1px solid #eee;
    padding-bottom: 3px;
}
.meal-page ul, .meal-page ol {
    margin-top: 5px;
    padding-left: 20px;
}
.meal-page li {
    margin-bottom: 5px;
}
.grocery-section {
    background: #e8f4f8;
}
.grocery-section summary.day-summary {
    background: #d1eaf3;
}