/* hire-modal.css — Hire Brief modal + Hire button styles.
   Brand palette: Nova Teal #00F2EA + coral #FF4D6D. */

/* ── Overlay ─────────────────────────────────────────────────── */
.hire-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.hire-modal-overlay.open { opacity: 1; pointer-events: all; }
.hire-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.82); backdrop-filter: blur(6px);
}

/* ── Box ─────────────────────────────────────────────────────── */
.hire-modal-box {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px; margin: 0 16px;
  background: #111114; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 0;
  max-height: 90vh; overflow-y: auto;
  font-family: 'DM Sans', -apple-system, sans-serif;
}

/* ── Header ──────────────────────────────────────────────────── */
.hire-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hire-modal-creator { display: flex; align-items: center; gap: 12px; }
.hire-modal-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #00F2EA, #FF4D6D);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: #000; overflow: hidden;
}
.hire-modal-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hire-modal-creator-name {
  font-weight: 700; font-size: 0.95rem; color: #f0f0f0;
}
.hire-modal-creator-handle {
  font-size: 0.8rem; color: #888;
}
.hire-modal-close {
  background: none; border: none; color: #888; font-size: 1.6rem;
  cursor: pointer; padding: 4px 8px; border-radius: 8px; line-height: 1;
}
.hire-modal-close:hover { color: #fff; }

/* ── Form ────────────────────────────────────────────────────── */
#hireBriefForm, .hire-auth-gate { padding: 20px 24px 24px; }
.hire-field { margin-bottom: 16px; }
.hire-label {
  display: block; font-size: 0.75rem; font-weight: 600;
  color: #888; text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.hire-select, .hire-input, .hire-textarea {
  width: 100%; background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
  padding: 12px 14px; color: #f0f0f0;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  box-sizing: border-box; outline: none; transition: border-color 0.2s;
  -webkit-appearance: none;
}
.hire-select:focus, .hire-input:focus, .hire-textarea:focus {
  border-color: #00F2EA;
}
.hire-textarea { resize: vertical; min-height: 80px; }
.hire-input[type="date"] { color-scheme: dark; }
.hire-char-count {
  font-size: 0.72rem; color: #555; text-align: right; margin-top: 4px;
}

/* ── Error / Success ─────────────────────────────────────────── */
.hire-error {
  color: #FF4D6D; font-size: 0.82rem; margin-bottom: 12px;
  display: none;
}
.hire-error.visible { display: block; }
.hire-success {
  background: rgba(0,194,199,0.12); border: 1px solid rgba(0,194,199,0.3);
  color: #00F2EA; border-radius: 10px; padding: 12px 16px;
  font-size: 0.85rem; margin-bottom: 12px;
  display: none; align-items: center; gap: 8px;
}
.hire-success.visible { display: flex; }

/* ── Buttons ─────────────────────────────────────────────────── */
.hire-actions { display: flex; gap: 12px; }
.hire-submit-btn {
  flex: 1; background: linear-gradient(135deg, #00F2EA, #00D4D9);
  color: #050507; border: none; border-radius: 12px;
  padding: 14px; font-weight: 700; font-size: 0.9rem; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: opacity 0.2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.hire-submit-btn:hover { background: linear-gradient(135deg, #FF4D6D, #FF6B8A); }
.hire-submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.hire-cancel-btn {
  flex: 1; background: transparent; color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 12px;
  padding: 14px; font-weight: 500; font-size: 0.9rem; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: all 0.2s;
}
.hire-cancel-btn:hover { border-color: rgba(255,255,255,0.3); color: #fff; }

/* ── Auth Gate ───────────────────────────────────────────────── */
.hire-auth-gate { text-align: center; }
.hire-auth-icon { margin-bottom: 16px; }
.hire-auth-title {
  font-family: 'Syne', sans-serif; font-size: 1.1rem;
  font-weight: 700; color: #f0f0f0; margin: 0 0 8px;
}
.hire-auth-desc {
  font-size: 0.85rem; color: #888; margin: 0 0 20px; line-height: 1.5;
}

/* ── Hire Button (reusable across pages) ─────────────────────── */
.btn-hire {
  background: linear-gradient(135deg, #00F2EA, #00D4D9);
  color: #050507; border: none; border-radius: 8px;
  padding: 8px 16px; font-weight: 700; font-size: 0.82rem;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  display: inline-flex; align-items: center; gap: 5px;
  transition: opacity 0.2s; text-decoration: none;
}
.btn-hire:hover { background: linear-gradient(135deg, #FF4D6D, #FF6B8A); }
.btn-hire svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Profile page: prominent CTA */
.btn-hire-profile {
  padding: 10px 24px; font-size: 0.9rem; border-radius: 10px;
}

/* vfeed action bar: circular icon */
.vfeed-hire-btn {
  background: none; border: none; color: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0; font-family: 'DM Sans', sans-serif;
}
.vfeed-hire-btn .vfeed-icon { stroke: #00F2EA; }
.vfeed-hire-btn .vfeed-count { color: #00F2EA; font-size: 0.72rem; font-weight: 600; }

/* ── Spinner keyframe ────────────────────────────────────────── */
@keyframes hireSpin { to { transform: rotate(360deg); } }
.hire-spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  border-radius: 50%; animation: hireSpin 0.6s linear infinite;
  vertical-align: middle; margin-right: 6px;
}
