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

:root {
  --primary-color: #6B8E23;
  --primary-dark: #556B2F;
  --accent-color: #9ACD32;
  --text-dark: #2C3E50;
  --text-light: #555;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --border-color: #E0E0E0;
  --success-color: #28A745;
  --warning-color: #FFC107;
  --danger-color: #DC3545;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

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

/* Header and Navigation */
header {
  background: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity 0.3s;
}

.logo:hover {
  opacity: 0.8;
}


.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Sections */
section {
  padding: 4rem 0;
}

section:nth-child(even) {
  background-color: var(--bg-light);
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-dark);
  text-align: center;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.info-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Benefits Section */
.benefits-list {
  max-width: 900px;
  margin: 0 auto;
}

.benefit-item {
  background: var(--bg-white);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.benefit-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Tips Section */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.tip-card {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tip-card ul {
  margin-left: 1.5rem;
  margin-top: 1rem;
}

.tip-card li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
}

.cta-section h2 {
  color: white;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.cta-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 10px;
  text-decoration: none;
  color: white;
  transition: transform 0.3s, background 0.3s;
  border: 2px solid rgba(255,255,255,0.2);
}

.cta-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.2);
}

.cta-card h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.cta-arrow {
  display: block;
  font-size: 2rem;
  margin-top: 1rem;
  text-align: right;
}

/* Nutrition Page */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

.macro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.macro-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.macro-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.macro-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: white;
}

.nutrition-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.nutrition-table .excellent {
  color: var(--success-color);
  font-weight: bold;
}

.nutrition-table .good {
  color: var(--primary-color);
  font-weight: bold;
}

.nutrition-table .neutral {
  color: var(--text-light);
}

.nutrient-section {
  margin-bottom: 3rem;
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nutrient-note {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-light);
  border-left: 4px solid var(--accent-color);
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Recipe Cards */
.recipe-card-full {
  background: var(--bg-white);
  padding: 2rem;
  margin-bottom: 3rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.recipe-meta {
  display: flex;
  gap: 2rem;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 5px;
}

.recipe-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-top: 2rem;
}

.recipe-ingredients ul,
.recipe-steps ol {
  margin-left: 1.5rem;
}

.recipe-ingredients li,
.recipe-steps li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.recipe-tip {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #FFF8DC;
  border-left: 4px solid var(--warning-color);
  border-radius: 4px;
}

/* Growing Guide */
.alert-box {
  background: #FFF3CD;
  border: 2px solid var(--warning-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.alert-box h3 {
  color: #856404;
  margin-bottom: 0.5rem;
}

.step-by-step {
  margin: 2rem 0;
}

.step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.care-card {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-top: 3px solid var(--primary-color);
}

/* Footer */
footer {
  background: var(--text-dark);
  color: white;
  padding: 2rem 0;
  text-align: center;
}


.footer-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-powered {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.footer-powered:hover {
  opacity: 1;
}

.footer-powered a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-powered a:hover {
  color: white;
  text-decoration: underline;
}


/* Error Page */
.error-container {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-code {
  font-size: 6rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 2rem;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-btn {
      display: block;
  }
  
  .nav-menu {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--bg-white);
      padding: 1rem;
      box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  .nav-menu.active {
      display: flex;
  }
  
  .hero-content h1 {
      font-size: 2rem;
  }
  
  .recipe-content {
      grid-template-columns: 1fr;
  }
  
  .info-grid,
  .tips-grid,
  .care-grid {
      grid-template-columns: 1fr;
  }
  
  .macro-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
      font-size: 1.5rem;
  }
  
  .macro-grid {
      grid-template-columns: 1fr;
  }
  
  .recipe-meta {
      flex-direction: column;
      gap: 0.5rem;
  }
}



/* Partner Links Section */
.powered-by {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.powered-by a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.powered-by a:hover {
  color: white;
  text-decoration: underline;
}

.footer-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 1rem 0;
}

.partner-links {
  font-size: 0.85rem;
  opacity: 0.7;
  line-height: 1.8;
  transition: opacity 0.3s;
}

.partner-links:hover {
  opacity: 1;
}

.partner-links a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s;
  padding: 0 0.25rem;
}

.partner-links a:hover {
  color: white;
  text-decoration: underline;
}

