* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Roboto, sans-serif;
  margin: 0;
  background: linear-gradient(120deg, #eef2f3, #d9e4f5);
  color: #222;
  transition: background 0.4s ease;
}

body.light-theme {
  background: #f5f7fa;
  color: #111;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

.site-header {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.4);
}

.logo {
  font-size: 1.8rem;
  font-weight: 600;
}

.controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.controls input {
  flex: 1;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.controls button {
  border: none;
  background: #ffffffa8;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.controls button:hover {
  background: #fff;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.meta {
  text-align: center;
  margin: 1.5rem 0;
}

.filters {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.filters select {
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.api-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  padding: 1rem 1.2rem;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.api-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.api-name {
  font-size: 1.2rem;
  font-weight: 600;
}

.category {
  font-size: 0.9rem;
  color: #555;
}

.api-desc {
  margin: 0.8rem 0;
  font-size: 0.95rem;
}

.meta-info {
  font-size: 0.85rem;
  color: #555;
  display: flex;
  justify-content: space-between;
}

.tags-row {
  margin: 0.5rem 0;
}

.tag {
  display: inline-block;
  background: #e0e7ff;
  color: #1e3a8a;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  margin: 0.2rem;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 0.8rem;
}

.card-actions button {
  flex: 1;
  margin: 0 0.2rem;
  padding: 0.5rem;
  border-radius: 10px;
  border: none;
  background: #0078d4;
  color: white;
  cursor: pointer;
  transition: background 0.2s ease;
}

.card-actions button:hover {
  background: #005a9e;
}
