:root {
  color: #0f172a;
  background: #e8f1ff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 24%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.14), transparent 32%),
    #eff6ff;
}
button,
input {
  font: inherit;
}
.app-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}
.hero-panel {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(96, 165, 250, 0.95));
  color: white;
  border-radius: 32px;
  padding: 40px 34px;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.12);
  margin-bottom: 26px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.hero-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}
.hero-panel p {
  margin: 0;
  max-width: 760px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
}
.card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}
.search-card,
.results-card,
.saved-card {
  padding: 24px;
}
.search-form {
  display: grid;
  gap: 20px;
}
.search-title {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.search-title span {
  font-size: 1.2rem;
  font-weight: 700;
}
.search-title em {
  color: #64748b;
  font-style: normal;
}
.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}
.search-row input {
  width: 100%;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid #cbd5e1;
  background: #f8fbff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-row input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}
.search-row button {
  border: none;
  border-radius: 18px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.search-row button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 35px rgba(59, 130, 246, 0.25);
}
.search-hint {
  color: #64748b;
}
.grid-panel {
  display: grid;
  gap: 24px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.card-header h2 {
  margin: 0;
  font-size: 1.2rem;
}
.subtitle {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 0.95rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-weight: 700;
}
.badge-accent {
  background: rgba(16, 185, 129, 0.12);
  color: #0f766e;
}
.cards {
  display: grid;
  gap: 16px;
}
.article {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(148, 163, 184, 0.14);
}
.article-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.article h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}
.article p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}
.article a,
.article button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 600;
  text-decoration: none;
}
.article a {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}
.article button {
  border: none;
  background: #2563eb;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.2);
}
.meta {
  font-size: 0.92rem;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.empty,
.loading {
  margin: 0;
  padding: 30px;
  border-radius: 24px;
  text-align: center;
  color: #64748b;
  background: #f8fbff;
  border: 1px dashed rgba(148, 163, 184, 0.4);
}
.footer-panel {
  margin-top: 26px;
  text-align: center;
  color: #475569;
  font-size: 0.95rem;
}
@media (max-width: 900px) {
  .search-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .app-shell {
    padding: 18px 14px 32px;
  }
  .hero-panel {
    padding: 28px 20px;
  }
}
