/* css/profile.css */

/* ── Page wrapper ─────────────────────────────────────── */
.profile-page {
  min-height: 60vh;
}

/* ── Hero ─────────────────────────────────────────────── */
.profile-hero {
  background: linear-gradient(135deg, #3d5020 0%, #556B2F 100%);
  border-bottom: 4px solid #8B4513;
}

.profile-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Top row: avatar + info */
.profile-hero-top {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  background: #4a6030;
}

.profile-hero-info {
  flex: 1;
  min-width: 0;
}

.profile-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}

.profile-display-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.profile-username {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 6px;
}

.profile-hero .role-badge {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

.profile-hero .role-artist     { background: #8B4513; }
.profile-hero .role-technician { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.35); }

.profile-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.profile-meta-item {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.8);
}

.profile-meta-sep {
  color: rgba(255, 255, 255, 0.4);
}

/* Stars */
.profile-rating { margin-top: 2px; }

.profile-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 0.88rem;
}

.profile-stars .star--on  { color: #f59e0b; }
.profile-stars .star--off { color: rgba(255, 255, 255, 0.2); }

.profile-star-count {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 5px;
}

/* Bio */
.profile-bio {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  margin: 0;
  max-width: 720px;
}

/* Service tags */
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.profile-tag {
  background: rgba(255, 255, 255, 0.12);
  color: #d4edaa;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 4px 13px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

/* Contact buttons */
.profile-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.profile-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 7px;
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}

.profile-contact-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.pcb--email    { background: #fff;                           color: #3d5020; }
.pcb--whatsapp { background: #25D366;                        color: #fff; }
.pcb--phone    { background: rgba(255,255,255,0.18); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.pcb--facebook { background: #3b5998;                        color: #fff; }

/* ── Content layout ───────────────────────────────────── */
.profile-content-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

/* ── Listings ─────────────────────────────────────────── */
.profile-listings {
  flex: 1 1 auto;
  min-width: 0;
}

.profile-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-listing-count {
  background: #f0f4e8;
  color: #3d5020;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  border: 1px solid #d0dfa8;
}

.profile-ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.profile-ad-card {
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.15s;
}

.profile-ad-card:hover {
  box-shadow: 0 4px 16px rgba(85, 107, 47, 0.15);
  border-color: #a8c060;
  transform: translateY(-2px);
}

.profile-ad-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f3f4f6;
  overflow: hidden;
}

.profile-ad-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}

.profile-ad-card:hover .profile-ad-img-wrap img {
  transform: scale(1.04);
}

.profile-ad-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  color: #fff;
}

.profile-ad-badge--reserved { background: #8B4513; }

.profile-ad-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.profile-ad-title {
  font-size: 0.83rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-ad-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.profile-ad-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: #3d5020;
}

.profile-ad-date {
  font-size: 0.72rem;
  color: #9ca3af;
}

.profile-no-listings {
  padding: 40px 0;
  color: #6b7280;
  font-size: 0.9rem;
}

/* ── Sidebar ──────────────────────────────────────────── */
.profile-sidebar {
  flex: 0 0 240px;
  min-width: 0;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .profile-content-wrap {
    flex-direction: column;
  }

  .profile-sidebar {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .profile-hero-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-name-row {
    justify-content: center;
  }

  .profile-meta-row {
    justify-content: center;
  }

  .profile-contact-row {
    justify-content: center;
  }

  .profile-display-name {
    font-size: 1.3rem;
  }

  .profile-avatar {
    width: 80px;
    height: 80px;
  }

  .profile-ads-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}
