/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  /* Light Theme Colors (Organic Skin Care Aesthetic) */
  --bg-primary: #fbf9f6; /* Warm oatmeal background */
  --bg-secondary: #ffffff;
  --bg-tertiary: #f4efe9;
  
  --primary-color: #4a6b5d; /* Calming sage green */
  --primary-light: #6b8d7f;
  --primary-dark: #354e43;
  --accent-color: #d98a72; /* Warm peach/terracotta */
  --accent-light: #f5b09b;
  
  --text-primary: #2d3732; /* Charcoal with green undertones */
  --text-secondary: #5a6660;
  --text-light: #8ca097;
  
  --border-color: rgba(74, 107, 93, 0.15);
  --shadow-sm: 0 2px 4px rgba(74, 107, 93, 0.04);
  --shadow-md: 0 10px 25px rgba(74, 107, 93, 0.08);
  --shadow-lg: 0 20px 40px rgba(74, 107, 93, 0.12);
  
  --card-glass: rgba(255, 255, 255, 0.75);
  --border-glass: rgba(255, 255, 255, 0.4);
  --blur-glass: 12px;
  
  --success: #52a378;
  --warning: #e09440;
  --danger: #cf5d5d;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Overrides */
body.dark-mode {
  --bg-primary: #121915; /* Slate forest background */
  --bg-secondary: #1a2420;
  --bg-tertiary: #222f29;
  
  --primary-color: #6b8d7f; /* Lighter sage for contrast */
  --primary-light: #8eaba0;
  --primary-dark: #4a6b5d;
  --accent-color: #e59a85;
  
  --text-primary: #e6edeb;
  --text-secondary: #adbeb7;
  --text-light: #7c9088;
  
  --border-color: rgba(107, 141, 127, 0.2);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
  
  --card-glass: rgba(26, 36, 32, 0.8);
  --border-glass: rgba(26, 36, 32, 0.2);
  --blur-glass: 16px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: var(--transition);
  -webkit-font-smoothing: antialiased;
  padding-top: 80px; /* Header space */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
}

/* ==========================================================================
   LAYOUT COMPONENTS
   ========================================================================== */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--card-glass);
  backdrop-filter: blur(var(--blur-glass));
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.header-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--primary-color);
}

.logo-icon {
  font-size: 1.6rem;
  color: var(--accent-color);
  animation: pulse 2.5s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.95; }
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Language selector */
.lang-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-tertiary);
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.lang-selector-wrapper:hover {
  border-color: var(--primary-color);
}

.lang-icon {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.lang-select {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  padding-right: 4px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.1rem;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  transform: scale(1.08);
  border-color: var(--primary-color);
  color: var(--accent-color);
}

.sun-icon { display: none; }
body.dark-mode .moon-icon { display: none; }
body.dark-mode .sun-icon { display: block; }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, rgba(74, 107, 93, 0.08) 0%, rgba(217, 138, 114, 0.05) 100%);
  padding: 60px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 30%;
  height: 60%;
  background: radial-gradient(circle, rgba(74, 107, 93, 0.06) 0%, transparent 70%);
  z-index: 1;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 30%;
  height: 60%;
  background: radial-gradient(circle, rgba(217, 138, 114, 0.04) 0%, transparent 70%);
  z-index: 1;
}

.hero-container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  font-weight: 400;
}

/* ==========================================================================
   NAVIGATION TABS
   ========================================================================== */
.tab-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
  padding: 8px;
  background: var(--bg-tertiary);
  border-radius: 50px;
  border: 1px solid var(--border-color);
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 12px 24px;
  border-radius: 40px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.tab-btn i {
  font-size: 1.05rem;
}

.tab-btn:hover {
  color: var(--primary-color);
  background: rgba(74, 107, 93, 0.05);
}

.tab-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(74, 107, 93, 0.25);
}

body.dark-mode .tab-btn.active {
  background: var(--primary-color);
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   MAIN CONTAINERS & CARDS
   ========================================================================== */
.main-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto 80px auto;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease-in-out forwards;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.span-all {
  grid-column: 1 / -1;
}

.info-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  color: var(--primary-color);
}

/* Welcome Card */
.welcome-card {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-left: 6px solid var(--primary-color);
}

.welcome-card h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

body.dark-mode .welcome-card h2 {
  color: var(--text-primary);
}

.welcome-card p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 90%;
}

/* Pillar List */
.pillar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pillar-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.pillar-icon {
  background: rgba(217, 138, 114, 0.1);
  color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.pillar-list li:hover .pillar-icon {
  background: var(--accent-color);
  color: #ffffff;
}

.pillar-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.visual-card-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration-card {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  width: 100%;
  height: 100%;
  min-height: 280px;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.child-illustration {
  font-size: 5rem;
  margin-bottom: 15px;
  opacity: 0.9;
}

.illustration-tag {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  padding: 6px 16px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ==========================================================================
   SKINCARE SECTION
   ========================================================================== */
.step-list {
  list-style: none;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-list li {
  position: relative;
  padding-left: 45px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.step-list li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  background: rgba(74, 107, 93, 0.1);
  color: var(--primary-color);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.med-item {
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 3px solid var(--primary-light);
}

.med-item h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.med-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.warning-banner {
  background: rgba(207, 93, 93, 0.08);
  border: 1px solid rgba(207, 93, 93, 0.2);
  border-left: 6px solid var(--danger);
  border-radius: var(--border-radius);
  padding: 24px 30px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.warning-icon {
  color: var(--danger);
  font-size: 2rem;
}

.warning-content h3 {
  color: var(--danger);
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

.warning-content ul {
  list-style-type: disc;
  padding-left: 20px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==========================================================================
   DIETARY SCIENCE SECTION
   ========================================================================== */
.trigger-card {
  border-top: 6px solid var(--danger);
}

.trigger-header {
  color: var(--danger) !important;
  border-bottom: 2px solid rgba(207, 93, 93, 0.15) !important;
}

.beneficial-card {
  border-top: 6px solid var(--success);
}

.beneficial-header {
  color: var(--success) !important;
  border-bottom: 2px solid rgba(82, 163, 120, 0.15) !important;
}

.diet-intro-text {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.food-item-block {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.food-item-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.food-item-block h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.food-item-block p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Food Safety Checker styling */
.checker-card {
  border-left: 6px solid var(--primary-light);
}

.checker-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 25px 0;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1.1rem;
}

#food-search {
  width: 100%;
  padding: 16px 16px 16px 50px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

#food-search:focus {
  border-color: var(--primary-color);
  background-color: var(--bg-secondary);
  box-shadow: 0 0 0 4px rgba(74, 107, 93, 0.1);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 8px 20px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.filter-btn.active {
  background: var(--primary-light);
  color: #ffffff;
  border-color: var(--primary-light);
}

.checker-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.checker-item-card {
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checker-item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.checker-item-card.safe-status {
  border-left: 5px solid var(--success);
  background-color: rgba(82, 163, 120, 0.03);
}

.checker-item-card.trigger-status {
  border-left: 5px solid var(--danger);
  background-color: rgba(207, 93, 93, 0.03);
}

.item-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  align-self: flex-start;
}

.safe-status .item-status-badge {
  background-color: rgba(82, 163, 120, 0.15);
  color: var(--success);
}

.trigger-status .item-status-badge {
  background-color: rgba(207, 93, 93, 0.15);
  color: var(--danger);
}

.checker-item-card h4 {
  font-size: 1.2rem;
  color: var(--text-primary);
}

.checker-item-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   WEEKLY DIET PLANNER SECTION
   ========================================================================== */
.day-tabs {
  display: none; /* Only visible on Mobile */
}

.weekly-planner-container {
  overflow-x: auto;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background: var(--bg-secondary);
}

.weekly-grid {
  display: grid;
  grid-template-columns: 120px repeat(7, 1fr);
  min-width: 1000px;
}

.grid-cell {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.grid-cell:last-child {
  border-right: none;
}

.grid-header-cell {
  background: var(--bg-tertiary);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  font-size: 1rem;
}

.day-header {
  font-size: 1.05rem;
  color: var(--text-primary);
}

.meal-label-cell {
  background: var(--bg-tertiary);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.meal-card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meal-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-dark);
}

body.dark-mode .meal-title {
  color: var(--primary-light);
}

.meal-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.meal-card-content.trigger-alert {
  border-left: 2px solid var(--accent-color);
  padding-left: 8px;
}

/* ==========================================================================
   RECIPES SECTION
   ========================================================================== */
.recipe-cards-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.recipe-card {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 350px 1fr;
  transition: var(--transition);
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.recipe-image-wrapper {
  position: relative;
  height: 100%;
  min-height: 300px;
}

.recipe-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

body.dark-mode .recipe-badge {
  background: rgba(26, 36, 32, 0.85);
}

.recipe-details {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.recipe-details-header {
  margin-bottom: 20px;
}

.recipe-details-header h3 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

body.dark-mode .recipe-details-header h3 {
  color: var(--primary-light);
}

.recipe-desc {
  font-size: 1rem;
  color: var(--text-secondary);
}

.recipe-sections {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  margin-bottom: 20px;
}

.recipe-ingredients-list {
  list-style: none;
}

.recipe-ingredients-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.recipe-ingredients-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.2rem;
  top: -2px;
}

.recipe-steps-list {
  list-style: none;
  counter-reset: recipe-steps;
}

.recipe-steps-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.recipe-steps-list li::before {
  counter-increment: recipe-steps;
  content: counter(recipe-steps);
  position: absolute;
  left: 0;
  top: 1px;
  background: rgba(217, 138, 114, 0.1);
  color: var(--accent-color);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

.recipe-tip-box {
  background: rgba(74, 107, 93, 0.05);
  border-left: 4px solid var(--primary-color);
  padding: 16px;
  border-radius: 0 8px 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
}

.recipe-tip-box i {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-top: 2px;
}

.recipe-tip-text strong {
  color: var(--primary-dark);
}

body.dark-mode .recipe-tip-text strong {
  color: var(--primary-light);
}

.recipe-tip-text p {
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ==========================================================================
   GLOBAL RESEARCH SECTION
   ========================================================================== */
.research-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-top: 4px solid var(--primary-light);
}

.research-icon-wrapper {
  background: rgba(74, 107, 93, 0.1);
  color: var(--primary-color);
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.research-card h3 {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
  font-size: 1.25rem;
}

.research-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   FOOTER STYLING
   ========================================================================== */
.app-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  text-align: center;
}

.footer-container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.disclaimer-text {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.5;
}

.copyright-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  .recipe-card {
    grid-template-columns: 1fr;
  }
  
  .recipe-image-wrapper {
    height: 250px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  
  .app-header {
    height: 70px;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
  }
  
  .tab-nav {
    border-radius: 12px;
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  
  .tab-btn {
    padding: 10px;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
  }
  
  .tab-btn span {
    display: none; /* Show only icons on narrow screens to fit grid */
  }
  
  .recipe-sections {
    grid-template-columns: 1fr;
  }
  
  /* Weekly plan mobile toggle view */
  .day-tabs {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 6px;
  }
  
  .day-tab-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
  }
  
  .day-tab-btn.active {
    background: var(--primary-color);
    color: #ffffff;
  }
  
  .weekly-grid {
    grid-template-columns: 1fr;
    min-width: 100%;
  }
  
  /* On mobile, show only the active day and display details vertically */
  .weekly-grid .grid-cell {
    border-right: none;
  }
  
  .weekly-grid .day-header-cell {
    display: none; /* Hide top headers */
  }
  
  /* JS will selectively show/hide columns on mobile */
  .weekly-grid .grid-cell[data-day] {
    display: none;
  }
  
  .weekly-grid .grid-cell.active-day-cell {
    display: block !important;
  }
  
  .weekly-grid .meal-label-cell {
    grid-column: span 1;
    background: var(--bg-tertiary);
    font-weight: bold;
    border-top: 1px solid var(--border-color);
  }
}
