/* ============================================================
   Review page styles — extends style.css
   ============================================================ */

.review-app { max-width: 900px; }

.review-title {
  font-family: var(--font-display);
  font-weight: 600; font-size: 28px;
  letter-spacing: -0.015em;
  margin: 8px 0 4px;
}
.review-sub {
  margin: 0 0 24px;
  color: var(--ink-3); font-size: 14px;
}

/* ----- Filter bar ----- */
.filter-bar {
  display: flex; gap: 12px; align-items: end;
  margin-bottom: 16px; flex-wrap: wrap;
}
.filter {
  display: flex; flex-direction: column; gap: 4px;
  flex: 1; min-width: 180px;
}
.filter-label {
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
  font-weight: 500;
}
.filter select {
  appearance: none;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 9px 36px 9px 12px;
  font-size: 14px; color: var(--ink);
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888892' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
}

/* ----- Tabs ----- */
.tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
}
.tab {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 16px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.tab:hover  { color: var(--ink-2); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.tab-badge {
  background: var(--border);
  color: var(--ink-2);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}
.tab.active .tab-badge { background: var(--accent-bg); color: var(--accent-2); }

/* ----- Card list ----- */
.card-list { display: flex; flex-direction: column; gap: 16px; }

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-1);
}

.card-header {
  display: flex; gap: 14px; align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.card-header.head-conflict { background: var(--danger-bg); }
.card-header.head-cross    { background: var(--warn-bg); }
.card-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  flex-shrink: 0;
}
.card-icon.conflict { background: var(--danger); }
.card-icon.cross    { background: var(--warn); }
.card-title {
  margin: 0; font-family: var(--font-display);
  font-weight: 600; font-size: 17px;
  letter-spacing: -0.01em;
}
.card-subtitle {
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-2);
  font-weight: 500;
}

.card-meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-size: 12px; color: var(--ink-3);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.card-meta strong { color: var(--ink-2); font-weight: 500; }

.card-body { font-size: 14px; line-height: 1.5; }

.comparison {
  display: grid; gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin: 12px 0;
}
.comparison-single { grid-template-columns: 1fr; }

.comp-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--bg);
}
.comp-card.danger { border-color: var(--danger); background: #FFF7F7; }
.comp-card.warn   { border-color: var(--warn);   background: #FFFBF0; }

.comp-card h4 {
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600;
  margin: 0 0 10px;
}
.comp-card.danger h4 { color: var(--danger); }
.comp-card.warn   h4 { color: var(--warn); }

.kv-list { margin: 0; padding: 0; }
.kv-row {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 10px; padding: 4px 0; font-size: 13px;
}
.kv-row dt {
  margin: 0;
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: center;
  font-weight: 500;
}
.kv-row dd { margin: 0; color: var(--ink); word-break: break-word; }

/* Photo strip */
.photos {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 12px;
}
.photo-thumb {
  width: 80px; height: 80px;
  border-radius: var(--radius-sm);
  background-size: cover; background-position: center;
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  transition: transform 0.1s;
}
.photo-thumb:hover { transform: scale(1.05); border-color: var(--accent); }
.photo-thumb.empty {
  background: var(--bg);
  cursor: default;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--ink-3);
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.photo-label {
  position: absolute; bottom: 4px; left: 4px;
  background: rgba(14,14,15,0.7);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-actions {
  display: flex; gap: 8px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--border);
  justify-content: flex-end;
}

/* ----- Exports list ----- */
.exports-list {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.export-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 14px 16px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.export-row:last-child { border-bottom: none; }
.export-name {
  font-family: var(--font-mono);
  font-size: 12px;
  word-break: break-all;
}
.export-meta {
  font-size: 11px;
  color: var(--ink-3);
}
.export-actions { display: flex; gap: 6px; }
.export-row .btn-sm { padding: 6px 10px; font-size: 12px; }

/* ----- Empty states ----- */
.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--ink-3); font-size: 14px;
  background: var(--surface);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-lg);
}

/* ----- Lightbox ----- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(14,14,15,0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.lightbox img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* ----- Dialog ----- */
.dialog-backdrop {
  position: fixed; inset: 0;
  background: rgba(14,14,15,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 1001;
  padding: 20px;
}
.dialog {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 480px; width: 100%;
  box-shadow: 0 20px 50px rgba(14,14,15,0.25);
}
.dialog h3 {
  font-family: var(--font-display);
  font-weight: 600; font-size: 22px;
  margin: 0 0 8px;
}
.dialog p {
  color: var(--ink-2); font-size: 14px;
  margin: 0 0 16px;
}
.checkbox-row {
  display: flex; gap: 10px; align-items: center;
  margin: 14px 0 0;
  font-size: 13px; color: var(--ink-2);
  cursor: pointer;
}
.checkbox-row input { width: 18px; height: 18px; }
.dialog-actions {
  display: flex; gap: 8px; justify-content: flex-end;
  margin-top: 20px;
}

.back-link {
  text-align: center; margin: 16px 0 0;
  font-size: 13px;
}
.back-link a { color: var(--accent); text-decoration: none; }
.back-link a:hover { text-decoration: underline; }

/* ----- Mobile ----- */
@media (max-width: 600px) {
  .comparison       { grid-template-columns: 1fr; }
  .card-meta        { flex-direction: column; gap: 4px; }
  .export-row       { grid-template-columns: 1fr; gap: 6px; }
  .export-actions   { justify-content: flex-start; }
  .kv-row           { grid-template-columns: 80px 1fr; gap: 8px; }
}
