/* search.css — page-specific styles for search.html */

/* ── Hero ── */
.search-hero {
  padding-top: 80px;
  padding-bottom: 60px;
  text-align: center;
}

.search-hero h1 {
  font-size: 52px;
  font-weight: 900;
  color: #06273F;
  margin-bottom: 12px;
  line-height: 1.1;
}

.search-hero h1 span {
  color: #009444;
}

.search-hero p {
  color: #728491;
  font-size: 18px;
  margin-bottom: 40px;
}

/* ── Search Input ── */
.search-wrap {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  height: 72px;
  font-size: 20px;
  font-family: "Public Sans", sans-serif;
  padding: 0 140px 0 28px;
  border: 2px solid #D6E3D5;
  border-radius: 16px;
  background: #fff;
  color: #06273F;
  outline: none;
  box-shadow: 0 4px 20px rgba(6,39,63,0.07);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.search-input::placeholder {
  color: #9CADAE;
}

.search-input:focus {
  border-color: #009444;
  box-shadow: 0 4px 24px rgba(0,148,68,0.12);
}

.search-btn {
  position: absolute;
  right: 8px;
  top: 8px;
  bottom: 8px;
  padding: 0 28px;
  background: #009444;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.search-btn:hover {
  background: #01813B;
  transform: scale(1.02);
}

.search-btn:active {
  transform: scale(0.98);
}

/* rate-limit notice */
.rate-limit-notice {
  display: none;
  margin-top: 10px;
  font-size: 13px;
  color: #b45309;
  text-align: center;
}

/* ── Tag chips ── */
.tag-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.tag {
  background: rgba(0,148,68,0.08);
  color: #007a38;
  border: 1px solid rgba(0,148,68,0.2);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.tag:hover {
  background: #009444;
  color: #fff;
  border-color: #009444;
}

.tag.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ── Results ── */
.results-section {
  padding-bottom: 80px;
}

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.results-label {
  font-size: 16px;
  color: #728491;
}

.results-label strong {
  color: #06273F;
}

.provider-section {
  margin-bottom: 50px;
}

.provider-heading {
  font-size: 18px;
  font-weight: 800;
  color: #06273F;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #E6EFE5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
}

.provider-heading::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #009444;
  margin-right: 12px;
}

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

.img-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #E6EFE5;
  box-shadow: 0 2px 12px rgba(6,39,63,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  position: relative;
}

.img-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(6,39,63,0.12);
}

.img-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: #E6EFE5;
}

.img-card-body {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.img-source {
  font-size: 13px;
  color: #9CADAE;
  font-weight: 500;
}

.img-download-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #06273F;
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: background 0.2s ease;
  text-decoration: none;
}

.img-download-btn:hover {
  background: #009444;
  color: #fff;
}

/* ── Skeleton loader ── */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.skeleton-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #E6EFE5;
}

.skeleton-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(90deg, #E6EFE5 25%, #d5e6d4 50%, #E6EFE5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.skeleton-body {
  padding: 14px 16px;
  display: flex;
  gap: 8px;
}

.skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #E6EFE5 25%, #d5e6d4 50%, #E6EFE5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #9CADAE;
}

.empty-state .icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 18px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .search-hero h1   { font-size: 32px; }
  .search-input     { height: 60px; font-size: 17px; padding-right: 110px; }
  .search-btn       { font-size: 15px; padding: 0 18px; }
}
