/* Creator Cockpit — mobile-first */

:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-2: #1f2937;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --primary: #2ea043;
  --danger: #da3633;
  --warning: #d29922;
  --info: #58a6ff;
  --score-bg: linear-gradient(135deg, #2ea043 0%, #58a6ff 100%);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
  min-height: 100vh;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

header h1 {
  font-size: 1.25rem;
  font-weight: 600;
}

header .badge {
  background: var(--surface-2);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--muted);
}

.empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
}

.empty .emoji { font-size: 3rem; margin-bottom: 16px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, border-color 0.15s;
}

.card:active { transform: scale(0.98); }
.card:hover { border-color: var(--info); }

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.card-head h2 {
  font-size: 1.125rem;
  font-weight: 600;
}

.card-head .perfil {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 2px;
}

.score {
  background: var(--score-bg);
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.score.low { background: var(--danger); }
.score.mid { background: var(--warning); }
.score.high { background: var(--primary); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag {
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.section h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 8px;
}

.section .row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.section .row .key { color: var(--muted); }
.section .row .val { font-weight: 500; }

.actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 16px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.btn {
  padding: 16px;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s;
  font-family: inherit;
}

.btn:active { transform: scale(0.96); }

.btn-approve { background: var(--primary); color: white; }
.btn-reject  { background: var(--danger); color: white; }
.btn-talk    { background: var(--info); color: white; }

.back-link {
  display: inline-block;
  color: var(--info);
  text-decoration: none;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-2);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  z-index: 100;
  animation: slideUp 0.2s;
}

@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.placeholder {
  color: var(--muted);
  font-style: italic;
  font-size: 0.85rem;
}
