/* ==============================================
   seller_profile.css
   ============================================== */

/* ── Banner ─────────────────────────────────────── */
.profile-banner-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-tertiary);
}
.profile-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-banner-empty {
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-hover));
}
.banner-edit-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
}

/* Teilen-Button: rechts unten im Banner */
.profile-banner-actions {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: .5rem;
}
#share-toast {
  display: none !important;
}

/* ── Share-Button ───────────────────────────────── */
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(0,0,0,.55);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 8px;
  padding: .45rem .95rem;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  backdrop-filter: blur(6px);
}
.btn-share:hover {
  background: var(--accent, #e63946);
  border-color: var(--accent, #e63946);
}

/* ── Profil-Header: klar UNTER dem Banner ───────── */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem .5rem 1rem;
  margin-top: 0;          /* kein negativer Overlap */
  position: relative;
  z-index: 2;
}
.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-primary);
  background: var(--bg-tertiary);
  display: block;
}
.profile-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}
.avatar-edit-btn {
  position: absolute;
  bottom: 2px;
  right: 2px;
}
.profile-username-wrap { }
.profile-username {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 .15rem;
}
.profile-since {
  font-size: .82rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Edit-Buttons ───────────────────────────────── */
.edit-btn {
  background: rgba(0,0,0,.55);
  border: none;
  border-radius: 6px;
  padding: .3rem .55rem;
  font-size: .8rem;
  cursor: pointer;
  color: #fff;
  transition: background .2s;
}
.edit-btn:hover { background: var(--accent, #e63946); }

/* ── Bio ────────────────────────────────────────── */
.profile-bio-section {
  margin: 0 0 1.5rem;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}
.profile-section-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.profile-bio-text {
  font-size: .95rem;
  color: var(--text-primary);
  line-height: 1.6;
}
#bio-edit textarea {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  padding: .75rem;
  font-size: .95rem;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}
#bio-edit textarea:focus { border-color: var(--accent, #e63946); outline: none; }
.bio-edit-actions { display: flex; gap: .5rem; margin-top: .75rem; }
.btn-sm { padding: .35rem .8rem; font-size: .85rem; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 600px) {
  .profile-banner-wrap { height: 150px; }
  .profile-avatar { width: 65px; height: 65px; }
  .profile-username { font-size: 1.15rem; }
}
