/* ═══════════════════════════════════════════════════════
   REVIEW & APPROVAL — full styling (.rv-* prefix)
═══════════════════════════════════════════════════════ */

.rv-shell {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: var(--bg);
  color: var(--text);
}

/* ── Header ──────────────────────────────────────── */
.rv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  flex-shrink: 0;
  gap: 20px;
}
.rv-header-left  { display: flex; align-items: center; gap: 20px; flex: 1; min-width: 0; }
.rv-header-right { display: flex; gap: 6px; align-items: center; }
.rv-title { font-size: 16px; font-weight: 700; color: var(--text); white-space: nowrap; }

.rv-stats {
  display: flex;
  gap: 6px;
}
.rv-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.rv-stat:hover { border-color: var(--accent); }
.rv-stat.active {
  background: var(--surface);
  border-color: #f59e0b;
}
.rv-stat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.rv-stat-num { font-size: 13px; font-weight: 700; color: var(--text); }
.rv-stat-lbl { font-size: 10px; color: var(--muted); }

.rv-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 200px;
}
.rv-search svg { color: var(--muted); }
.rv-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
}

.rv-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface3);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.rv-btn:hover { background: var(--surface); border-color: var(--accent); }
.rv-btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: transparent;
  color: #fff;
}
.rv-btn-ghost { padding: 7px 10px; color: var(--muted2); }

/* ── Body (2-pane) ──────────────────────────────── */
.rv-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 340px 1fr;
  overflow: hidden;
}

/* ── Queue (sol) ────────────────────────────────── */
.rv-queue {
  border-right: 1px solid var(--border);
  background: var(--surface2);
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rv-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: background .12s, border-color .12s, transform .08s;
}
.rv-item:hover { background: var(--surface3); border-color: var(--muted); }
.rv-item.selected {
  background: rgba(245, 158, 11, 0.08);
  border-color: #f59e0b;
}
.rv-item-thumb {
  width: 70px;
  height: 50px;
  border-radius: 6px;
  background: var(--surface3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--muted);
  flex-shrink: 0;
}
.rv-item-status {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  border: 2px solid var(--surface2);
  font-weight: 700;
}
.rv-item-info { flex: 1; min-width: 0; }
.rv-item-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rv-item-meta {
  display: flex;
  gap: 4px;
  margin-top: 3px;
  flex-wrap: wrap;
}
.rv-meta-tag, .rv-meta-ver {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--surface3);
  color: var(--muted2);
}
.rv-meta-ver {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  font-weight: 700;
}
.rv-item-foot {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  align-items: center;
}
.rv-priority { font-size: 10px; font-weight: 600; }
.rv-comments-n { font-size: 10px; color: var(--muted); }

/* ── Detail (sağ) ──────────────────────────────── */
.rv-detail {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  min-height: 0;
  overflow-y: auto;
}
.rv-detail-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
}
.rv-detail-empty-title { font-size: 18px; font-weight: 700; color: var(--text); }
.rv-detail-empty-sub { font-size: 13px; color: var(--muted); }

.rv-detail-head {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  position: relative;
}
.rv-detail-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.rv-detail-meta {
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: var(--muted2);
  margin-top: 4px;
}
.rv-status-badge {
  position: absolute;
  top: 16px;
  right: 24px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid;
  font-size: 11px;
  font-weight: 700;
}

.rv-detail-media {
  background: #000;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.rv-no-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
  padding: 20px;
}
.rv-no-media-sub {
  font-size: 11px;
  color: var(--muted);
  max-width: 340px;
  opacity: 0.7;
}

/* ── Action buttons ─────────────────────────────── */
.rv-actions {
  display: flex;
  gap: 8px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.rv-act-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface3);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .12s, transform .08s;
}
.rv-act-btn:hover { transform: translateY(-1px); }
.rv-act-btn:active { transform: translateY(0); }
.rv-act-btn.approve { background: #22c55e; color: #fff; border-color: transparent; }
.rv-act-btn.approve:hover { background: #16a34a; }
.rv-act-btn.changes { background: #8b5cf6; color: #fff; border-color: transparent; }
.rv-act-btn.changes:hover { background: #7c3aed; }
.rv-act-btn.reject  { background: #ef4444; color: #fff; border-color: transparent; }
.rv-act-btn.reject:hover  { background: #dc2626; }
.rv-act-btn.delete  { background: transparent; color: var(--muted); margin-left: auto; padding: 9px 12px; }
.rv-act-btn.delete:hover  { background: rgba(239, 68, 68, 0.1); color: #ef4444; border-color: #ef4444; }

/* ── Comments ───────────────────────────────────── */
.rv-comments {
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
  flex: 1;
}
.rv-comments-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rv-comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rv-no-comments {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

.rv-comment {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
}
.rv-comment.is-status {
  background: rgba(245, 158, 11, 0.06);
}
.rv-comment-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rv-comment-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rv-comment-meta { flex: 1; }
.rv-comment-author { font-size: 12px; font-weight: 600; color: var(--text); }
.rv-comment-time { font-size: 10px; color: var(--muted); margin-top: 1px; }
.rv-comment-frame {
  font-size: 10px;
  padding: 2px 7px;
  background: var(--surface3);
  color: var(--accent);
  border-radius: 4px;
  font-family: 'SF Mono', 'Menlo', monospace;
}
.rv-comment-del {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity .12s, color .12s;
}
.rv-comment:hover .rv-comment-del { opacity: 1; }
.rv-comment-del:hover { color: #ef4444; }
.rv-comment-text {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
}

.rv-comment-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 8px;
}
.rv-comment-form textarea {
  flex: 1;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  padding: 8px 12px;
  resize: vertical;
  outline: none;
  min-height: 60px;
}
.rv-comment-form textarea:focus { border-color: #f59e0b; }
.rv-comment-form button {
  align-self: flex-end;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}
.rv-comment-form button:hover { background: linear-gradient(135deg, #d97706, #b45309); }

/* ── Placeholders ───────────────────────────────── */
.rv-placeholder, .rv-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}
.rv-empty-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.rv-empty-sub { font-size: 12px; color: var(--muted); }

/* ── App switcher button rengi (amber) ─────────── */
.app-sw-review.app-sw-active {
  background: rgba(245, 158, 11, .1);
  border-color: rgba(245, 158, 11, .35);
  color: #fbbf24;
}
