/* HarvestMap Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #2d3748; background-color: #f8fafc; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
header { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); color: white; padding: 1rem 0; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
header h1 { font-size: 1.8rem; font-weight: 700; }
nav a { color: white; margin-left: 1.5rem; font-weight: 500; }
nav a:hover { opacity: 0.9; }
main { padding: 2rem 0; }
.hero { background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%); padding: 3rem 0 2rem; }
.hero h2 { font-size: 2.5rem; margin-bottom: 0.5rem; color: #0f172a; }
.hero p { font-size: 1.2rem; color: #475569; margin-bottom: 1.5rem; }
.preservation-preview { background: white; border-radius: 8px; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.preservation-preview h3 { margin-bottom: 1rem; color: #16a34a; }
.preservation-preview ul { list-style: none; }
.preservation-preview li { padding: 0.5rem 0; border-bottom: 1px solid #f1f5f9; }
.preservation-preview li:last-child { border-bottom: none; }
.planner-section { background: white; margin: 2rem 0; border-radius: 8px; padding: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.planner-section h2 { margin-bottom: 1.5rem; color: #0f172a; }
.crop-input { display: flex; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.crop-input select, .crop-input input[type="date"] { padding: 0.75rem; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 1rem; }
.crop-input select { min-width: 200px; }
.crop-input input[type="date"] { min-width: 150px; }
#addCropBtn { background: #2563eb; color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 6px; cursor: pointer; font-weight: 500; }
#addCropBtn:hover { background: #1d4ed8; }
.garden-locations { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e2e8f0; }
.garden-locations label { font-weight: 500; margin-right: 1rem; }
#locationSelect { min-width: 200px; padding: 0.5rem; border: 1px solid #cbd5e1; border-radius: 6px; }
.harvest-results { padding: 2rem 0; }
.harvest-results h2 { margin-bottom: 1.5rem; color: #0f172a; }
.harvest-list { list-style: none; margin-bottom: 2rem; }
.harvest-item { background: white; border-radius: 8px; padding: 1.5rem; margin-bottom: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.harvest-item h4 { color: #2563eb; margin-bottom: 0.5rem; display: flex; justify-content: space-between; }
.harvest-item .date { background: #ecfdf5; color: #065f46; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.9rem; }
.harvest-item .preservation { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid #f1f5f9; }
.harvest-item .preservation h5 { font-size: 0.9rem; color: #64748b; margin-bottom: 0.25rem; }
.harvest-item .methods { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.method-badge { background: #fef3c7; color: #92400e; padding: 0.25rem 0.75rem; border-radius: 4px; font-size: 0.85rem; }
.print-btn { background: #16a34a; color: white; border: none; padding: 1rem 2rem; border-radius: 6px; font-size: 1rem; cursor: pointer; font-weight: 500; }
.print-btn:hover { background: #15803d; }
.tips-section { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); padding: 2rem 0; }
.tips-section h2 { text-align: center; margin-bottom: 2rem; color: #0f172a; }
.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.tip-card { background: white; border-radius: 8px; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.tip-card h4 { color: #16a34a; margin-bottom: 0.75rem; }
.tip-card p { color: #475569; font-size: 0.95rem; }
.faq-section { padding: 2rem 0; }
.faq-section h2 { margin-bottom: 2rem; color: #0f172a; text-align: center; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.faq-item h4 { color: #2563eb; margin-bottom: 0.5rem; font-size: 1rem; }
.faq-item p { color: #475569; font-size: 0.95rem; }
.placeholder { text-align: center; padding: 2rem; color: #64748b; }
footer { background: #0f172a; color: #94a3b8; padding: 1.5rem 0; font-size: 0.9rem; }
footer a { color: #38bdf8; }
footer a:hover { opacity: 0.9; }
@media (max-width: 768px) { 
  header h1 { font-size: 1.5rem; }
  nav a { margin-left: 1rem; font-size: 0.9rem; }
  .hero h2 { font-size: 2rem; }
  .crop-input { flex-direction: column; }
  .harvest-results h2 { font-size: 1.5rem; }
}
@media (max-width: 480px) { 
  .hero { padding: 2rem 0 1.5rem; }
  .planner-section { padding: 1.5rem; }
}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
