﻿/* ============= ChromaStage Studio v2.0 — My Jobs Drawer & User Bar CSS ============= */

/* ===== User Pill (Header) ===== */
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.user-pill:hover {
  background: var(--panel-hover);
  border-color: var(--line-strong);
}

.user-pill-avatar {
  font-size: 14px;
}

.user-pill-name {
  font-weight: 700;
}

.user-pill-cta {
  color: var(--muted);
  font-size: 11px;
}

.user-pill-claimed {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

/* ===== My Jobs Off-canvas Drawer ===== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
  animation: fadeIn 0.2s ease-out;
}

.drawer-backdrop.hidden { display: none !important; }

.my-jobs-drawer {
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: var(--bg-1);
  border-left: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-0);
}

.drawer-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title-row h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}
.drawer-close-btn:hover { color: var(--text); }

.drawer-actions-row {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

/* Drawer Summary Stats */
.my-jobs-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.5);
  border-bottom: 1px solid var(--line);
}

.my-jobs-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.my-jobs-stat-label {
  font-size: 11px;
  color: var(--muted);
}

.my-jobs-stat-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.my-jobs-stat-val.primary { color: #818cf8; }
.my-jobs-stat-val.success { color: var(--success); }

/* Drawer Body & Jobs List */
.my-jobs-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.my-job-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.15s ease;
}

.my-job-card:hover {
  border-color: var(--line-strong);
  background: var(--panel-hover);
}

.my-job-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.my-job-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.my-job-card-meta {
  font-size: 11px;
  color: var(--muted);
}

.my-job-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
