/* Campaign Wireframe Styles */
/* Grid layout — all posts/emails visible at once */

.wire-canvas {
  max-width: 700px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding: 8px 0;
}

/* Section Labels */
.wire-section-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 16px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wire-count {
  font-weight: 400;
  color: rgba(255,255,255,0.2);
  font-variant-numeric: tabular-nums;
}

/* ========================= */
/* Post Grid (LinkedIn)      */
/* ========================= */
.wire-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

/* ========================= */
/* Email Flow (vertical)     */
/* ========================= */
.wire-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wire-flow-connector {
  display: flex;
  justify-content: center;
  padding: 2px 0;
}

/* ========================= */
/* Cards — compact & expand  */
/* ========================= */
.wire-card {
  background: #1b1f23;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  overflow: hidden;
}

.wire-card:hover {
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.wire-card-expanded {
  cursor: default;
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
  grid-column: 1 / -1; /* take full width when expanded */
}

/* Card Header */
.wire-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.wire-day {
  font-size: 11px;
  font-weight: 700;
  color: #6366f1;
  min-width: 28px;
}

.wire-card-type {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wire-char {
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wire-char.over {
  color: #ef4444;
  font-weight: 600;
}

.wire-collapse-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
}

.wire-collapse-btn:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
}

/* Compact card preview */
.wire-card-preview {
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.55);
  max-height: 72px;
  overflow: hidden;
}

.wire-hashtags-preview {
  padding: 2px 12px 8px;
  font-size: 11px;
  color: rgba(99, 102, 241, 0.5);
}

/* Email compact subject */
.wire-email-subject-preview {
  padding: 6px 12px 0;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wire-email-cta-preview {
  padding: 4px 12px;
  font-size: 11px;
  color: rgba(99, 102, 241, 0.5);
  font-weight: 500;
}

/* Card footer (compact) */
.wire-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* Expanded card body */
.wire-card-body {
  padding: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  min-height: 100px;
  outline: none;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}

.wire-card-body:focus {
  border-color: rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.02);
}

.wire-card-body p {
  margin-bottom: 8px;
}

.wire-card-body p:last-child {
  margin-bottom: 0;
}

/* Expanded hashtags */
.wire-hashtags {
  padding: 4px 12px 8px;
  font-size: 13px;
  color: #6366f1;
  font-weight: 500;
  outline: none;
}

/* Email fields (expanded) */
.wire-email-field {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
}

.wire-email-label {
  color: rgba(255,255,255,0.3);
  font-weight: 500;
  min-width: 50px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.wire-email-value {
  color: rgba(255,255,255,0.85);
  outline: none;
  flex: 1;
  padding: 2px 4px;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: border-color 0.15s;
}

.wire-email-value:focus {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.05);
}

/* Card actions (expanded) */
.wire-card-actions {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Buttons */
.wire-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.wire-btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
}

.wire-btn-sm {
  display: flex;
  align-items: center;
  padding: 3px 6px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.15s;
}

.wire-btn-sm:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
}

/* ========================= */
/* Meta Cards (strategy/cal) */
/* ========================= */
.wire-meta-card {
  background: #1b1f23;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 4px;
}

.wire-meta-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
}

.wire-meta-head .wire-btn-sm {
  margin-left: auto;
}

.wire-meta-body {
  padding: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  outline: none;
  max-height: 300px;
  overflow-y: auto;
}

.wire-meta-body:focus {
  background: rgba(99, 102, 241, 0.02);
}

.wire-meta-body p {
  margin: 0 0 6px;
}

.wire-meta-body ul {
  margin: 0 0 8px;
  padding-left: 16px;
  list-style: none;
}

/* Meta section headers (ALL-CAPS lines) */
.wire-meta-section-header {
  font-size: 11px;
  font-weight: 700;
  color: rgba(99, 102, 241, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 12px 0 4px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.wire-meta-section-header:first-child {
  margin-top: 0;
}

/* Meta bullet items */
.wire-meta-bullet {
  position: relative;
  padding-left: 12px;
  margin-bottom: 3px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.65);
}

.wire-meta-bullet::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: rgba(99, 102, 241, 0.45);
}

/* ========================= */
/* Inline Regen Input (Fix 4)*/
/* ========================= */
.wire-regen-input {
  padding: 8px 12px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wire-regen-field {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.05);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.wire-regen-field:focus {
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(99, 102, 241, 0.08);
}

.wire-regen-field::placeholder {
  color: rgba(255,255,255,0.3);
}

.wire-regen-actions {
  display: flex;
  gap: 6px;
}

/* ========================= */
/* Email HTML Body (Fix 2)   */
/* ========================= */
.wire-email-html-body {
  padding: 12px;
  background: #fff;
  border-radius: 4px;
  margin: 8px 12px;
  overflow-x: auto;
}

/* Empty State */
.wire-empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255,255,255,0.25);
  font-size: 14px;
}
