/* AI Image Detector — v12 Nine Purple Noble Theme */

/* Header layout */
.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.back-link {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-light);
  text-decoration: none;
  transition: transform 0.15s;
}

.back-link:hover {
  transform: scale(1.03);
}

/* Privacy notice */
.privacy-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,230,118,0.08);
  border: 1px solid rgba(0,230,118,0.25);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--safe);
}

.privacy-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Drop zone */
.drop-zone {
  border: 2px dashed var(--primary-light);
  border-radius: 28px;
  padding: 56px 20px;
  text-align: center;
  cursor: pointer;
  background: var(--surface);
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--primary-light);
  background: var(--surface-hover);
  transform: scale(1.02);
  box-shadow: 0 0 24px var(--accent-glow), var(--shadow-hover);
}

.drop-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
  display: block;
  animation: bear-wave 2s ease-in-out infinite;
}

@keyframes bear-wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

.drop-zone p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.drop-hint {
  font-size: 0.85rem !important;
  margin-top: 6px;
}

/* Result area */
#result-area {
  margin-top: 20px;
}

/* Analyzing indicator */
.analyzing-indicator {
  text-align: center;
  padding: 32px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  animation: pulse-analyze 1.2s ease infinite;
}

@keyframes pulse-analyze {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Result header */
.result-header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.result-preview {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-input);
  border: 2px solid var(--border);
  flex-shrink: 0;
}

/* Verdict box */
.verdict-box {
  flex: 1;
  padding: 20px 24px;
  border-radius: var(--radius);
  text-align: center;
}

.verdict-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.verdict-text {
  font-size: 1.1rem;
  font-weight: 800;
}

.verdict-real {
  background: rgba(112,184,112,0.1);
  border: 2px solid rgba(112,184,112,0.3);
  color: var(--safe);
}

.verdict-suspect {
  background: rgba(216,176,80,0.1);
  border: 2px solid rgba(216,176,80,0.3);
  color: var(--caution);
}

.verdict-confirmed {
  background: rgba(208,112,112,0.1);
  border: 2px solid rgba(208,112,112,0.3);
  color: var(--warning);
}

.verdict-unknown {
  background: var(--surface-hover);
  border: 2px solid var(--border);
  color: var(--text-muted);
}

/* Evidence section */
.evidence-section {
  margin: 20px 0;
}

.evidence-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.evidence-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.evidence-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-input);
  font-size: 0.85rem;
  line-height: 1.5;
}

.evidence-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  margin-top: 5px;
}

.evidence-ai {
  background: rgba(208,112,112,0.08);
  color: var(--warning);
}

.evidence-ai .evidence-dot { background: var(--warning); }

.evidence-suspect {
  background: rgba(216,176,80,0.08);
  color: var(--caution);
}

.evidence-suspect .evidence-dot { background: var(--caution); }

.evidence-real {
  background: rgba(112,184,112,0.08);
  color: var(--safe);
}

.evidence-real .evidence-dot { background: var(--safe); }

.evidence-neutral {
  background: var(--surface-hover);
  color: var(--text-muted);
}

.evidence-neutral .evidence-dot { background: var(--text-muted); }

/* Explanation */
.explain-section {
  margin: 20px 0;
  padding: 18px;
  background: var(--surface-hover);
  border-radius: var(--radius-input);
}

.explain-section h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.explain-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 10px;
}

.explain-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* Raw C2PA data */
.raw-data {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
}

.raw-data summary {
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
}

.raw-table {
  padding: 8px 16px 16px;
}

.raw-row {
  display: flex;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-size: 0.8rem;
}

.raw-key {
  font-weight: 600;
  color: var(--primary);
  min-width: 140px;
  flex-shrink: 0;
}

.raw-val {
  color: var(--text);
  word-break: break-all;
}

/* Error */
.error-msg {
  text-align: center;
  padding: 24px;
  color: var(--warning);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
  .header-left {
    gap: 6px;
  }
  .back-link {
    font-size: 1rem;
  }
  .drop-zone {
    padding: 36px 16px;
  }
  .result-header-row { flex-direction: column; text-align: center; }
  .result-preview { width: 100px; height: 100px; }
  .verdict-box { padding: 16px; }
  .evidence-item { padding: 8px 10px; font-size: 0.8rem; }
  .raw-key { min-width: 100px; }
}
