/* Meatingplace Social Content Review Tool */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f6f8;
  color: #1B2A4A;
  min-height: 100vh;
}

/* ── Header ─────────────────────────────────────────── */
.header {
  background: #1B2A4A;
  color: white;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header h1 { font-size: 18px; font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 16px; }
.header input[type="date"] {
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 14px;
}
.header input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); }
.batch-summary {
  font-size: 12px;
  opacity: 0.7;
}
.reviewer-name {
  font-size: 12px;
  opacity: 0.8;
  cursor: pointer;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
}
.reviewer-name:hover { border-color: rgba(255,255,255,0.5); }

/* ── Tabs ───────────────────────────────────────────── */
.tabs {
  background: #fff;
  border-bottom: 2px solid #e5e7eb;
  padding: 0 32px;
  display: flex;
  gap: 0;
  position: sticky;
  top: 54px;
  z-index: 99;
}
.tab {
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.tab.active { color: #1B2A4A; border-bottom-color: #3A6EA5; }
.tab:hover { color: #1B2A4A; }
.tab-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: #e5e7eb;
  color: #666;
}
.tab.active .tab-badge { background: #3A6EA5; color: white; }

/* ── Main Content ───────────────────────────────────── */
.main {
  max-width: 840px;
  margin: 24px auto;
  padding: 0 24px;
}
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: #999;
}
.empty-state h2 { font-size: 18px; margin-bottom: 8px; color: #666; }
.empty-state p { font-size: 14px; }

/* ── Post Card ──────────────────────────────────────── */
.post-card {
  background: white;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #e8e8e8;
  transition: border-color 0.2s;
}
.post-card:hover { border-color: #d0d0d0; }
.post-card.approved { border-left: 4px solid #27ae60; }
.post-card.rejected { border-left: 4px solid #e74c3c; }

/* Card Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.platform-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
}
.platform-badge.linkedin { background: #0077B5; color: white; }
.platform-badge.twitter { background: #1a1a1a; color: white; }
.platform-badge.newsmakers { background: #1B2A4A; color: white; }

/* Status Toggle */
.status-toggle {
  display: flex;
  gap: 4px;
}
.status-btn {
  padding: 5px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  background: white;
  color: #666;
  transition: all 0.15s;
}
.status-btn:hover { border-color: #999; }
.status-btn.active.draft { background: #6b7280; color: white; border-color: #6b7280; }
.status-btn.active.approved { background: #27ae60; color: white; border-color: #27ae60; }
.status-btn.active.rejected { background: #e74c3c; color: white; border-color: #e74c3c; }

/* Editable Body */
.post-body {
  font-size: 14px;
  line-height: 1.65;
  color: #333;
  white-space: pre-wrap;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  min-height: 80px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.post-body:hover { border-color: #e5e7eb; background: #fafafa; }
.post-body:focus { border-color: #3A6EA5; background: #f8faff; }
.save-indicator {
  font-size: 11px;
  color: #27ae60;
  margin-top: 4px;
  opacity: 0;
  transition: opacity 0.3s;
}
.save-indicator.visible { opacity: 1; }
.save-indicator.saving { color: #f59e0b; }

/* ── Data Audit Section ─────────────────────────────── */
.data-audit {
  margin-top: 16px;
  border-top: 1px solid #f0f0f0;
  padding-top: 16px;
}
.section-toggle {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  margin-bottom: 12px;
}
.section-toggle .arrow {
  font-size: 10px;
  transition: transform 0.2s;
  display: inline-block;
}
.section-toggle .arrow.open { transform: rotate(90deg); }
.audit-progress {
  font-size: 11px;
  color: #888;
  font-weight: 400;
  margin-left: 8px;
}
.audit-progress.complete { color: #27ae60; }

.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.audit-table th {
  text-align: left;
  padding: 6px 10px;
  background: #f8f9fa;
  color: #666;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  border-bottom: 1px solid #e5e7eb;
}
.audit-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.audit-table tr.verified { background: #f0fdf4; }
.audit-table tr.unverified { background: #fffbeb; }
.audit-table a { color: #3A6EA5; text-decoration: none; font-weight: 500; }
.audit-table a:hover { text-decoration: underline; }
.verify-check {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #27ae60;
}

/* ── Screenshot Instructions ────────────────────────── */
.screenshot-section {
  margin-top: 12px;
}
.screenshot-content {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  font-style: italic;
  white-space: pre-wrap;
}

/* ── Comments ───────────────────────────────────────── */
.comments-section {
  margin-top: 16px;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}
.comment {
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}
.comment:last-child { border-bottom: none; }
.comment-meta {
  font-size: 11px;
  color: #999;
  margin-bottom: 4px;
}
.comment-meta strong { color: #555; }
.comment-body {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}
.add-comment {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.add-comment textarea {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 36px;
  max-height: 120px;
}
.add-comment textarea:focus { outline: none; border-color: #3A6EA5; }
.add-comment button {
  padding: 8px 16px;
  background: #3A6EA5;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  align-self: flex-end;
}
.add-comment button:hover { background: #2d5a8a; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 640px) {
  .header { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
  .tabs { padding: 0 16px; overflow-x: auto; }
  .main { padding: 0 12px; margin: 16px auto; }
  .post-card { padding: 16px; }
  .card-header { flex-wrap: wrap; gap: 8px; }
}
