/**
 * ClipNeat V16.0 — AI Marketing OS Styles
 *
 * 1. Remove duplicate nav visual artifacts
 * 2. 3-panel Create workspace layout
 * 3. Campaign Dashboard
 * 4. Asset intelligence panel
 * 5. Agent workflow panel
 * 6. Context hints
 */

/* ── 1. HARD KILL duplicate nav ───────────────────────────── */
.cn88-create-types,
#cn88-content-types,
#cn88-project-strip {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Ensure only .cn8-create-formats is visible */
[data-view="create"] .cn8-page-head .cn8-create-formats {
  display: flex !important;
}

/* ── 2. 3-PANEL CREATE WORKSPACE ──────────────────────────── */
.v16-three-panel {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  min-height: calc(100vh - 180px);
}

@media (min-width: 1200px) {
  .v16-three-panel {
    grid-template-columns: 220px 200px 1fr;
  }
}

@media (max-width: 900px) {
  .v16-three-panel {
    grid-template-columns: 1fr;
  }
}

/* Workflow panel (center on wide, stacked on narrow) */
.v16-workflow-panel {
  padding: 20px 16px;
  border-right: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.15);
}

.v16-workflow-header small {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
}

.v16-workflow-header h3 {
  font-size: 14px;
  margin: 4px 0 16px;
  font-weight: 600;
}

/* Agent step items */
.v16-agent-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  transition: background 0.2s, opacity 0.2s;
}

.v16-agent-step.v16-state-idle { opacity: 0.5; }
.v16-agent-step.v16-state-working {
  background: rgba(99,179,237,0.12);
  opacity: 1;
}
.v16-agent-step.v16-state-completed {
  opacity: 0.7;
}
.v16-agent-step.v16-state-waiting {
  background: rgba(236,201,75,0.1);
  opacity: 0.8;
}
.v16-agent-step.v16-state-failed {
  background: rgba(245,101,101,0.1);
  opacity: 1;
}

.v16-step-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  font-size: 13px;
  flex-shrink: 0;
}

.v16-state-working .v16-step-icon {
  background: rgba(99,179,237,0.25);
  animation: v16pulse 1.5s ease-in-out infinite;
}

.v16-state-completed .v16-step-icon {
  background: rgba(72,187,120,0.25);
  color: #48bb78;
}

.v16-state-failed .v16-step-icon {
  background: rgba(245,101,101,0.25);
  color: #f56565;
}

@keyframes v16pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.v16-step-info {
  flex: 1;
  min-width: 0;
}

.v16-step-info b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.v16-step-info small {
  font-size: 11px;
  opacity: 0.5;
}

.v16-step-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  white-space: nowrap;
}

.v16-step-status[data-v16-status="working"] {
  background: rgba(99,179,237,0.2);
  color: #63b3ed;
}

.v16-step-status[data-v16-status="completed"] {
  background: rgba(72,187,120,0.2);
  color: #48bb78;
}

.v16-step-status[data-v16-status="failed"] {
  background: rgba(245,101,101,0.2);
  color: #f56565;
}

/* ── 3. ASSET INTELLIGENCE ────────────────────────────────── */
.v16-asset-intel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.v16-intel-header small {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
}

.v16-intel-header h3 {
  font-size: 13px;
  margin: 4px 0 12px;
  font-weight: 600;
}

.v16-asset-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
}

.v16-asset-item span {
  width: 18px;
  text-align: center;
  font-weight: 700;
}

.v16-asset-item.v16-has span { color: #48bb78; }
.v16-asset-item.v16-missing span { color: #f56565; }
.v16-asset-item.v16-missing b { opacity: 0.6; }

.v16-asset-item em {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(245,101,101,0.15);
  color: #f56565;
  font-style: normal;
}

.v16-asset-good {
  font-size: 12px;
  color: #48bb78;
  margin-top: 8px;
}

.v16-asset-hint {
  font-size: 12px;
  opacity: 0.5;
  margin-top: 8px;
}

/* ── 4. CONTEXT HINT (below creative brief) ───────────────── */
.v16-context-hint {
  margin-top: 8px;
  padding: 0;
}

.v16-context-hint:empty { display: none; }

.v16-context-hint small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 6px;
}

.v16-context-hint span {
  display: block;
  font-size: 12px;
  padding: 4px 0;
  opacity: 0.7;
  line-height: 1.4;
}

.v16-context-hint span b {
  color: #63b3ed;
  font-weight: 600;
}

/* ── 5. CAMPAIGN DASHBOARD ────────────────────────────────── */
.v16-campaign-dashboard {
  margin-bottom: 20px;
}

.v16-dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.v16-dash-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 20px;
}

.v16-dash-panel small {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.4;
}

.v16-dash-panel h3 {
  font-size: 16px;
  margin: 4px 0 12px;
  font-weight: 600;
}

.v16-dash-panel p {
  font-size: 13px;
  opacity: 0.7;
  margin: 4px 0;
  line-height: 1.5;
}

.v16-dash-metrics {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.v16-dash-metrics article {
  text-align: center;
}

.v16-dash-metrics b {
  display: block;
  font-size: 22px;
  font-weight: 700;
}

.v16-dash-metrics span {
  font-size: 11px;
  opacity: 0.5;
}

/* Research cards */
.v16-research-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v16-research-cards article {
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
}

.v16-research-cards article small {
  font-size: 9px;
  opacity: 0.35;
}

.v16-research-cards article b {
  display: block;
  font-size: 13px;
  margin: 2px 0 4px;
}

.v16-research-cards article p {
  font-size: 12px;
  margin: 0;
  opacity: 0.6;
  line-height: 1.4;
}

/* Agent timeline */
.v16-agent-timeline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.v16-timeline-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
}

.v16-timeline-item.v16-state-working {
  background: rgba(99,179,237,0.1);
}

.v16-timeline-item.v16-state-completed {
  opacity: 0.6;
}

.v16-timeline-item.v16-state-failed {
  background: rgba(245,101,101,0.08);
}

.v16-timeline-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
}

.v16-state-completed .v16-timeline-icon { color: #48bb78; }
.v16-state-working .v16-timeline-icon { color: #63b3ed; }
.v16-state-failed .v16-timeline-icon { color: #f56565; }

.v16-timeline-item b {
  font-weight: 600;
  flex: 1;
}

.v16-timeline-item small {
  opacity: 0.5;
}

/* Live feed */
.v16-live-feed {
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.v16-live-feed small {
  display: block;
  margin-bottom: 8px;
}

.v16-feed-item {
  padding: 6px 0;
  font-size: 12px;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.v16-feed-item b {
  font-size: 11px;
  opacity: 0.6;
  margin-right: 6px;
}

.v16-muted {
  font-size: 13px;
  opacity: 0.4;
  font-style: italic;
}

/* ── 6. ASSET SUGGESTION (post-generation) ────────────────── */
.v16-asset-suggestion {
  margin-top: 16px;
  padding: 16px;
  background: rgba(99,179,237,0.06);
  border: 1px solid rgba(99,179,237,0.15);
  border-radius: 10px;
}

.v16-suggestion-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.v16-suggestion-head span {
  font-size: 18px;
  opacity: 0.6;
}

.v16-suggestion-head b {
  display: block;
  font-size: 13px;
}

.v16-suggestion-head p {
  font-size: 12px;
  opacity: 0.6;
  margin: 2px 0 0;
}

.v16-asset-suggestion ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.v16-asset-suggestion li {
  margin: 4px 0;
}

.v16-upload-hint {
  background: none;
  border: none;
  color: #63b3ed;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-decoration-style: dotted;
}

.v16-upload-hint:hover {
  color: #90cdf4;
}

.v16-loading {
  font-size: 12px;
  opacity: 0.4;
  font-style: italic;
}

/* ── Responsive adjustments ───────────────────────────────── */
@media (max-width: 900px) {
  .v16-workflow-panel {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 12px 16px;
  }

  .v16-agent-steps {
    display: flex;
    overflow-x: auto;
    gap: 4px;
  }

  .v16-agent-step {
    flex-direction: column;
    text-align: center;
    min-width: 80px;
    padding: 8px;
  }

  .v16-dash-grid {
    grid-template-columns: 1fr;
  }
}
