/**
 * Verification Tab Styles
 * 
 * Drag & drop zone, loading states, forensic-grade styling
 * Mobile-first, Apple-inspired design
 */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DROP ZONE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.verify-drop-zone {
  position: relative;
  border: 2px dashed var(--gray-300, #d1d5db);
  border-radius: 12px;
  padding: var(--space-4, 24px) var(--space-3, 16px);
  text-align: center;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-panel, #f8fafc);
}

.verify-drop-zone:hover {
  border-color: var(--primary-400, #60a5fa);
  background: var(--primary-50, #eff6ff);
}

.verify-drop-zone--dragover {
  border-color: var(--primary-500, #3b82f6);
  background: var(--primary-100, #dbeafe);
  border-style: solid;
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

@media (prefers-color-scheme: dark) {
  .verify-drop-zone {
    background: var(--bg-panel, #1e293b);
    border-color: var(--gray-700, #374151);
  }
  
  .verify-drop-zone:hover {
    border-color: var(--primary-500, #3b82f6);
    background: rgba(59, 130, 246, 0.1);
  }
  
  .verify-drop-zone--dragover {
    background: rgba(59, 130, 246, 0.15);
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LOADING STATE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.verification-loading {
  padding: var(--space-6, 40px) var(--space-4, 24px);
  text-align: center;
  animation: fadeIn 300ms ease;
}

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

.verification-loading-spinner {
  margin: 0 auto var(--space-4, 24px);
  width: 48px;
  height: 48px;
  color: var(--primary-500, #3b82f6);
}

.verification-loading-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-4, 24px);
  color: var(--text-primary, #0f172a);
}

@media (prefers-color-scheme: dark) {
  .verification-loading-title {
    color: var(--text-primary, #e5e7eb);
  }
}

.verification-loading-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--space-4, 24px);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.verification-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-panel, #f8fafc);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary, #64748b);
  opacity: 0.5;
  transition: all 200ms ease;
}

.verification-step--active {
  opacity: 1;
  background: var(--primary-50, #eff6ff);
  color: var(--primary-700, #1d4ed8);
  font-weight: 500;
}

.verification-step-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.verification-step-icon svg {
  width: 18px;
  height: 18px;
  color: currentColor;
}

.verification-step-text {
  flex: 1;
  text-align: left;
}

@media (prefers-color-scheme: dark) {
  .verification-step {
    background: var(--bg-panel, #1e293b);
    color: var(--text-secondary, #94a3b8);
  }
  
  .verification-step--active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-400, #60a5fa);
  }
}

.verification-loading-filename {
  font-size: 13px;
  color: var(--text-muted, #94a3b8);
  font-family: 'Courier New', monospace;
  word-break: break-all;
  max-width: 400px;
  margin: 0 auto;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SPINNER ANIMATION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.spinner {
  animation: spin 1s linear infinite;
}

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

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 640px) {
  .verify-drop-zone {
    padding: var(--space-3, 16px);
  }
  
  .verification-loading {
    padding: var(--space-4, 24px) var(--space-3, 16px);
  }
  
  .verification-loading-steps {
    gap: 8px;
  }
  
  .verification-step {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .verification-step-icon {
    font-size: 18px;
  }
}

/* ========================================
   HASH VERIFICATION SECTION
   ======================================== */

.hash-verify-section {
  max-width: 600px;
  margin: 0 auto;
}

.hash-verify-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.hash-verify-input {
  flex: 1;
  padding: 10px 14px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  border: 1.5px solid var(--gray-300, #d1d5db);
  border-radius: 10px;
  background: var(--gray-50, #f9fafb);
  color: var(--gray-900, #111827);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.hash-verify-input:focus {
  border-color: var(--primary-500, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
  background: white;
}.hash-verify-input::placeholder {
  color: var(--gray-400, #9ca3af);
  font-family: inherit;
}

.hash-verify-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--primary-600, #2563eb);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}.hash-verify-btn:hover:not(:disabled) {
  background: var(--primary-700, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}.hash-verify-btn:active:not(:disabled) {
  transform: translateY(0);
}

.hash-verify-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Hash verify result card */
.hash-verify-result {
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  animation: hashResultSlide 0.25s ease-out;
}

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

.hash-result-card {
  padding: 20px;
  border: 1.5px solid;
  border-radius: 12px;
}

.hash-result-card--found {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(5, 150, 105, 0.02) 100%);
  border-color: rgba(16, 185, 129, 0.3);
}

.hash-result-card--not-found {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(217, 119, 6, 0.02) 100%);
  border-color: rgba(245, 158, 11, 0.3);
}

.hash-result-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}.hash-result-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

.hash-result-card--found .hash-result-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}.hash-result-card--not-found .hash-result-icon {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.hash-result-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900, #111827);
  margin: 0 0 2px 0;
}

.hash-result-subtitle {
  font-size: 12px;
  color: var(--gray-500, #6b7280);
  margin: 0;
}

.hash-result-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hash-result-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hash-result-field--full {
  grid-column: 1 / -1;
}

.hash-result-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500, #6b7280);
}

.hash-result-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-900, #111827);
}

.hash-result-value--mono {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  word-break: break-all;
  line-height: 1.5;
}

/* Source badge in hash result */
.hash-result-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.hash-result-source--cloud {
  background: rgba(20, 184, 166, 0.12);
  color: #0d9488;
}

.hash-result-source--app {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.hash-result-source--unknown {
  background: var(--gray-100, #f3f4f6);
  color: var(--gray-600, #4b5563);
}

/* Loading spinner */
.hash-verify-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  color: var(--gray-500, #6b7280);
  font-size: 13px;
}

.hash-verify-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-300, #d1d5db);
  border-top-color: var(--primary-500, #3b82f6);
  border-radius: 50%;
  animation: hashSpin 0.6s linear infinite;
}

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

@media (max-width: 480px) {
  .hash-verify-input-row {
    flex-direction: column;
  }
  .hash-verify-btn {
    justify-content: center;
  }
  .hash-result-details {
    grid-template-columns: 1fr;
  }
}
