body {
  font-family: "Inter", sans-serif;
  background: white;
}

.information-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.species-header {
  text-align: start;
  margin-bottom: 2rem;
}

.species-header h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.species-header p {
  color: #666;
  font-size: 1rem;
  max-width: 700px;
  /* margin: 0 auto; */
}

/* Filters */

.filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-bar form {
  display: flex;
  gap: 0.5rem;
  border: none;
}

.search-bar input {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 250px;
  font-size: 0.9rem;
  border: none;
}

.category-buttons {
  display: flex;
  gap: 1rem;
}

.category-btn {
  padding: 0.5rem 1.5rem;
  background: #f0f0f0;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.2s;
}

.category-btn.active {
  background: #2e7d32;
  color: white;
}

.category-btn:hover:not(.active) {
  background: #e0e0e0;
}

/* Species grid */

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

.species-card {
  background: #eef0eda8;
  border: 1px solid #c7c7c7;
  overflow: hidden;
  border-radius: 12px;
  transition: ease-in-out 0.2s;
  cursor: pointer;
}

.species-card:hover {
  transform: translateY(-4px);
}

.card-image-placeholder {
  height: 160px;
  background: #e9e9e9;
  background-image:
    linear-gradient(45deg, #ddd 25%, transparent 25%),
    linear-gradient(-45deg, #ddd 25%, transparent 25%);
  background-size: 20px 20px;
}

.species-card img {
  width: 100%;
  max-height: 100%;
  height: 250px;
  object-fit: cover;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  width: 100%;
}

.card-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
  flex-grow: 1;
}

.scientific {
  font-style: italic;
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.description {
  font-size: 0.7rem;
  line-height: 1.5;
  color: #444;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-header .category-badge {
  margin-left: auto;
  flex-shrink: 0;
  padding: 0.3rem 0.8rem;
  font-size: 0.9rem;
  border-radius: 20px;
  font-weight: 500;
}

.category-badge.native {
  background: #3f7c42;
  color: #fff;
}

.category-badge.introduced {
  background: #e5e5e5;
  color: #3f3f3f;
}

.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 400px;
  width: 100%;
  grid-column: 1 / -1;
}

.no-results h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
  font-size: 1.3rem;
  font-weight: 500;
}

.no-results p {
  color: #1a1a1a;
  font-size: 1rem;
  font-weight: 400;
}

.no-results img {
  max-width: 300px;
  width: 100%;
  height: auto;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .filters {
    flex-direction: column;
    align-items: stretch;
  }
  .search-bar form {
    width: 100%;
  }
  .search-bar input {
    width: 100%;
  }
  .category-buttons {
    justify-content: center;
  }
}
