/* Nobel Prize Winner Search Styles */
.npws-main {
  max-width: 1050px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.npws-card {
  background: var(--tf-surface, #ffffff);
  border: 1px solid var(--tf-border, #e2e8f0);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.npws-header {
  margin-bottom: 1.25rem;
}

.npws-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--tf-text, #0f172a);
}

.npws-subtitle {
  font-size: 0.95rem;
  color: var(--tf-muted, #64748b);
  margin: 0;
  line-height: 1.45;
}

.npws-search-bar {
  background: var(--tf-bg-alt, #f8fafc);
  border: 1px solid var(--tf-border, #e2e8f0);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.npws-field-search {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.npws-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tf-text, #1e293b);
}

.npws-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.npws-input {
  width: 100%;
  padding: 0.65rem 2.25rem 0.65rem 0.85rem;
  font-size: 0.95rem;
  border: 1px solid var(--tf-border, #cbd5e1);
  border-radius: 6px;
  background: var(--tf-surface, #ffffff);
  color: var(--tf-text, #0f172a);
}

.npws-btn-clear {
  position: absolute;
  right: 0.75rem;
  background: transparent;
  border: none;
  font-size: 1rem;
  color: var(--tf-muted, #94a3b8);
  cursor: pointer;
}

.npws-btn-clear:hover {
  color: var(--tf-text, #0f172a);
}

.npws-filters-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .npws-filters-row {
    grid-template-columns: 1fr;
  }
}

.npws-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.npws-select {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  border: 1px solid var(--tf-border, #cbd5e1);
  border-radius: 6px;
  background: var(--tf-surface, #ffffff);
  color: var(--tf-text, #0f172a);
}

.npws-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--tf-border, #e2e8f0);
}

.npws-count {
  font-size: 0.88rem;
  color: var(--tf-muted, #475569);
}

.npws-quick-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.npws-quick-tag {
  background: var(--tf-bg-alt, #f1f5f9);
  border: 1px solid var(--tf-border, #cbd5e1);
  border-radius: 4px;
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tf-text, #334155);
  cursor: pointer;
  transition: all 0.15s ease;
}

.npws-quick-tag:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.npws-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.npws-item-card {
  background: var(--tf-surface, #ffffff);
  border: 1px solid var(--tf-border, #e2e8f0);
  border-radius: 8px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.npws-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.08);
}

.npws-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.npws-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.npws-badge-physics { background: #dbeafe; color: #1e40af; }
.npws-badge-chemistry { background: #fef3c7; color: #92400e; }
.npws-badge-medicine { background: #dcfce7; color: #166534; }
.npws-badge-literature { background: #f3e8ff; color: #6b21a8; }
.npws-badge-peace { background: #fee2e2; color: #991b1b; }
.npws-badge-economics { background: #e0e7ff; color: #3730a3; }

.npws-year {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--tf-muted, #64748b);
  font-family: ui-monospace, monospace;
}

.npws-laureate-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.45rem 0;
  color: var(--tf-text, #0f172a);
}

.npws-citation {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--tf-text, #334155);
  margin: 0 0 0.85rem 0;
  flex: 1;
}

.npws-card-footer {
  border-top: 1px solid var(--tf-border, #f1f5f9);
  padding-top: 0.5rem;
}

.npws-country {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tf-muted, #64748b);
}

.npws-empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--tf-muted, #64748b);
  font-size: 0.95rem;
}

.npws-notice {
  font-size: 0.85rem;
  min-height: 1.25rem;
}
