* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.explorer-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.explorer-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

.explorer-header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.explorer-header p {
  opacity: 0.9;
  font-size: 1.1em;
}

.npub-input-section {
  padding: 30px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.npub-input-group {
  display: flex;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}

.npub-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 16px;
  font-family: monospace;
}

.npub-input:focus {
  outline: none;
  border-color: #667eea;
}

.explore-btn {
  padding: 12px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.explore-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.explore-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.filters-section {
  padding: 20px 30px;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  cursor: pointer;
}

.results-section {
  padding: 30px;
  min-height: 400px;
}

.loading {
  text-align: center;
  padding: 60px;
  color: #64748b;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

.public-archive-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s;
  cursor: pointer;
}

.public-archive-card:hover {
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.pac-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pac-mode {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.mode-forensic {
  background: #fee2e2;
  color: #dc2626;
}

.mode-verified {
  background: #dcfce7;
  color: #16a34a;
}

.mode-personal {
  background: #e0e7ff;
  color: #4f46e5;
}

.pac-badges {
  display: flex;
  gap: 5px;
}

.pac-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: #f1f5f9;
}

.pac-url {
  font-size: 14px;
  color: #334155;
  margin-bottom: 8px;
  word-break: break-all;
}

.pac-content {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pac-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #94a3b8;
}

.pac-verification {
  display: flex;
  align-items: center;
  gap: 5px;
}

.no-results {
  text-align: center;
  padding: 60px;
  color: #64748b;
}

.stats-bar {
  padding: 15px 30px;
  background: #f8fafc;
  display: flex;
  justify-content: space-around;
  border-bottom: 1px solid #e2e8f0;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: #667eea;
}

.stat-label {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}