/* ── HERO ─────────────────────────────────────────────────── */
.prof-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 32px 24px 28px;
  background: linear-gradient(135deg, var(--blue) 0%, #2E75B6 100%);
  color: #fff;
}

.prof-kicker {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .8;
}

.prof-hero h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.1;
}

.prof-hero p {
  max-width: 560px;
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: 14px;
  line-height: 1.55;
}

.prof-cta {
  flex: 0 0 auto;
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  background: rgba(255,255,255,.14);
  transition: background .15s, border-color .15s;
}

.prof-cta:hover {
  background: rgba(255,255,255,.26);
  border-color: rgba(255,255,255,.65);
}

/* ── WRAPPER ──────────────────────────────────────────────── */
.prof-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

/* ── NOTA VALIDARE ────────────────────────────────────────── */
.prof-note {
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  background: #FFFBEB;
  color: #78350F;
  font-size: 13px;
  line-height: 1.55;
}

.prof-note summary {
  cursor: pointer;
  font-weight: 800;
}

/* ── FILTRE ───────────────────────────────────────────────── */
.prof-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 180px;
  gap: 10px;
  margin-bottom: 14px;
}

.prof-filters input,
.prof-filters select {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  transition: border-color .15s, box-shadow .15s;
}

.prof-filters input:focus,
.prof-filters select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

/* ── META (numarator rezultate) ───────────────────────────── */
.prof-meta {
  min-height: 24px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

/* ── GRID ─────────────────────────────────────────────────── */
.prof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

/* ── CARD ─────────────────────────────────────────────────── */
.prof-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, .05);
  transition: box-shadow .18s, transform .18s, border-color .18s;
}

.prof-card:hover {
  box-shadow: 0 8px 28px rgba(15, 23, 42, .11);
  border-color: #c7d7ef;
  transform: translateY(-2px);
}

/* Card header: avatar + meta */
.prof-card-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.prof-card-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #EAF3FC;
  color: var(--blue);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.5px;
}

.prof-card-meta {
  min-width: 0;
  flex: 1;
}

.prof-card-name {
  margin: 4px 0 3px;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Role badge */
.prof-role {
  display: inline-flex;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: #EAF3FC;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* Info muted (localitate) */
.prof-info {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin-top: 2px;
}

/* ── CHIPS PE CARD ────────────────────────────────────────── */
.prof-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.prof-chip {
  padding: 4px 9px;
  border-radius: 6px;
  background: #EAF3FC;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.prof-chip-muted {
  background: #F1F5F9;
  color: var(--text);
}

/* ── AUTORIZATIE ──────────────────────────────────────────── */
.prof-card-auth {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}

.prof-auth-label {
  color: var(--muted);
  font-weight: 600;
}

.prof-auth-val {
  color: var(--text);
  font-weight: 700;
}

/* ── ACTIUNI (butoane card) ───────────────────────────────── */
.prof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.prof-actions a {
  padding: 7px 11px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  transition: background .14s;
}

.prof-actions a:hover {
  background: #1d4ed8;
}

.prof-actions a.secondary {
  background: #F1F5F9;
  color: var(--text);
}

.prof-actions a.secondary:hover {
  background: #e2e8f0;
}

/* ── SKELETON LOADING ─────────────────────────────────────── */
.prof-skeleton {
  pointer-events: none;
}

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

.sk-avatar {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #e2e8f0;
  animation: shimmer 1.5s ease infinite;
}

.sk-line {
  height: 13px;
  border-radius: 6px;
  background: #e2e8f0;
  animation: shimmer 1.5s ease infinite;
  margin-bottom: 7px;
}

.sk-line-sm   { width: 42%; }
.sk-line-lg   { width: 78%; }
.sk-line-md   { width: 58%; }
.sk-line-chips { width: 90%; height: 28px; border-radius: 6px; margin-top: 4px; }

/* ── EMPTY STATE ──────────────────────────────────────────── */
.prof-empty {
  padding: 36px 24px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: #fff;
  text-align: center;
  grid-column: 1 / -1;
}

.prof-empty-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.prof-empty-text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ── PAGINA PROFIL ────────────────────────────────────────── */
.prof-profile-page {
  background: #F8FAFC;
  min-height: calc(100vh - 140px);
}

.prof-profile-hero {
  padding: 28px 24px 34px;
  background: linear-gradient(135deg, var(--blue) 0%, #265f92 100%);
  color: #fff;
}

.prof-profile-hero .prof-role {
  background: rgba(255,255,255,.18);
  color: #fff;
}

.prof-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: color .14s;
}

.prof-back:hover {
  color: #fff;
}

.prof-back::before {
  content: "\2190";
}

.prof-profile-head {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

.prof-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 78px;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 10px;
  background: rgba(255,255,255,.13);
  color: #fff;
  font-size: 25px;
  font-weight: 900;
}

.prof-profile-title {
  min-width: 0;
}

.prof-profile-title h1 {
  margin: 8px 0 6px;
  color: #fff;
  font-size: clamp(25px, 4.8vw, 40px);
  line-height: 1.05;
}

.prof-firm,
.prof-profile-description {
  margin: 0;
  color: rgba(255,255,255,.9);
}

.prof-profile-description {
  max-width: 850px;
  margin: 22px auto 0;
  font-size: 15px;
  line-height: 1.65;
}

.prof-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.prof-profile-meta span {
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px;
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 800;
}

/* ── LAYOUT PROFIL ────────────────────────────────────────── */
.prof-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 16px 58px;
}

.prof-profile-main {
  display: grid;
  gap: 14px;
}

.prof-panel,
.prof-contact-panel,
.prof-profile-empty {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, .05);
}

.prof-panel,
.prof-contact-panel {
  padding: 18px;
}

.prof-panel h2,
.prof-contact-panel h2 {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.25;
}

.prof-panel p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
}

/* Chip-uri profil (servicii + judete) */
.prof-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prof-chip-list span {
  padding: 7px 11px;
  border-radius: 8px;
  background: #EAF3FC;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.prof-chip-muted span {
  background: #F1F5F9;
  color: var(--text);
}

.prof-muted {
  color: var(--muted) !important;
}

.prof-authorization {
  margin-top: 12px !important;
}

/* ── SIDEBAR CONTACT ──────────────────────────────────────── */
.prof-contact-panel {
  align-self: start;
  position: sticky;
  top: 82px;
}

.prof-contact-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.prof-contact-list a,
.prof-cta-dark {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: background .14s;
}

.prof-contact-list a:hover {
  background: #1d4ed8;
}

.prof-contact-list a:nth-child(n+2) {
  background: #F1F5F9;
  color: var(--text);
}

.prof-contact-list a:nth-child(n+2):hover {
  background: #e2e8f0;
}

.prof-cta-dark {
  width: 100%;
  margin-top: 12px;
  background: #111827;
  box-sizing: border-box;
}

.prof-cta-dark:hover {
  background: #1f2937;
}

/* ── 404 PROFIL ───────────────────────────────────────────── */
.prof-profile-empty {
  max-width: 620px;
  margin: 40px auto;
  padding: 32px;
  text-align: center;
}

.prof-profile-empty h1 {
  margin-top: 0;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 760px) {
  .prof-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 16px;
  }

  .prof-cta {
    width: 100%;
    text-align: center;
  }

  .prof-filters {
    grid-template-columns: 1fr;
  }

  .prof-profile-hero {
    padding: 22px 16px 28px;
  }

  .prof-profile-head {
    align-items: flex-start;
  }

  .prof-avatar {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
    font-size: 21px;
  }

  .prof-profile-layout {
    grid-template-columns: 1fr;
  }

  .prof-contact-panel {
    position: static;
  }
}
