/* VerifyShot Authenticity Verifier - Styling */

:root {
  --bg-base: #05070d;
  --bg-card: #0b0f19;
  --bg-card-hover: #101624;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-focus: #000072;
  --primary: #000072;
  --primary-hover: #08088a;
  --primary-surface: rgba(0, 0, 114, 0.15);
  --success: #10b981;
  --success-border: rgba(16, 185, 129, 0.35);
  --success-surface: rgba(16, 185, 129, 0.08);
  --danger: #ff0000;
  --danger-border: rgba(255, 0, 0, 0.4);
  --danger-surface: rgba(255, 0, 0, 0.08);
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

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

body {
  background-color: var(--bg-base);
  background-image: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  -webkit-font-smoothing: antialiased;
}

.verifier-app {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

/* Nav */
.verifier-nav {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.verifier-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.15s ease;
}

.verifier-back-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

/* Header */
.verifier-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.brand-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0d1220;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 1.2rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: none;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.verifier-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 0.85rem;
  color: #ffffff;
}

.verifier-subtitle {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Main Card */
.verifier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2.25rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Drag & Drop Zone */
.drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 3.5rem 2rem;
  text-align: center;
  cursor: pointer;
  background: rgba(14, 21, 37, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.drop-zone:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
  box-shadow: none;
}

.drop-zone.dragover {
  border-color: #000072;
  background: rgba(0, 0, 114, 0.1);
  box-shadow: none;
  transform: scale(0.995);
}

.drop-icon-wrapper {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: #0d111d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all 0.25s ease;
}

.drop-zone:hover .drop-icon-wrapper {
  transform: scale(1.08) translateY(-2px);
  box-shadow: none;
  background: rgba(0, 0, 114, 0.2);
}

.drop-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.drop-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.drop-privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-subtle);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.drop-privacy-pill svg {
  width: 14px;
  height: 14px;
  color: #ffffff;
}

input[type="file"] {
  display: none;
}

/* Result Panels */
.result-panel {
  display: none;
  animation: panelSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Status Banners */
.status-banner {
  border-radius: 16px;
  padding: 1.5rem 1.6rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.6rem;
  position: relative;
  overflow: hidden;
}

.status-banner.success {
  background: #0d111d;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.status-banner.error {
  background: rgba(255, 0, 0, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.35);
  box-shadow: none;
}

.status-banner.loading {
  background: #0d111d;
  border: 1px solid #000072;
  box-shadow: none;
}

.status-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-banner.success .status-icon-box {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.status-banner.error .status-icon-box {
  background: rgba(255, 0, 0, 0.2);
  color: #ffffff;
}

.status-banner.loading .status-icon-box {
  background: rgba(0, 0, 114, 0.4);
  color: #ffffff;
}

.status-content h3 {
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.status-banner.success .status-content h3 { color: #ffffff; }
.status-banner.error .status-content h3 { color: #ffffff; }
.status-banner.loading .status-content h3 { color: #ffffff; }

.status-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Preview & Details Container */
.preview-details-wrap {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.6rem;
  align-items: stretch;
}

@media (max-width: 640px) {
  .preview-details-wrap {
    flex-direction: column;
  }
}

.thumbnail-preview-card {
  width: 140px;
  flex-shrink: 0;
  background: rgba(14, 21, 37, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.thumbnail-img {
  width: 100%;
  height: 100%;
  max-height: 150px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

/* Details Grid */
.details-grid {
  flex: 1;
  background: rgba(14, 21, 37, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 1rem;
}

.detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-row:first-child {
  padding-top: 0;
}

.detail-label {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  white-space: nowrap;
}

.detail-val-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  justify-content: flex-end;
}

.detail-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #f8fafc;
  word-break: break-all;
  text-align: right;
}

.detail-val.badge-status-verified {
  font-family: var(--font-sans);
  font-weight: 600;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.detail-val.badge-status-error {
  font-family: var(--font-sans);
  font-weight: 600;
  color: #ff0000;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.detail-val.highlight-audit {
  color: #ffffff;
  font-weight: 600;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  font-size: 0.74rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-family: var(--font-sans);
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* Actions Footer */
.actions-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.btn-action-primary {
  background: var(--primary);
  border: none;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-action-primary:hover {
  background: var(--primary-hover);
  box-shadow: none;
  transform: translateY(-1px);
}

.btn-action-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-action-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Footer info */
.footer-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.82rem;
  color: var(--text-subtle);
}
