/* ================================================================
   verify.css — Verification-specific styles
   Drop zone, progress, results, wallet verification
   ================================================================ */

/* Hero Section */
.verify-hero {
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.verify-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(59, 139, 196, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.verify-hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.verify-hero__label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-gold);
  margin-bottom: 1rem;
}
.verify-hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .verify-hero h1 { font-size: 3.25rem; }
}
.verify-hero__sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Drop Zone */
.dropzone {
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--surface-2), #080D18);
  border: 2px dashed rgba(59, 139, 196, 0.25);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--brand-blue);
  background: linear-gradient(180deg, rgba(59, 139, 196, 0.08), var(--surface-2));
  box-shadow: 0 0 40px rgba(59, 139, 196, 0.1);
}
.dropzone:focus-within {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.dropzone-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  color: var(--brand-blue);
  opacity: 0.8;
}
.dropzone-icon svg {
  width: 100%;
  height: 100%;
}

.dropzone h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.dropzone p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.privacy-note svg {
  width: 14px;
  height: 14px;
  color: var(--brand-gold);
  flex-shrink: 0;
}

/* iOS Tip — media-object card: image left, text right */
.ios-tip {
  max-width: 640px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, rgba(59, 139, 196, 0.10), rgba(59, 139, 196, 0.04));
  border: 1px solid rgba(59, 139, 196, 0.20);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}
.ios-tip > span,
.ios-conversion-warning > span {
  flex: 1;
  min-width: 0;
}
.ios-tip strong {
  color: var(--brand-blue-light);
}
.ios-tip__img,
.ios-conversion-warning > img {
  flex-shrink: 0;
  width: 120px;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
@media (max-width: 359px) {
  .ios-tip {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .ios-tip__img {
    width: 100px;
  }
}

/* iOS Conversion Warning — media-object card: image left, text right */
.ios-conversion-warning {
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.12), rgba(202, 138, 4, 0.06));
  border: 1px solid rgba(202, 138, 4, 0.25);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}
.ios-conversion-warning strong {
  color: var(--brand-gold-light);
}
@media (max-width: 359px) {
  .ios-conversion-warning {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* Progress */
.progress-container {
  display: none;
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--surface-2), #080D18);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.progress-container.visible {
  display: block;
}
.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}
.step-indicator {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(59, 139, 196, 0.15);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}
.step-indicator.active {
  background: var(--brand-blue);
  color: white;
  box-shadow: 0 0 20px rgba(59, 139, 196, 0.4);
}
.step-indicator.complete {
  background: var(--brand-gold);
  color: white;
}
.step-indicator.complete svg {
  width: 16px;
  height: 16px;
}
.step-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
}
.progress-bar {
  height: 8px;
  background: rgba(59, 139, 196, 0.15);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-gold));
  transition: width 0.3s ease;
  width: 0%;
}
.progress-message {
  margin-top: 1rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Results */
.results {
  display: none;
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--surface-2), #080D18);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.results.visible {
  display: block;
}
.result-header {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.result-header.verified {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.2), rgba(22, 163, 74, 0.15));
  border-bottom: 1px solid rgba(22, 163, 74, 0.2);
}
.result-header.failed {
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.2), rgba(220, 38, 38, 0.15));
  border-bottom: 1px solid rgba(220, 38, 38, 0.2);
}
.result-header.partial {
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.2), rgba(202, 138, 4, 0.15));
  border-bottom: 1px solid rgba(202, 138, 4, 0.2);
}

.result-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.status-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.status-icon svg {
  width: 18px;
  height: 18px;
}
.status-icon.verified {
  background: rgba(22, 163, 74, 0.2);
  color: var(--color-success-light);
}
.status-icon.failed {
  background: rgba(220, 38, 38, 0.2);
  color: var(--color-error-light);
}
.status-icon.partial {
  background: rgba(202, 138, 4, 0.2);
  color: var(--color-warning-light);
}
.status-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
}
.status-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.share-btn {
  background: rgba(59, 139, 196, 0.15);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.share-btn svg {
  width: 14px;
  height: 14px;
}
.share-btn:hover {
  background: rgba(59, 139, 196, 0.25);
  border-color: var(--brand-blue);
}

.result-body {
  padding: 1.5rem 2rem;
}
.result-section {
  padding: 1rem 0;
  border-bottom: 1px solid var(--glass-border);
}
.result-section:last-child {
  border-bottom: none;
}
.result-section h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

/* Check Items in Results */
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.check-icon svg {
  width: 12px;
  height: 12px;
}
.check-icon.pass {
  background: rgba(22, 163, 74, 0.15);
  color: var(--color-success-light);
}
.check-icon.fail {
  background: rgba(220, 38, 38, 0.15);
  color: var(--color-error-light);
}
.check-icon.warn {
  background: rgba(200, 150, 62, 0.15);
  color: var(--brand-gold-light);
}
.check-content {
  flex: 1;
}
.check-title {
  font-weight: 600;
  font-size: 0.95rem;
}
.check-detail {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}
.check-link {
  color: var(--brand-blue);
  text-decoration: none;
}
.check-link:hover {
  text-decoration: underline;
}

/* Metadata Grid */
.metadata-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.metadata-item {
  font-size: 0.875rem;
}
.metadata-label {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

/* Result Actions */
.result-actions {
  display: flex;
  gap: 1rem;
  padding: 1rem 2rem 1.5rem;
}

/* Error State */
.error-container {
  display: none;
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--surface-2), #080D18);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.error-container.visible {
  display: block;
}
.error-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--color-error-light);
}
.error-icon svg {
  width: 100%;
  height: 100%;
}
.error-message {
  color: var(--color-error-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.error-detail {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Wallet Verification */
.wallet-container {
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--surface-2), #080D18);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.wallet-loading {
  padding: 3rem;
  text-align: center;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(59, 139, 196, 0.15);
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.wallet-header {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.wallet-header.verified {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.2), rgba(22, 163, 74, 0.15));
  border-bottom: 1px solid rgba(22, 163, 74, 0.2);
}
.wallet-header.unverified {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.15), rgba(156, 163, 175, 0.1));
  border-bottom: 1px solid var(--glass-border);
}
.wallet-header.error {
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.2), rgba(220, 38, 38, 0.15));
  border-bottom: 1px solid rgba(220, 38, 38, 0.2);
}
.wallet-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wallet-icon svg {
  width: 18px;
  height: 18px;
}
.wallet-icon.verified {
  background: rgba(22, 163, 74, 0.2);
  color: var(--color-success-light);
}
.wallet-icon.unverified {
  background: rgba(107, 114, 128, 0.15);
  color: var(--text-secondary);
}
.wallet-status h3 {
  font-size: 1.1rem;
  font-weight: 700;
}
.wallet-status p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.wallet-details {
  padding: 1.5rem 2rem;
}
.wallet-detail-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.9rem;
}
.wallet-detail-item:last-child {
  border-bottom: none;
}
.wallet-detail-label {
  color: var(--text-secondary);
}
.wallet-detail-value {
  font-weight: 500;
  word-break: break-all;
  text-align: right;
  max-width: 60%;
}
.wallet-actions {
  display: flex;
  gap: 1rem;
  padding: 1rem 2rem 1.5rem;
}
.wallet-error {
  padding: 2rem;
  text-align: center;
}

/* CTA Section */
.verify-cta {
  text-align: center;
  padding: 5rem 0;
  background: rgba(59, 139, 196, 0.03);
}
@media (max-width: 639px) {
  .verify-cta { background: rgba(59, 139, 196, 0.06); }
}
.verify-cta .section-body {
  margin: 0 auto 2rem;
}
.verify-cta__note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* Open Source Section */
.open-source-section {
  text-align: center;
}
.open-source-section .section-body {
  margin: 0 auto;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
  .verify-hero { padding: 4rem 0 2rem; }
  .verify-hero h1 { font-size: 2rem; }

  .dropzone {
    padding: 2rem 1rem;
  }
  .progress-steps {
    gap: 0.5rem;
  }
  .step-label {
    font-size: 0.65rem;
  }
  .result-actions,
  .wallet-actions {
    flex-direction: column;
  }
  .metadata-grid {
    grid-template-columns: 1fr;
  }
}
