body {
  font-family: Arial, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f5f5f5;
}

.container {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  color: #2d5a27;
  text-align: center;
  margin-bottom: 30px;
}

.filter-section {
  margin-bottom: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #4caf50;
}

.filter-question {
  font-weight: bold;
  margin-bottom: 15px;
  color: #2d5a27;
  font-size: 16px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-option {
  padding: 8px 16px;
  background: white;
  border: 2px solid #ddd;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}

.filter-option:hover {
  border-color: #4caf50;
  background: #e8f5e8;
}

.filter-option.active {
  background: #4caf50;
  color: white;
  border-color: #4caf50;
}

.results-section {
  margin-top: 30px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.results-count {
  color: #666;
  font-style: italic;
}

.clear-filters {
  background: #ff6b6b;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.clear-filters:hover {
  background: #ff5252;
}

.plant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.plant-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.plant-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.plant-image-placeholder {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #4caf50, #45a049);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  text-align: center;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.2;
}

.plant-name {
  font-size: 18px;
  font-weight: bold;
  color: #2d5a27;
  margin-bottom: 5px;
}

.plant-latin {
  font-style: italic;
  color: #666;
  margin-bottom: 15px;
}

.plant-conditions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.condition {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.condition-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
}

.light-icon {
  background: #ffa726;
}
.soil-icon {
  background: #8d6e63;
}
.moisture-icon {
  background: #42a5f5;
}

.no-results {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 40px;
}

.help-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: #4caf50;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
  cursor: pointer;
  margin-left: 8px;
  position: relative;
}

.help-icon:hover {
  background: #45a049;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1000;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  z-index: 1001;
}

.popup h3 {
  color: #2d5a27;
  margin-bottom: 20px;
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.postal-input {
  width: 100%;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 5px;
  margin: 10px 0;
  font-size: 16px;
}

.postal-button {
  background: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
}

.postal-button:hover {
  background: #45a049;
}

.soil-result {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 5px;
  border-left: 4px solid #4caf50;
}

@media (max-width: 600px) {
  .results-header {
    flex-direction: column;
  }
  .results-header > div {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
  }
}
