/* MixCopy — app styles */

/* Tailwind v3 class aliases missing from the v2 build we bundle */
.shrink-0   { flex-shrink: 0; }
.shrink     { flex-shrink: 1; }
.grow       { flex-grow: 1; }
.grow-0     { flex-grow: 0; }
.min-h-0    { min-height: 0; }
.basis-0    { flex-basis: 0; }
.line-clamp-1 { overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:1; }
.line-clamp-2 { overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.truncate   { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.break-words { overflow-wrap:break-word; }
.select-none { user-select:none; }

/* Sidebar links */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  color: #9ca3af;
  font-size: 0.875rem;
  transition: background 0.1s, color 0.1s;
}
.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #4f46e5;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: #4338ca; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
}
.btn-secondary:hover { background: #f9fafb; border-color: #9ca3af; }
.btn-secondary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-danger {
  display: inline-flex;
  align-items: center;
  background: #ef4444;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-danger:hover { background: #dc2626; }

.btn-ai {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-ai:hover { opacity: 0.9; }
.btn-ai:disabled { opacity: 0.5; cursor: not-allowed; }

/* Form elements */
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}
.form-input,
.form-select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus,
.form-select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
textarea.form-input { resize: vertical; }

/* Status badges */
.status-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.status-draft      { background: #f3f4f6; color: #6b7280; }
.status-review     { background: #fef3c7; color: #92400e; }
.status-published  { background: #d1fae5; color: #065f46; }
.status-scheduled  { background: #dbeafe; color: #1e40af; }
.status-super_admin,.status-agency { background: #ede9fe; color: #5b21b6; }
.status-editor     { background: #f3f4f6; color: #374151; }
.status-viewer     { background: #f9fafb; color: #9ca3af; }

/* Platform variant tabs */
.tab-btn {
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  transition: color 0.1s, border-color 0.1s;
}
.tab-btn:hover   { color: #111827; }
.tab-btn.tab-active { color: #4f46e5; border-bottom-color: #4f46e5; }

/* EasyMDE overrides */
.EasyMDEContainer .CodeMirror {
  border-radius: 0 0 8px 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
}
.editor-toolbar {
  border-radius: 8px 8px 0 0;
}

/* Image card drag handle */
.image-card { cursor: grab; }
.image-card:active { cursor: grabbing; opacity: 0.8; }

/* Scrollbar (webkit) */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
