/* ═══════════════════════════════════════════════════════════════
   OSINT — Cyberpunk Intelligence Panel Styles
   ═══════════════════════════════════════════════════════════════ */

/* ─── Search Bar ─── */
.osint-search-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.osint-input-wrap {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  transition: border-color 0.2s;
}

.osint-input-wrap:focus-within {
  border-color: rgba(255, 45, 120, 0.6);
  box-shadow: 0 0 0 2px rgba(255, 45, 120, 0.08);
}

.osint-input-wrap span {
  color: var(--gold);
  opacity: 0.5;
  font-size: 14px;
  flex-shrink: 0;
}

.osint-input-wrap input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  padding: 12px 0;
  width: 100%;
  min-width: 0;
}

.osint-input-wrap input::placeholder {
  color: var(--sub);
  opacity: 0.5;
}

.osint-btn {
  background: linear-gradient(135deg, rgba(255, 45, 120, 0.22), rgba(217, 70, 239, 0.14));
  border: 1px solid rgba(255, 45, 120, 0.45);
  border-radius: 12px;
  color: var(--gold2);
  font-family: 'Exo 2', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 11px 20px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.osint-btn:hover {
  background: linear-gradient(135deg, rgba(255, 45, 120, 0.38), rgba(217, 70, 239, 0.22));
  box-shadow: 0 0 14px rgba(255, 45, 120, 0.25);
}

.osint-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* ─── Status / Meta Bar ─── */
.osint-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.osint-count-badge {
  background: rgba(255, 45, 120, 0.13);
  border: 1px solid rgba(255, 45, 120, 0.3);
  border-radius: 20px;
  color: var(--gold2);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 4px 12px;
}

.osint-query-label {
  color: var(--sub);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  opacity: 0.7;
}

.osint-query-label span {
  color: var(--gold2);
  opacity: 1;
}

/* ─── Loading State ─── */
.osint-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 18px;
}

.osint-loading.active { display: flex; }

.osint-spinner {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 45, 120, 0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: osintSpin 0.8s linear infinite;
}

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

.osint-loading-txt {
  color: var(--sub);
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.5px;
  opacity: 0.7;
  animation: osintBlink 1.2s step-end infinite;
}

@keyframes osintBlink {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 0.2; }
}

/* ─── Empty / Error States ─── */
.osint-empty, .osint-error {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 12px;
  text-align: center;
}

.osint-empty.active  { display: flex; }
.osint-error.active  { display: flex; }

.osint-empty .ei, .osint-error .ei {
  font-size: 32px;
  opacity: 0.35;
}

.osint-empty p {
  color: var(--sub);
  font-size: 13px;
  opacity: 0.6;
  margin: 0;
}

.osint-error p {
  color: var(--rose);
  font-size: 13px;
  margin: 0;
}

/* ─── Results Grid ─── */
.osint-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ─── Result Card ─── */
.osint-card {
  background: linear-gradient(135deg, var(--bg2) 0%, rgba(255, 45, 120, 0.04) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
              border-color 0.2s, box-shadow 0.2s;
}

.osint-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.osint-card:hover {
  border-color: rgba(255, 45, 120, 0.35);
  box-shadow: 0 4px 24px rgba(255, 45, 120, 0.08);
}

/* Accent line */
.osint-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff2d78, #d946ef, transparent);
  opacity: 0.6;
}

/* ─── Card Header ─── */
.osint-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.osint-card-num {
  display: flex;
  align-items: center;
  gap: 8px;
}

.osint-num-badge {
  background: rgba(255, 45, 120, 0.18);
  border: 1px solid rgba(255, 45, 120, 0.35);
  border-radius: 8px;
  color: var(--gold2);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 9px;
}

.osint-mobile-val {
  color: var(--fg);
  font-family: 'Share Tech Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}

.osint-copy-all {
  background: rgba(0, 229, 160, 0.1);
  border: 1px solid rgba(0, 229, 160, 0.28);
  border-radius: 8px;
  color: var(--mint, #00e5a0);
  font-family: 'Exo 2', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.osint-copy-all:hover {
  background: rgba(0, 229, 160, 0.2);
}

/* ─── Fields Grid ─── */
.osint-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

/* Address field spans full width */
.osint-field.full-width {
  grid-column: 1 / -1;
}

/* ─── Individual Field ─── */
.osint-field {
  background: var(--bg3, rgba(255,255,255,0.03));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  min-width: 0;
}

.osint-field:hover {
  border-color: rgba(255, 45, 120, 0.3);
  background: rgba(255, 45, 120, 0.05);
}

.osint-field-lbl {
  color: var(--sub);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.6;
  flex-shrink: 0;
}

.osint-field-val {
  color: var(--fg);
  font-family: 'Exo 2', sans-serif;
  font-size: 13px;
  font-weight: 500;
  word-break: break-word;
  line-height: 1.5;
}

/* NA value styling */
.osint-field-val.na {
  color: var(--sub);
  opacity: 0.4;
  font-style: italic;
}

/* Address value */
.osint-field.full-width .osint-field-val {
  font-size: 12px;
  line-height: 1.7;
  font-family: 'Share Tech Mono', monospace;
  color: #e0d0ff;
}

/* Highlight: mobile number */
.osint-field.highlight .osint-field-val {
  color: var(--gold2, #ff6b9d);
  font-weight: 700;
}

/* ─── Copy Flash ─── */
.osint-field.copied {
  border-color: rgba(0, 229, 160, 0.5) !important;
  background: rgba(0, 229, 160, 0.06) !important;
}

.osint-field.copied .osint-field-lbl::after {
  content: ' ✓';
  color: var(--mint, #00e5a0);
  font-size: 10px;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .osint-fields {
    grid-template-columns: 1fr 1fr;
  }

  .osint-card {
    padding: 14px 14px;
  }

  .osint-mobile-val {
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .osint-fields {
    grid-template-columns: 1fr;
  }

  .osint-search-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .osint-btn {
    width: 100%;
    text-align: center;
  }
}
