:root {
  --surface: #ffffff;
  --bg: #f8f6f3;
  --text: #2c3329;
  --text-muted: #5e6b57;
  --primary: #4a7c59;
  --primary-hover: #3d6649;
  --danger: #cf4f4f;
  --safe: #e6f2eb;
  --safe-text: #2d5a3c;
  --border: #e3dec9;
  --radius: 8px;
  --font-body: system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-bottom: 2rem;
}

.wrapper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand h1 {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0;
}

.brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--primary);
}

.hero-section {
  margin-bottom: 2rem;
}

.hero-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-section p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 700px;
}

.app-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .app-layout {
    grid-template-columns: 1fr;
  }
}

.search-box label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.search-box input {
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
}

.results-grid {
  display: grid;
  gap: 1rem;
}

.plant-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plant-info h3 {
  margin-bottom: 0.25rem;
}

.plant-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge.safe {
  background: var(--safe);
  color: var(--safe-text);
}

.badge.toxic {
  background: #fce8e8;
  color: var(--danger);
}

.btn-add {
  background: none;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 500;
  margin-top: 0.75rem;
}

.btn-add:hover {
  background: var(--safe);
}

.builder-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 2rem;
}

.builder-panel h3 {
  margin-bottom: 0.5rem;
}

.small-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.bouquet-list {
  list-style: none;
  margin-bottom: 1.5rem;
  min-height: 100px;
}

.bouquet-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.bouquet-list .empty-state {
  color: var(--text-muted);
  font-size: 0.875rem;
  border: none;
}

.btn-remove {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.875rem;
}

.btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.educational-section {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

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

.edu-card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.edu-card h3 {
  margin-bottom: 0.5rem;
}

.warning-box {
  margin-top: 2rem;
  background: #fdfaf2;
  border-left: 4px solid #e1b431;
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

@media print {
  header, .lookup-section, .educational-section, footer, .hero-section {
    display: none;
  }
  .app-layout {
    display: block;
  }
  .builder-panel {
    border: none;
  }
}


/* 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;
}
