/* Configurações Globais */
:root {
  --bg-color: #080b11;
  --panel-bg: rgba(17, 24, 39, 0.6);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(59, 130, 246, 0.4);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --primary-color: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.15);
  --success-color: #10b981;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  position: relative;
}

/* Background com Efeito de Brilho Neon */
.bg-glow {
  position: fixed;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(circle, var(--primary-glow) 0%, rgba(8, 11, 17, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px 40px 20px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Cabeçalho */
.header {
  text-align: center;
  margin-bottom: 40px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.logo-shield {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

.logo h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 40%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-highlight {
  color: var(--primary-color);
  background: linear-gradient(135deg, #3b82f6 30%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
}

/* Caixa de Pesquisa (Estilo Google / Glassmorphism) */
.search-container {
  width: 100%;
  margin-bottom: 30px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 8px 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
}

.search-box:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 25px var(--primary-glow), 0 4px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.search-icon {
  font-size: 1.1rem;
  margin-right: 12px;
  color: var(--text-muted);
}

.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 1.15rem;
  font-family: var(--font-family);
  font-weight: 400;
  padding: 8px 0;
}

.search-box input::placeholder {
  color: #6b7280;
  font-weight: 300;
}

.clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0 4px;
  display: none; /* Ativado via JS */
  line-height: 1;
  transition: color 0.2s;
}

.clear-btn:hover {
  color: #ef4444;
}

/* Barra de Status */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding-left: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--success-color);
  box-shadow: 0 0 8px var(--success-color);
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

/* Resultados */
.results-container {
  flex: 1;
  width: 100%;
}

.results-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  animation: fadeIn 0.3s ease-out;
}

/* Card de Resultado Individual */
.card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card:hover {
  border-color: var(--border-hover);
  background: rgba(30, 41, 59, 0.7);
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding-right: 15px;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-id {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.card-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  word-break: break-word;
}

.card-ip-container {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.card-ip-link {
  color: var(--primary-color);
  text-decoration: none;
  font-family: monospace;
  font-weight: 500;
  word-break: break-all;
}

.card-ip-link:hover {
  text-decoration: underline;
}

/* Botão de Copiar */
.copy-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.copy-btn.copied {
  background: var(--success-color);
  color: #ffffff;
  border-color: var(--success-color);
}

/* Loading e Sem Resultados */
.loading-spinner, .no-results {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s linear infinite;
}

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

.no-results-icon {
  font-size: 3rem;
  opacity: 0.4;
}

.no-results h3 {
  color: var(--text-main);
  font-size: 1.2rem;
  font-weight: 500;
}

.no-results p {
  font-size: 0.9rem;
  font-weight: 300;
}

.hidden {
  display: none !important;
}

/* Rodapé */
.footer {
  margin-top: auto;
  padding: 40px 0 20px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
  font-weight: 300;
}

/* Responsividade */
@media (max-width: 600px) {
  .container {
    padding-top: 30px;
  }
  
  .logo h1 {
    font-size: 1.8rem;
  }
  
  .card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  
  .copy-btn {
    width: 100%;
    justify-content: center;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Créditos e LinkedIn */
.credits {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.credits a {
  color: var(--primary-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 5px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.credits a:hover {
  color: #60a5fa;
  text-decoration: underline;
}

.linkedin-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.credits a:hover .linkedin-icon {
  transform: scale(1.1);
}
