/* ============================================================================
   mediweb-sectie.css — lista medicilor dintr-o specialitate (29.07.2026)

   Se încarcă doar pe paginile de tip /programari/<specialitate>.
   Cuprinde: bara de filtre (zile + căutare), cardurile de medic, orarul
   compact și indicatorul „primul loc liber”.

   ATENȚIE: Isotope poziționează .pp-doc prin `transform` și le scoate din
   fluxul normal. De aceea fundalul, chenarul și efectul de hover stau pe
   .pp-doc-inner, nu pe .pp-doc — altfel se bat cu animația de filtrare.
   ============================================================================ */

body.pp-sectie { background: #f1f5f9; }

/* cutia albă din styles.css nu se potrivește aici */
body.pp-sectie section.registration-form.pp-listadoc {
  background: transparent; box-shadow: none; border-radius: 0;
  padding: 0 16px; width: min(1160px, 100%); margin: 0 auto;
}

/* ------------------------------------------------------- antetul specialității */
body.pp-sectie .pp-sechero {
  background: linear-gradient(135deg, #1c7ed6 0%, #1560ab 100%);
  color: #fff; padding: 26px 16px 30px;
}
body.pp-sectie .pp-sechero .in { max-width: 1160px; margin: 0 auto; }
body.pp-sectie .pp-crumbs { font-size: .85rem; opacity: .9; margin-bottom: 8px; }
body.pp-sectie .pp-crumbs a { color: #fff; text-decoration: none; }
body.pp-sectie .pp-crumbs a:hover { text-decoration: underline; }
body.pp-sectie .pp-sechero h1 { font-size: 1.7rem; margin: 0 0 6px; color: #fff; line-height: 1.25; }
body.pp-sectie .pp-sechero .meta { font-size: .92rem; opacity: .93; }

/* ------------------------------------------------------------ bara de filtre */
.pp-toolbar {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin: 20px 0 10px;
}
.pp-dayfilter { display: flex; gap: 6px; flex-wrap: wrap; }
.pp-df {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 999px;
  padding: 7px 15px; font-size: .88rem; font-weight: 600; color: #475569;
  cursor: pointer; user-select: none; transition: background .15s, color .15s, border-color .15s;
}
.pp-df:hover { background: #eff6ff; color: #0369a1; }
.pp-df.on { background: #0ea5e9; border-color: #0ea5e9; color: #fff; }
.pp-df:focus-visible { outline: 2px solid #0369a1; outline-offset: 2px; }

.pp-docsearch {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 0 14px;
}
.pp-docsearch .si { font-size: .95rem; opacity: .6; }
.pp-docsearch input {
  border: 0; outline: none; padding: 9px 0; font-size: .9rem; font-family: inherit;
  color: #334155; background: transparent; width: 190px;
  /* anulăm regula veche .registration-form input {max-width:300px;border:1px solid...} */
  max-width: none; margin: 0; border-radius: 0;
}
.pp-count { color: #64748b; font-size: .87rem; margin: 0 0 14px; }

/* ------------------------------------------------------------ cardul medicului
   Aranjare cu CSS Grid, NU cu Isotope.
   Isotope poziționează cardurile absolut și le ascunde printr-o tranziție de
   opacitate încheiată de evenimentul `transitionend`. Când acesta nu se
   declanșează (filă în fundal, „reduce motion”, randare fără compunere),
   cardurile filtrate rămân suprapuse peste cele vizibile. Grid-ul nu are
   nevoie de niciun eveniment, iar rândurile se egalizează singure. */
.pp-docgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px;
  margin-bottom: 18px;
}
.pp-doc { min-width: 0; }
.pp-doc.ascuns { display: none; }
@media (max-width: 620px) { .pp-docgrid { grid-template-columns: 1fr; } }

.pp-doc-inner {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05); height: 100%;
  display: flex; flex-direction: column;
  transition: box-shadow .15s, border-color .15s;
  /* animație pur decorativă: cardul e vizibil oricum, chiar dacă nu rulează */
  animation: pp-apare .25s ease both;
}
@keyframes pp-apare { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pp-doc-inner { animation: none; } }
.pp-doc-inner:hover { box-shadow: 0 8px 20px rgba(0,0,0,.1); border-color: #cbd5e1; }

.pp-doc-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
/* avatarul e link către pagina medicului, la fel ca numele */
.pp-av-link { flex: 0 0 auto; display: block; border-radius: 50%; line-height: 0; }
.pp-av-link:hover .pp-av-img,
.pp-av-link:hover .pp-av { border-color: #7dd3fc; box-shadow: 0 0 0 3px rgba(14,165,233,.18); }
.pp-av, .pp-av-img {
  width: 58px; height: 58px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #eff6ff; transition: border-color .15s, box-shadow .15s;
}
.pp-av { background: #eff6ff; font-size: 1.7rem; }
.pp-av-img { object-fit: cover; background: #eff6ff; }
.pp-doc-id { min-width: 0; }
.pp-doc-id h3 { margin: 0 0 3px; font-size: 1rem; line-height: 1.3; color: #1e293b; }
.pp-doc-id h3 a { color: inherit; text-decoration: none; }
.pp-doc-id h3 a:hover { color: #0369a1; text-decoration: underline; }
.pp-doc-id .rank { font-size: .8rem; color: #0369a1; font-weight: 600; }
.pp-doc-id .cab  { font-size: .8rem; color: #94a3b8; }

/* pastilele cu zilele săptămânii */
.pp-days { display: flex; gap: 5px; margin-bottom: 10px; }
.pp-d {
  width: 30px; height: 26px; border-radius: 7px; font-size: .74rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.pp-d.on  { background: #e0f2fe; color: #0369a1; }
.pp-d.off { background: #f8fafc; color: #cbd5e1; }

/* orarul compact */
.pp-orar { border-top: 1px solid #f1f5f9; padding-top: 10px; margin-bottom: 12px; }
.pp-orar-cab { font-size: .74rem; text-transform: uppercase; letter-spacing: .03em;
               color: #94a3b8; font-weight: 700; margin: 6px 0 3px; }
.pp-orar-rand { display: flex; justify-content: space-between; gap: 10px;
                font-size: .84rem; padding: 2px 0; }
.pp-orar-rand .zi  { color: #64748b; }
.pp-orar-rand .ore { color: #334155; font-weight: 600; text-align: right; }
.pp-rot { background: #fef3c7; color: #92400e; border-radius: 999px;
          padding: 1px 7px; font-size: .68rem; font-weight: 700; white-space: nowrap; }

/* subsolul cardului: primul loc liber + buton */
.pp-doc-foot {
  margin-top: auto; padding-top: 12px; border-top: 1px solid #f1f5f9;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.pp-free { font-size: .88rem; font-weight: 700; line-height: 1.25; }
.pp-free small { display: block; font-size: .72rem; font-weight: 500; color: #94a3b8; }
.pp-free.ok   { color: #15803d; }
.pp-free.full { color: #b91c1c; }
.pp-free.none { color: #64748b; }
.pp-cta {
  margin-left: auto; background: #0ea5e9; color: #fff; border-radius: 8px;
  padding: 8px 14px; font-weight: 700; font-size: .85rem; text-decoration: none; white-space: nowrap;
}
.pp-cta:hover { background: #0284c7; color: #fff; }
.pp-cta.ghost { background: #f1f5f9; color: #475569; }
.pp-cta.ghost:hover { background: #e2e8f0; color: #334155; }

.pp-empty {
  display: none; background: #fff; border: 1px dashed #cbd5e1; border-radius: 14px;
  padding: 22px; text-align: center; color: #64748b; margin: 0 0 20px;
}
.pp-empty b { color: #1e293b; }

@media (max-width: 620px) {
  body.pp-sectie .pp-sechero h1 { font-size: 1.35rem; }
  .pp-toolbar { gap: 10px; }
  .pp-docsearch { margin-left: 0; width: 100%; }
  .pp-docsearch input { width: 100%; }
  .pp-df { padding: 6px 12px; font-size: .84rem; }
}
