@charset "UTF-8";

.search-page {
  min-height: 60vh;
  padding: 48px 20px 72px;
  background: var(--bg, #f8fafc);
  color: var(--text, #1e293b);
}

.search-container {
  max-width: 1100px;
  margin: 32px auto 56px;
  padding: 36px 40px 44px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
}

.search-heading {
  margin: 0 0 28px;
  padding-bottom: 12px;
  border-bottom: 3px solid #2563eb;
  color: #1e293b;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.4;
}

.search-message {
  margin: 20px 0;
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
}

.result-count {
  margin-bottom: 18px;
  color: #64748b;
  font-size: .95rem;
}

.result-item {
  margin-bottom: 16px;
  padding: 22px 24px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.result-item:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, .4);
  box-shadow: 0 10px 22px rgba(37, 99, 235, .1);
}

.result-url {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: .82rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.result-url:hover {
  color: #2563eb;
  text-decoration: underline;
}

.result-title {
  display: inline-block;
  margin-bottom: 8px;
  color: #2563eb;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.5;
}

.result-title:visited {
  color: #2563eb;
}

.result-title:hover {
  text-decoration: underline;
}

.result-snippet {
  margin: 0;
  color: #475569;
  font-size: .95rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

mark {
  background-color: #dbeafe;
  color: #1e3a8a;
  font-weight: 700;
  padding: 0 3px;
  border-radius: 3px;
}

.back-home-wrap {
  margin-top: 32px;
  text-align: center;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.pagination-link,
.pagination-link:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 9px 14px;
  border: 1px solid #2563eb;
  border-radius: 6px;
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.pagination-link:hover {
  background: #2563eb;
  color: #ffffff;
}

.pagination-status {
  color: #64748b;
  font-size: .9rem;
  white-space: nowrap;
}

.back-home-link {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  max-width: 100%;
  padding: 13px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(37, 99, 235, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}

.back-home-link:visited {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.back-home-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, .25);
}

@media (max-width: 700px) {
  .search-page {
    padding: 32px 16px 56px;
  }

  .search-container {
    margin: 0 auto;
    padding: 24px 16px 28px;
  }

  .result-item {
    padding: 18px 16px;
  }

  .result-title {
    font-size: 1.1rem;
  }

  .back-home-link {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  .news-pagination {
    flex-wrap: wrap;
  }
}