/* Pagina de profil individual — layout 2-coloane, scrollabil normal.
   Folosește tokens lh-* din global.css. */

.prof {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
  font-family: var(--lh-font-sans);
}

/* ── Crumbs ───────────────────────────────────────────────────────────── */
.prof-crumbs {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--lh-muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.prof-crumbs a { color: var(--lh-muted); text-decoration: none; }
.prof-crumbs a:hover { color: var(--lh-primary); text-decoration: underline; }
.prof-crumb-sep { color: #cbd5e1; }
.prof-crumb-current { color: var(--lh-text); font-weight: 500; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.prof-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--lh-border);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}
.prof-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--lh-accent);
}

.prof-hero-body { min-width: 0; }
.prof-eyebrow {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: .25rem;
  flex-wrap: wrap;
}
.prof-type {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--lh-primary);
  background: rgba(26,84,144,.08);
  padding: .15rem .55rem;
  border-radius: 999px;
}
.prof-verified {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: #ecfdf5;
  color: #047857;
  padding: .12rem .5rem;
  border-radius: 999px;
}
.prof-name {
  margin: 0 0 .35rem;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--lh-text);
}
.prof-tagline {
  margin: 0 0 .8rem;
  color: var(--lh-muted);
  font-size: 1rem;
  font-family: var(--lh-font-serif);
}
.prof-meta {
  display: flex; gap: 1rem;
  font-size: .82rem;
  color: var(--lh-muted);
  flex-wrap: wrap;
  margin-bottom: .55rem;
}
.prof-meta-item { white-space: nowrap; }
.prof-license {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: .75rem;
}
.prof-accept-row .prof-accepting {
  display: inline-block;
  font-size: .75rem;
  color: #047857;
  font-weight: 600;
}
.prof-accept-row .prof-accepting::before {
  content: '● ';
  font-size: .8rem;
  vertical-align: 1px;
}
.prof-accept-row .prof-not-accepting {
  display: inline-block;
  font-size: .75rem;
  color: var(--lh-muted);
  font-style: italic;
}

.prof-hero-actions {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-width: 160px;
}

/* ── Stats row ────────────────────────────────────────────────────────── */
.prof-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .5rem;
  background: #fff;
  border: 1px solid var(--lh-border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.prof-stat {
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
  padding: .4rem;
  border-right: 1px solid var(--lh-border);
}
.prof-stat:last-child { border-right: none; }
.prof-stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--lh-primary);
  letter-spacing: -.01em;
  line-height: 1.1;
}
.prof-stat-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--lh-muted);
  margin-top: .15rem;
}

/* ── Body layout ──────────────────────────────────────────────────────── */
.prof-body {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.5rem;
  align-items: start;
}

/* ── Main column ──────────────────────────────────────────────────────── */
.prof-section {
  background: #fff;
  border: 1px solid var(--lh-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.prof-section h2 {
  margin: 0 0 .85rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.prof-section h3 {
  margin: 0 0 .65rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--lh-text);
}
.prof-section p {
  font-family: var(--lh-font-serif);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 .85rem;
  color: #1f2937;
}
.prof-section p:last-child { margin-bottom: 0; }
.prof-section-count {
  color: var(--lh-muted);
  font-weight: 400;
  font-size: .9rem;
}

.prof-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}
.prof-section-grid > div { padding: 0; }

/* ── Chips ────────────────────────────────────────────────────────────── */
.prof-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.prof-chip {
  display: inline-block;
  padding: .3rem .7rem;
  background: var(--lh-accent);
  color: var(--lh-text);
  border-radius: 6px;
  font-size: .8rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: border-color .12s, background .12s;
}
a.prof-chip:hover { border-color: var(--lh-primary); }
.prof-chip-primary {
  background: rgba(26,84,144,.08);
  color: var(--lh-primary);
  font-weight: 600;
}
a.prof-chip-primary:hover { background: rgba(26,84,144,.14); }

/* ── Recommendations ──────────────────────────────────────────────────── */
.prof-recs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.prof-rec {
  border-left: 3px solid var(--lh-primary);
  padding: .25rem 0 .25rem 1rem;
}
.prof-rec-head {
  display: flex; align-items: center; gap: .65rem;
  margin-bottom: .35rem;
  flex-wrap: wrap;
}
.prof-rec-stars {
  color: #f59e0b;
  font-size: .9rem;
  letter-spacing: 1px;
}
.prof-rec-author {
  font-weight: 600;
  font-size: .8rem;
}
.prof-rec-date {
  font-size: .72rem;
  color: var(--lh-muted);
  margin-left: auto;
}
.prof-rec-text {
  margin: 0 !important;
  font-family: var(--lh-font-serif);
  font-size: .95rem !important;
  color: #374151;
  line-height: 1.55 !important;
}

.prof-placeholder {
  font-size: .85rem !important;
  color: var(--lh-muted) !important;
  font-family: var(--lh-font-sans) !important;
  line-height: 1.5 !important;
}
.prof-link {
  color: var(--lh-primary);
  text-decoration: none;
  font-weight: 600;
}
.prof-link:hover { text-decoration: underline; }

/* ── Sidebar ──────────────────────────────────────────────────────────── */
.prof-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}
.prof-card {
  background: #fff;
  border: 1px solid var(--lh-border);
  border-radius: 12px;
  padding: 1.25rem;
}
.prof-card-title {
  margin: 0 0 .85rem;
  font-size: 1rem;
  font-weight: 600;
}
.prof-address {
  margin: 0 0 .85rem !important;
  font-size: .85rem !important;
  line-height: 1.4 !important;
  font-family: var(--lh-font-sans) !important;
  color: var(--lh-text) !important;
}
.prof-mini-map {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  border: 1px solid var(--lh-border);
  background: var(--lh-accent);
  overflow: hidden;
}

/* ── Contact info list ────────────────────────────────────────────────── */
.prof-contact-info {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0 0 .85rem;
  border-bottom: 1px solid var(--lh-border);
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .85rem;
}
.prof-contact-info a {
  color: var(--lh-primary);
  text-decoration: none;
  word-break: break-all;
}
.prof-contact-info a:hover { text-decoration: underline; }
.prof-contact-icon {
  display: inline-block;
  width: 1.2em;
  margin-right: .35rem;
  color: var(--lh-muted);
  font-size: .85em;
}

/* ── Contact form ─────────────────────────────────────────────────────── */
.prof-form {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.prof-form-field { display: flex; flex-direction: column; gap: .25rem; }
.prof-form-field label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
  color: var(--lh-muted);
}
.prof-form-optional {
  text-transform: none;
  font-weight: 400;
  color: #9ca3af;
  letter-spacing: 0;
}
.prof-form-field input,
.prof-form-field textarea {
  width: 100%;
  font: inherit;
  font-size: .88rem;
  padding: .45rem .55rem;
  border: 1px solid var(--lh-border);
  border-radius: var(--lh-radius);
  background: #fff;
  resize: vertical;
}
.prof-form-field input:focus,
.prof-form-field textarea:focus {
  outline: none;
  border-color: var(--lh-primary);
  box-shadow: 0 0 0 3px rgba(26,84,144,.1);
}
.prof-form-field input[aria-invalid="true"],
.prof-form-field textarea[aria-invalid="true"] {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}

.prof-form > button { margin-top: .25rem; }
.prof-form-feedback {
  margin: 0;
  font-size: .8rem;
  padding: .55rem .75rem;
  border-radius: 6px;
}
.prof-form-feedback.is-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.prof-form-feedback.is-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.prof-form-disclaimer {
  margin: 0 !important;
  font-size: .72rem !important;
  color: var(--lh-muted) !important;
  font-family: var(--lh-font-sans) !important;
  line-height: 1.45 !important;
}
.prof-form-disclaimer a { color: var(--lh-muted); text-decoration: underline; }

/* ── Mobile responsive ────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .prof-hero {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "avatar body"
      "actions actions";
  }
  .prof-avatar { grid-area: avatar; width: 88px; height: 88px; }
  .prof-hero-body { grid-area: body; }
  .prof-hero-actions { grid-area: actions; flex-direction: row; }
  .prof-hero-actions > * { flex: 1; text-align: center; }
  .prof-name { font-size: 1.4rem; }
  .prof-body { grid-template-columns: 1fr; }
  .prof-aside { position: static; }
}

@media (max-width: 520px) {
  .prof { padding: .75rem .85rem 3rem; }
  .prof-hero, .prof-section, .prof-card { padding: 1rem; }
  .prof-stat { border-right: none; padding: .25rem; }
  .prof-stat + .prof-stat { border-left: 1px solid var(--lh-border); }
}
