/* ============================================================
   profile.css — Luxury Profile Page  |  Blue × Indigo
   ============================================================ */

/* ── Nav extras ── */
.btn-ghost-nav {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-ghost-nav:hover { background: var(--surface); color: var(--text); }

/* ── Profile hero ── */
.profile-hero {
  position: relative;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 40px;
  overflow: hidden;
  transition: background 0.3s ease;
}

.profile-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.profile-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* Avatar */
.profile-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  border: 3px solid rgba(255,255,255,.15);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform 0.2s;
}

.profile-avatar:hover { transform: scale(1.04); }

.profile-online-dot {
  position: absolute;
  bottom: 4px; right: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--bg-2);
  display: none;
}

/* Hero info */
.profile-hero-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  width: fit-content;
}

.profile-role-badge--freelancer {
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
  color: var(--blue);
}

.profile-role-badge--client {
  background: var(--indigo-dim);
  border: 1px solid var(--indigo-border);
  color: var(--indigo);
}

.profile-name {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0;
}

.profile-email { margin: 0; font-size: 0.88rem; }
.profile-bio   { margin: 0; font-size: 0.88rem; max-width: 480px; }

/* Stats row */
.profile-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  width: fit-content;
  margin-top: 4px;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px;
  gap: 3px;
}

.profile-stat-div {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex: 0 0 auto;
}

.profile-stat-val {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -0.01em;
}

.profile-stat-lbl {
  font-size: 0.68rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ── Main layout ── */
.profile-main { padding: 36px 24px 80px; }

.profile-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

.profile-left, .profile-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── Profile cards ── */
.profile-card {
  padding: 22px;
  border: 1px solid var(--border) !important;
  transition: background 0.3s ease;
}

.profile-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.profile-card-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.01em;
}

.profile-card-add {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
  text-decoration: none;
}

.profile-card-add:hover {
  background: var(--blue-dim);
  color: var(--blue);
}

/* ── Skills ── */
.profile-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
}

.skill-remove {
  background: none;
  border: none;
  color: var(--blue);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.skill-remove:hover { opacity: 1; }

/* Add form */
.profile-add-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.profile-cancel-btn {
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px 8px;
  transition: color 0.2s;
}

.profile-cancel-btn:hover { color: var(--text); }

/* ── Bio ── */
.profile-bio-text {
  line-height: 1.7;
  font-size: 0.9rem;
}

.profile-textarea {
  width: 100%;
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
}

/* ── Account info ── */
.profile-info-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.profile-info-row:last-child { border-bottom: none; }

.profile-info-label { color: var(--text-2); font-weight: 600; }
.profile-info-val   { color: var(--text);   font-weight: 700; }

/* ── My gigs ── */
.profile-gigs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-gig-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}

.profile-gig-item:hover {
  border-color: var(--blue-border);
  background: var(--blue-dim);
  text-decoration: none;
  color: inherit;
}

.profile-gig-img {
  width: 64px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 auto;
}

.profile-gig-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-gig-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Reviews ── */
.profile-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-review {
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.profile-review:hover { border-color: var(--border-2); }

.profile-review-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.profile-review-avatar {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-h), var(--indigo-h));
  color: #fff;
  display: grid; place-items: center;
  font-size: 0.85rem;
  font-weight: 900;
  flex: 0 0 auto;
}

.profile-review-name  { font-weight: 800; font-size: 0.9rem; color: var(--text); }
.profile-review-stars { font-size: 0.78rem; color: var(--gold); margin-top: 2px; }
.profile-review-text  { font-size: 0.85rem; line-height: 1.6; }

/* Edit profile button */
.profile-edit-btn { margin-left: auto; }

/* ── auth-input reuse ── */
.auth-input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
  border-color: var(--blue-border);
  box-shadow: 0 0 0 3px var(--blue-dim);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-edit-btn { margin-left: 0; width: 100% !important; }
}

@media (max-width: 640px) {
  .profile-name        { font-size: 1.4rem; }
  .profile-hero-inner  { gap: 18px; }
  .profile-stat        { padding: 10px 14px; }
}