/* --- API EXPLORER SECTION --- */

/* Search Container */
.search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.search-container form {
  display: flex;
  width: 100%;
  max-width: 800px; /* Reduced width for a cleaner look */
  gap: 0; /* Connects input and button */
}

.search-container input[type="search"] {
  border-right: none; /* Merges visually with button */
  margin-bottom: 0; /* Pico reset */
}

/* API Cards Grid */
.api-grid {
  /* Fits more cards per row, but keeps them readable */
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
  gap: 1rem; /* Tighter gap */
}

.api-card {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centered content */
  text-align: center;
  padding: 1.5rem 1rem; /* Smaller padding */
  text-decoration: none;
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  color: var(--pico-color);
  transition: transform 0.2s ease, border-color 0.2s ease;
  height: 100%; /* Ensures all cards in a row are equal height */
}

.api-card:hover {
  transform: translateY(-3px); /* Subtle lift */
  border-color: var(--pico-primary);
  text-decoration: none; /* Prevents underline on hover */
}

/* Icons */
.card-icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  fill: none;
  stroke: var(--pico-primary);
  stroke-width: 1;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

/* Typography */
.api-card h3 {
  font-size: 1.1rem; /* Smaller, punchier title */
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.api-card p {
  font-size: 0.85rem;
  color: var(--pico-muted-color);
  line-height: 1.4;
  margin-bottom: 1rem;
  flex-grow: 1; /* Pushes the status to the bottom */
}

/* Minimal Status Indicator */
.status-indicator {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pico-muted-color); /* Subtle text */
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dot {
  display: block;
  width: 6px;
  height: 6px;
  background-color: #2ecc71; /* Success Green */
  /* If you strictly want square dots for "no roundness": */
  /* border-radius: 0; */ 
  border-radius: 50%; /* Dots are usually round, but change to 0 if preferred */
}