/* =========================
   SEARCH PAGE ROUND HEADER
   ========================= */

.search-header {  
  padding: 20px;
}

/* Rounded header card */
.search-header-inner {
  max-width: 1400px;
  margin: 0 auto;

  background: #242424;
  border-radius: 65px;
  padding: 20px 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Logo */
.search-header-inner .logo {
  display: flex;
  align-items: center;
  padding-left: 8px;
  margin-top: 2px;
}

.search-header-inner .logo img {
  height: 60px;
  width: auto;
  display: block;
}

/* Search box */
.search-header .search-box {
  margin: 0 !important;
}

.right-search {
  flex: 0 0 520px;
  margin-left: auto;
}

.right-search input {
  padding: 12px 46px 12px 18px;
  font-size: 15px;
}

/* Search icon */
.search-icon img {
  height: 18px;
  opacity: 0.7;
}

.search-icon img:hover {
  opacity: 1;
}

/* Mobile */
@media (max-width: 768px) {
  .search-header-inner {
    flex-direction: column;
    gap: 12px;
  }

  .right-search {
    flex: 1;
    margin-left: 0;
  }

  .search-header-inner .logo img {
    height: 34px;
  }
}

/* =========================
   SEARCH RESULT PAGE ONLY
   ========================= */
/* White rounded container */

.results-wrapper {
  margin: 20px auto 0;   /* ✅ top | left-right | bottom */
  background: #ffffff;
  max-width: 1400px;
  border-radius: 28px 28px 0 0;
  padding-top: 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Heading block */
.results-header {
  display: flex;
  flex-direction: column;
  gap: 2px;          /* ✅ VALID + controlled spacing */
  margin: 0 0 18px;
}
/* Search results grid */
#resultsGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 items per row */
  gap: 24px;
}

/* Related images grid */
#relatedGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Small label */
.result-label {
  margin: 0;
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  line-height: 1;   /* ✅ tight */
}
.search-seo-text {
  max-width: 900px;
  margin: 10px auto 30px;
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  text-align: center;
}

/* Big keyword */
#searchTitle {
  margin: 0;
  font-size: 46px;
  font-weight: 700;
  color: #111;
  line-height: 1;   /* ✅ THIS REMOVES THE GAP */
}
.related-title {
  margin: 40px 0 20px;
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

/* Ads (search page only) */
.ad-banner {
  max-width: 1200px;
  height: 90px;
  margin: 20px auto;
  background: #e8f3fb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b8ba4;
  font-size: 14px;
}

.bottom-ad {
  margin-bottom: 40px;
}

/* Skeleton loading cards */
.skeleton {
  height: 220px;
  background: linear-gradient(
    90deg,
    #eef3f0 25%,
    #f6f8f7 37%,
    #eef3f0 63%
  );
  background-size: 400% 300%;
  animation: shimmer 1.4s infinite;
  border-radius: 12px;
}

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

/* Responsive tweaks */
@media (max-width: 768px) {
  .results-wrapper {
    margin-top: -30px;
    border-radius: 20px 20px 0 0;
  }

  .results-header h1 {
    font-size: 20px;
  }
}
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: #777;
  font-size: 18px;
}
/* CARD WRAPPER */
.image-card-box {
  display: block;
  background: #ffffff;
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.image-card-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

/* IMAGE AREA */
.card-image {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* TRANSPARENT CHECKER BG */
.checker-bg {
  background-image:
    linear-gradient(45deg, #eee 25%, transparent 25%),
    linear-gradient(-45deg, #eee 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eee 75%),
    linear-gradient(-45deg, transparent 75%, #eee 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0px;
}

/* IMAGE */
.card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* TITLE */
.card-title {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  text-align: center;
  line-height: 1.3;
}
.pagination-wrapper,
.explore-btn-wrapper {
  text-align: center;
  margin: 40px 0;
}

.next-btn,
.explore-btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 30px;
  background: #111;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.next-btn:hover,
.explore-btn:hover {
  background: #000;
}
/* ================= FOOTER ================= */
.site-footer {
  margin-top: 60px;
  background: linear-gradient(180deg, #f7f9fc, #eef3f8);
  border-top: 1px solid #e3e8ef;
  padding: 30px 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
}

.footer-links a {
  text-decoration: none;
  font-size: 14px;
  color: #4a5568;
  font-weight: 500;
  transition: all 0.25s ease;
}

.footer-links a:hover {
  color: #1a73e8;
  transform: translateY(-1px);
}

.footer-copy {
  font-size: 13px;
  color: #7a8699;
  letter-spacing: 0.2px;
}
