/* Base layout */
body {
  font-family: system-ui, sans-serif;
  margin: 0;
  background-color: #f7f9f7;
  color: #222;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header and footer */
header, footer {
  text-align: center;
  padding: 1.5rem 1rem;
}

header h1 {
  margin-bottom: 0.3rem;
  font-size: 1.6rem;
  color: #2e5939;
}

footer {
  font-size: 0.9rem;
  color: #555;
  margin-top: auto;
}

/* Plant grid */
.plant-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
}

.plant-card {
  display: block;
  text-align: center;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plant-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.plant-card img {
  width: 100%;
  height: auto;
  display: block;
}

.plant-card h2 {
  margin: 0.8rem 0;
  font-size: 1.2rem;
}

/* Desktop layout */
@media (min-width: 600px) {
  .plant-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}
