:root {
  --base-font-size: 16px;
  --primary-color: #4CAF50;
  --primary-dark: #388E3C;
  --secondary-color: #FF9800;
  --accent-color: #2196F3;
  --warm-pink: #FFE0E6;
  --soft-green: #E8F5E8;
  --light-orange: #FFF3E0;
  --background: #FAFAFA;
  --surface: #FFFFFF;
  --text-primary: #2E2E2E;
  --text-secondary: #666666;
  --border: #E0E0E0;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 25px rgba(0,0,0,0.12);
  --radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--base-font-size);
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: 400;
}

header {
  background: var(--primary-color);
  color: white;
  padding: 1rem;
  text-align: center;
}

main {
  padding: 1rem;
}
#ingredients label {
  display: inline-block;
  margin: 0.2rem;
}
#ingredients .require-star {
  cursor: pointer;
  color: #ccc;
  margin-left: 4px;
}
#ingredients .require-star.required {
  color: #FF9800;
}
#results .card {
  border: 1px solid #ccc;
  padding: 1rem;
  margin: 0.5rem 0;
  background: white;
}
footer {
  text-align: center;
  padding: 1rem;
  background: #fafafa;
}

.share-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #1da1f2;
  color: #fff;
  border-radius: 4px;
  margin-top: 1rem;
  cursor: pointer;
}
.share-button i {
  margin-right: 0.3rem;
}

/* Styles shared with the top page */
.mama-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #66BB6A 100%);
  color: white;
  padding: 3rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.mama-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transform: rotate(45deg);
  pointer-events: none;
  z-index: 1;
}

.mama-header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.header-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.app-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.main-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

.mama-button {
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), #F57C00);
  color: white;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.3);
}

.btn-lg {
  font-size: 1.25rem;
  padding: 1.25rem 2rem;
}

.recipe-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
  padding: 1.5rem;
}

.recipe-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.week-card .recipe-header {
  padding: 1rem 1.5rem;
}

/* Shopping list styles matching the top page */
.ingredients-section {
  margin-bottom: 2rem;
}

.ingredients-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ingredients-list {
  list-style: none;
  background: var(--background);
  border-radius: 12px;
  padding: 1rem;
}

.ingredient-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.ingredient-item:last-child {
  border-bottom: none;
}

.ingredient-available {
  color: var(--primary-color);
  font-weight: 600;
}

.ingredient-missing {
  color: var(--text-secondary);
}

/* Footer styles from top page */
.footer {
  background: var(--text-primary);
  color: white;
  text-align: center;
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.footer-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

#timer-block.compact {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
#timer-block.compact #timer-display {
  font-size: 1.2rem;
}
#timer-block.compact #current-task {
  display: inline;
}

/* Controls inside the sidebar menu */
.menu-control {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
}
.menu-control label {
  font-size: 0.9rem;
}
.menu-control select {
  font-size: 0.9rem;
  color: var(--text-primary);
  border-radius: 4px;
}
