/* ============================================================
   seller.css — Public Seller Profile  |  Blue × Indigo
   ============================================================ */

.logo-link { text-decoration: none; }

/* ── Hero ── */
.seller-hero {
  position: relative;
  background:
    radial-gradient(ellipse 70% 80% at 15% 50%, rgba(96,180,255,0.1) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 85% 30%, rgba(165,180,252,0.08) 0%, transparent 60%),
    var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 52px 0 44px;
  overflow: hidden;
  transition: background 0.3s ease;
}

.seller-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.seller-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* Avatar */
.seller-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.seller-avatar-lg {
  width: 100px; height: 100px;
  border-radius: 24px;
  display: grid; place-items: center;
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  border: 3px solid rgba(255,255,255,.15);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  transition: transform 0.2s;
}

.seller-avatar-lg:hover { transform: scale(1.04); }

.seller-online {
  font-size: 0.72rem;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.25);
  padding: 3px 10px;
  border-radius: 999px;
}

/* Info */
.seller-hero-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seller-badges { display: flex; gap: 8px; flex-wrap: wrap; }

.seller-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.seller-badge--level {
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
  color: var(--blue);
}

.seller-badge--member {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
}

.seller-name {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0;
}

.seller-tagline { margin: 0; font-size: 0.95rem; }

.seller-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.seller-meta-item { display: flex; align-items: center; gap: 4px; }
.seller-meta-sep  { color: var(--text-3); }

/* Contact button */
.seller-hero-actions { margin-left: auto; }

.seller-contact-btn {
  width: auto;
  padding: 12px 24px;
  font-size: 0.95rem;
}

/* ── Main layout ── */
.seller-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
  padding: 36px 24px 80px;
}

.seller-left, .seller-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── Cards ── */
.seller-card {
  padding: 24px;
  border: 1px solid var(--border) !important;
  transition: background 0.3s ease;
}

.seller-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.seller-card-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

/* About */
.seller-bio { line-height: 1.7; font-size: 0.92rem; margin-bottom: 18px; }

.seller-details { display: flex; flex-direction: column; gap: 0; }

.seller-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.seller-detail-row:last-child { border-bottom: none; }
.seller-detail-label { color: var(--text-2); }
.seller-detail-val   { font-weight: 700; color: var(--text); }

/* Skills */
.seller-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Rating bars */
.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}

.rating-bar-label { width: 28px; color: var(--text-2); font-weight: 600; flex: 0 0 auto; }

.rating-bar-track {
  flex: 1;
  height: 6px;
  background: var(--bg-3);
  border-radius: 999px;
  overflow: hidden;
}

.rating-bar-fill { height: 100%; border-radius: 999px; transition: width 0.6s ease; }
.rating-bar-pct  { width: 32px; text-align: right; flex: 0 0 auto; }

/* Reviews */
.seller-reviews { display: flex; flex-direction: column; gap: 16px; }

.seller-review {
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.3s ease;
}

.seller-review:hover { border-color: var(--border-2); }

.seller-review-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.seller-review-avatar {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-h), var(--indigo-h));
  color: #fff;
  display: grid; place-items: center;
  font-size: 0.88rem;
  font-weight: 900;
  flex: 0 0 auto;
}

.seller-review-name  { font-weight: 800; font-size: 0.92rem; color: var(--text); }
.seller-review-stars { font-size: 0.78rem; color: var(--gold); margin-top: 2px; }
.seller-review-text  { font-size: 0.88rem; line-height: 1.6; }
.seller-rating-summary { display: flex; align-items: center; gap: 5px; }
.seller-rating-big   { font-size: 1.2rem; font-weight: 900; color: var(--text); }

/* ── Stats card ── */
.seller-stats-card {
  padding: 20px;
  border: 1px solid var(--blue-border) !important;
  box-shadow: var(--shadow-blue) !important;
  transition: background 0.3s ease;
}

.seller-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.seller-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.seller-stats-grid .seller-stat:nth-child(2),
.seller-stats-grid .seller-stat:nth-child(4) { border-right: none; }
.seller-stats-grid .seller-stat:nth-child(3),
.seller-stats-grid .seller-stat:nth-child(4) { border-bottom: none; }

.seller-stat-val {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -0.01em;
}

.seller-stat-lbl {
  font-size: 0.68rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 3px;
}

/* ── Gigs list ── */
.seller-gigs-list { display: flex; flex-direction: column; gap: 12px; }

.seller-gig-card {
  display: flex;
  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;
}

.seller-gig-card:hover {
  border-color: var(--blue-border);
  background: var(--blue-dim);
  text-decoration: none;
  color: inherit;
}

.seller-gig-img {
  width: 72px; height: 54px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-3);
  flex: 0 0 auto;
}

.seller-gig-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.seller-gig-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.seller-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;
}

.seller-gig-meta { display: flex; align-items: center; gap: 4px; font-size: 0.78rem; font-weight: 700; }
.seller-gig-price { font-size: 0.82rem; color: var(--text-2); }

/* ── Contact card ── */
.seller-contact-card {
  padding: 22px;
  border: 1px solid var(--border) !important;
  transition: background 0.3s ease;
}

.seller-contact-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 6px;
}

.seller-trust {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.trust-item { font-size: 0.82rem; color: var(--text-2); }

/* ── Contact modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.modal {
  width: 100%;
  max-width: 480px;
  padding: 28px;
  border: 1px solid var(--border) !important;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title { font-size: 1.1rem; font-weight: 900; color: var(--text); margin: 0; }

.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  font-size: 0.85rem;
  display: grid; place-items: center;
  transition: background 0.2s;
}

.modal-close:hover { background: var(--bg-3); color: var(--text); }

.modal-body { display: flex; flex-direction: column; gap: 14px; }

.checkout-field { display: flex; flex-direction: column; gap: 6px; }
.checkout-label {
  font-size: 0.78rem; font-weight: 700;
  color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em;
}

.checkout-input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  padding: 12px 16px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.checkout-input:focus {
  border-color: var(--blue-border);
  box-shadow: 0 0 0 3px var(--blue-dim);
}

.checkout-textarea { resize: vertical; min-height: 120px; }

.msg-success {
  font-size: 0.9rem;
  color: var(--blue);
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .seller-layout        { grid-template-columns: 1fr; }
  .seller-right         { order: -1; }
  .seller-hero-actions  { width: 100%; }
  .seller-contact-btn   { width: 100%; }
}

@media (max-width: 640px) {
  .seller-name     { font-size: 1.5rem; }
  .seller-avatar-lg{ width: 80px; height: 80px; font-size: 1.8rem; }
}