/* ============ EXPERT PROFILE — EDIT MODE ============
   Scoped overlay on top of .tpc (talent-profile-chef.css)
   ============================================ */

.exp-edit-banner {
  position: sticky;
  top: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #FFF8E0, #FFFBF0);
  border-bottom: 1px solid rgba(184, 145, 42, 0.25);
  box-shadow: 0 2px 12px rgba(184, 145, 42, 0.08);
  font-family: 'Inter', sans-serif;
  min-height: 54px;
}
.exp-edit-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.exp-edit-banner-ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C4A559, #E5D4A0);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(184, 145, 42, 0.3);
}
.exp-edit-banner-title {
  font-size: 13px;
  font-weight: 800;
  color: #5C4A1A;
  letter-spacing: -0.1px;
}
.exp-edit-banner-sub {
  font-size: 11px;
  color: #8A7340;
  margin-top: 1px;
}
.exp-edit-banner-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.exp-edit-banner-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  border: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.exp-edit-banner-btn.ghost {
  background: #fff;
  border: 1px solid rgba(184, 145, 42, 0.3);
  color: #9A7A28;
}
.exp-edit-banner-btn.ghost:hover {
  background: #FFFBF0;
  border-color: #C4A559;
}
.exp-edit-banner-btn.primary {
  background: linear-gradient(135deg, #C4A559, #D4A832, #E5D4A0);
  color: #fff;
  box-shadow: 0 2px 10px rgba(184, 145, 42, 0.32);
}
.exp-edit-banner-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(184, 145, 42, 0.4);
}

/* When edit banner is sticky, keep the page top-nav just below it */
.tpc-edit-mode .tpc-nav {
  top: 54px;
}

/* Editable cells visual cue */
.exp-editable {
  position: relative;
  border-radius: 6px;
  outline: 1px dashed transparent;
  outline-offset: 3px;
  transition: outline-color 0.15s ease, background 0.15s ease;
  cursor: text;
}
.exp-editable:hover {
  outline-color: rgba(184, 145, 42, 0.45);
  background: rgba(255, 251, 224, 0.4);
}
.exp-editable:focus {
  outline: 2px solid #C4A559;
  outline-offset: 3px;
  background: rgba(255, 251, 224, 0.7);
}
.exp-editable:focus-visible {
  outline: 2px solid #C4A559;
}
.exp-editable::after {
  content: '✎';
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 9px;
  color: #fff;
  background: #C4A559;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
.exp-editable:hover::after,
.exp-editable:focus::after {
  opacity: 1;
}

/* Avatar / banner editable overlay buttons */
.exp-edit-photo-btn {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C4A559, #E5D4A0);
  color: #fff;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  z-index: 6;
  transition: transform 0.15s ease;
}
.exp-edit-photo-btn:hover {
  transform: scale(1.08);
}
.exp-edit-banner-cover {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 6;
  padding: 7px 13px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(6px);
  transition: background 0.15s ease;
}
.exp-edit-banner-cover:hover {
  background: rgba(0, 0, 0, 0.75);
}

@media (max-width: 768px) {
  .exp-edit-banner {
    padding: 10px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .exp-edit-banner-sub {
    display: none;
  }
  .exp-edit-banner-right {
    justify-content: flex-end;
  }
  .tpc-edit-mode .tpc-nav {
    top: 100px;
  }
}
