/* Projects collaboration hub — premium workspace (#ee3e96 → #f26e59) */

.infl-proj,
.infl-proj-modal-backdrop {
  --infl-pink: #ee3e96;
  --infl-orange: #f26e59;
  --infl-grad: linear-gradient(135deg, #ee3e96 0%, #f26e59 100%);
}

.infl-proj {
  --infl-bg: #f5f6fa;
  --infl-card: #ffffff;
  --infl-text: #111827;
  --infl-muted: #6b7280;
  --infl-border: #ececf1;
  --infl-shadow: 0 8px 30px rgba(17, 24, 39, 0.06);
  padding: 1.25rem 1.5rem 2rem;
  font-family: Inter, system-ui, sans-serif;
  color: var(--infl-text);
  min-height: 100%;
  background: var(--infl-bg);
}

body.infl-projects-workspace-active main.flex-1 > .p-6.space-y-6,
body.infl-projects-workspace-active main.flex-1 > div:not(#influnet-projects-workspace-mount),
body.infl-projects-workspace-active main.flex-1 > *:not(#influnet-projects-workspace-mount) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

#influnet-projects-workspace-mount {
  display: none;
  visibility: hidden;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  pointer-events: none;
}

body.infl-projects-workspace-active #influnet-projects-workspace-mount {
  display: block !important;
  visibility: visible !important;
  min-height: 100%;
  pointer-events: auto !important;
}

body.infl-influencer-messages-view #influnet-projects-workspace-mount,
body.infl-influencer-messages-view #influnet-influencer-dashboard-mount {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.infl-proj-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.infl-proj-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.infl-proj-head p {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--infl-muted);
}

.infl-proj-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  border-radius: 12px;
  padding: 0.6rem 1rem;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.infl-proj-btn:active {
  transform: scale(0.98);
}

.infl-proj-btn-primary {
  background: linear-gradient(135deg, #ee3e96 0%, #f26e59 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(238, 62, 150, 0.28);
}

.infl-proj-btn-primary:hover {
  background: linear-gradient(135deg, #e83690 0%, #ef6350 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(238, 62, 150, 0.35);
}

.infl-proj-btn-primary:disabled {
  opacity: 0.72;
  cursor: wait;
  color: #ffffff;
}

.infl-proj-btn-ghost {
  background: var(--infl-card);
  color: var(--infl-text);
  border: 1px solid var(--infl-border);
}

.infl-proj-section-title {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--infl-muted);
}

.infl-proj-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .infl-proj-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .infl-proj-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.infl-proj-card {
  background: var(--infl-card);
  border: 1px solid var(--infl-border);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: var(--infl-shadow);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.infl-proj-card:hover {
  border-color: rgba(238, 62, 150, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
}

.infl-proj-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.infl-proj-card-meta {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--infl-muted);
  line-height: 1.45;
}

.infl-proj-card-meta strong {
  color: var(--infl-text);
  font-weight: 600;
}

.infl-proj-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.infl-proj-badge-active {
  background: rgba(238, 62, 150, 0.12);
  color: #ee3e96;
}

.infl-proj-badge-done {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.infl-proj-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  gap: 0.5rem;
}

.infl-proj-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--infl-muted);
  font-size: 0.88rem;
  background: var(--infl-card);
  border: 1px dashed var(--infl-border);
  border-radius: 16px;
}

.infl-proj-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--infl-pink);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.infl-proj-hero {
  background: var(--infl-card);
  border: 1px solid var(--infl-border);
  border-radius: 20px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--infl-shadow);
}

.infl-proj-hero-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.infl-proj-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--infl-grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.infl-proj-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.infl-proj-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .infl-proj-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
  }
}

.infl-proj-panel {
  background: var(--infl-card);
  border: 1px solid var(--infl-border);
  border-radius: 18px;
  padding: 1.1rem 1.15rem;
  box-shadow: var(--infl-shadow);
  margin-bottom: 1rem;
}

.infl-proj-panel h3 {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 800;
}

.infl-proj-pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.infl-proj-pipeline li {
  position: relative;
  padding: 0 0 1rem 1.6rem;
}

.infl-proj-pipeline li::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 1.1rem;
  bottom: 0;
  width: 2px;
  background: var(--infl-border);
}

.infl-proj-pipeline li:last-child::before {
  display: none;
}

.infl-proj-pipeline-dot {
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid var(--infl-border);
  background: var(--infl-card);
}

.infl-proj-pipeline li.is-done .infl-proj-pipeline-dot {
  border-color: #10b981;
  background: #10b981;
}

.infl-proj-pipeline li.is-current .infl-proj-pipeline-dot {
  border-color: var(--infl-pink);
  background: var(--infl-pink);
  box-shadow: 0 0 0 4px rgba(238, 62, 150, 0.15);
}

.infl-proj-pipeline li.is-current .infl-proj-pipeline-label {
  color: var(--infl-pink);
  font-weight: 800;
}

.infl-proj-pipeline-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--infl-muted);
}

.infl-proj-pipeline li.is-done .infl-proj-pipeline-label {
  color: var(--infl-text);
}

.infl-proj-advance-wrap {
  margin-top: 0.5rem;
}

.infl-proj-activity {
  list-style: none;
  margin: 0;
  padding: 0;
}

.infl-proj-activity li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--infl-border);
}

.infl-proj-activity li:last-child {
  border-bottom: none;
}

.infl-proj-activity strong {
  display: block;
  font-size: 0.82rem;
}

.infl-proj-activity span {
  display: block;
  font-size: 0.78rem;
  color: var(--infl-muted);
  margin-top: 0.15rem;
}

.infl-proj-activity time {
  display: block;
  font-size: 0.68rem;
  color: var(--infl-muted);
  margin-top: 0.25rem;
}

.infl-proj-assets-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.infl-proj-asset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: #f9fafb;
  font-size: 0.78rem;
}

.infl-proj-asset-row a {
  color: var(--infl-pink);
  font-weight: 700;
  text-decoration: none;
}

.infl-proj-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.infl-proj-upload-row input[type="file"],
.infl-proj-upload-row input[type="url"],
.infl-proj-upload-row input[type="text"] {
  flex: 1;
  min-width: 140px;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--infl-border);
  border-radius: 10px;
  font-size: 0.78rem;
}

.infl-proj-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: infl-proj-fade-in 0.2s ease;
}

@keyframes infl-proj-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes infl-proj-slide-up {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.infl-proj-modal {
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  color: #111827;
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.12);
  animation: infl-proj-slide-up 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.infl-proj-modal-header {
  position: relative;
  flex-shrink: 0;
  padding: 2rem 2rem 1.75rem;
  background: linear-gradient(135deg, #ee3e96 0%, #f26e59 100%);
  color: #ffffff;
}

.infl-proj-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.infl-proj-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.infl-proj-modal-header h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.infl-proj-modal-header p {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.infl-proj-modal-body {
  flex: 1;
  overflow: auto;
  padding: 2rem;
  background: #ffffff;
}

.infl-proj-field {
  margin-bottom: 1.5rem;
}

.infl-proj-field:last-child {
  margin-bottom: 0;
}

.infl-proj-field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
  .infl-proj-field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .infl-proj-field-row .infl-proj-field {
    margin-bottom: 0;
  }
}

.infl-proj-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.45rem;
}

.infl-proj-field input,
.infl-proj-field select,
.infl-proj-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font: inherit;
  font-size: 0.88rem;
  color: #111827;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.infl-proj-field input::placeholder,
.infl-proj-field textarea::placeholder {
  color: #94a3b8;
}

.infl-proj-field input:focus,
.infl-proj-field select:focus,
.infl-proj-field textarea:focus {
  outline: none;
  border-color: #ee3e96;
  box-shadow: 0 0 0 3px rgba(238, 62, 150, 0.12);
  background: #ffffff;
}

.infl-proj-field textarea {
  min-height: 88px;
  resize: vertical;
}

.infl-proj-modal-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 0.25rem;
}

.infl-proj-btn-secondary {
  background: #ffffff;
  color: #374151;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}

.infl-proj-btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.infl-proj-modal .infl-proj-btn-primary,
.infl-proj-modal-backdrop .infl-proj-btn-primary {
  padding: 0.65rem 1.35rem;
  min-width: 8.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #ee3e96 0%, #f26e59 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(238, 62, 150, 0.32) !important;
  -webkit-appearance: none;
  appearance: none;
}

.infl-proj-modal .infl-proj-btn-primary:hover:not(:disabled),
.infl-proj-modal-backdrop .infl-proj-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #e83690 0%, #ef6350 100%) !important;
  color: #ffffff !important;
}

.infl-proj-loading {
  padding: 3rem;
  text-align: center;
  color: var(--infl-muted);
}

.infl-proj-error {
  padding: 1rem;
  border-radius: 12px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.85rem;
}
