/* ═══════════════════════════════════════════════════════════
   DCC – Doctors Page Styles
   File: public/css/doctors.css
   ═══════════════════════════════════════════════════════════ */

/* ─── HERO ───────────────────────────────────────────────── */
.doc-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0a2540 60%, #0f3d2e 100%);
  padding: 5rem 2rem 4rem; text-align: center;
  position: relative; overflow: hidden;
}
.doc-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(29,185,84,.15), transparent 70%); }
.doc-hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 35px 35px; pointer-events: none; }
.doc-hero .section-label { position: relative; z-index: 1; }
.doc-hero__title { font-family: 'Lora', serif; font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 700; color: #fff; line-height: 1.15; margin-bottom: 1rem; position: relative; z-index: 1; }
.doc-hero__title em { color: var(--green); font-style: italic; }
.doc-hero__sub { color: rgba(255,255,255,.65); font-size: 1.05rem; max-width: 560px; margin: 0 auto 1.5rem; line-height: 1.7; position: relative; z-index: 1; }
.doc-hero__breadcrumb { font-size: .82rem; color: rgba(255,255,255,.4); position: relative; z-index: 1; }
.doc-hero__breadcrumb a { color: var(--green); font-weight: 600; }
.doc-hero__breadcrumb a:hover { text-decoration: underline; }
.doc-hero__breadcrumb .current { color: rgba(255,255,255,.7); }

/* ─── FILTER BAR ─────────────────────────────────────────── */
.doc-filter { background: var(--white); padding: 1.5rem 0; border-bottom: 1px solid var(--gray-light); position: sticky; top: 52px; z-index: 90; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.doc-filter__bar { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.doc-filter__search { position: relative; flex: 1; min-width: 220px; }
.doc-filter__search i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--gray); font-size: .85rem; }
.doc-filter__search input {
  width: 100%; padding: .75rem 1rem .75rem 2.5rem;
  border: 1.5px solid var(--gray-light); border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: .88rem; color: var(--navy);
  outline: none; transition: var(--transition);
}
.doc-filter__search input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29,185,84,.12); }
.doc-filter__selects { display: flex; gap: .6rem; }
.doc-filter__selects select {
  padding: .7rem 1rem; border: 1.5px solid var(--gray-light); border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: .82rem; font-weight: 600;
  color: var(--navy); background: var(--white); outline: none;
  cursor: pointer; transition: var(--transition);
}
.doc-filter__selects select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29,185,84,.12); }
.doc-filter__count { margin-top: .6rem; font-size: .78rem; color: var(--gray); font-weight: 600; }
.doc-filter__count span { color: var(--green); font-weight: 800; }

/* ─── DOCTORS GRID ───────────────────────────────────────── */
.doc-main { padding: 3.5rem 0; background: var(--off-white); }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

.doc-card {
  background: var(--white); border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06); border: 1px solid var(--gray-light);
  overflow: hidden; transition: var(--transition);
  display: flex; flex-direction: column;
}
.doc-card:hover { transform: translateY(-6px); box-shadow: 0 16px 44px rgba(0,0,0,.1); border-color: var(--green); }
.doc-card.hidden { display: none; }

/* Top — avatar + status */
.doc-card__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 1.5rem 0;
}
.doc-card__avatar { font-size: 3.5rem; line-height: 1; transition: var(--transition); }
.doc-card:hover .doc-card__avatar { transform: scale(1.1); }

.doc-card__status {
  font-size: .68rem; font-weight: 700; padding: .25rem .7rem;
  border-radius: 9999px; display: flex; align-items: center; gap: .3rem;
}
.doc-card__status--online { background: rgba(29,185,84,.1); color: var(--green-dark); }
.doc-card__status--busy { background: rgba(245,158,11,.1); color: #b45309; }
.doc-card__status--offline { background: rgba(107,114,128,.1); color: #4b5563; }

/* Body */
.doc-card__body { padding: 1rem 1.5rem; flex: 1; }
.doc-card__body h3 { font-family: 'Lora', serif; font-weight: 700; font-size: 1.05rem; color: var(--navy); margin-bottom: .2rem; }
.doc-card__spec { font-size: .78rem; font-weight: 700; color: var(--green); margin-bottom: .6rem; display: block; }

.doc-card__meta { display: flex; gap: 1rem; margin-bottom: .8rem; flex-wrap: wrap; }
.doc-card__meta span { font-size: .72rem; color: var(--gray); display: flex; align-items: center; gap: .3rem; font-weight: 600; }
.doc-card__meta i { color: var(--green); font-size: .65rem; }

.doc-card__tags { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .6rem; }

.doc-card__langs { font-size: .7rem; color: var(--gray); font-weight: 600; }
.doc-card__langs i { color: var(--green); margin-right: .3rem; }

/* Actions */
.doc-card__actions {
  display: flex; gap: .5rem; padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--gray-light);
}
.doc-card__actions .btn-sm { padding: .45rem .9rem; font-size: .72rem; border-radius: 40px; flex: 1; text-align: center; justify-content: center; }
.doc-card__actions .btn-primary.btn-sm { background: var(--green); color: #fff; border: none; font-weight: 800; transition: var(--transition); display: inline-flex; align-items: center; gap: .3rem; }
.doc-card__actions .btn-primary.btn-sm:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(29,185,84,.3); }
.doc-card__actions .btn-ghost.btn-sm { background: transparent; color: var(--green); border: 2px solid var(--green); font-weight: 800; transition: var(--transition); display: inline-flex; align-items: center; gap: .3rem; }
.doc-card__actions .btn-ghost.btn-sm:hover { background: var(--green); color: #fff; transform: translateY(-2px); }

/* No results */
.doc-no-results { text-align: center; padding: 4rem 2rem; }
.doc-no-results__icon { font-size: 4rem; margin-bottom: 1rem; }
.doc-no-results h3 { font-family: 'Lora', serif; font-size: 1.3rem; color: var(--navy); margin-bottom: .5rem; }
.doc-no-results p { font-size: .88rem; color: var(--gray); }

/* ─── SPECIALISATIONS CHIPS ──────────────────────────────── */
.doc-specs { padding: 5rem 0; background: var(--white); }
.specs-grid { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }
.spec-chip {
  padding: .6rem 1.3rem; background: var(--off-white);
  border: 1.5px solid var(--gray-light); border-radius: 9999px;
  font-size: .85rem; font-weight: 700; color: var(--navy);
  transition: var(--transition); cursor: default;
}
.spec-chip:hover { border-color: var(--green); color: var(--green); background: rgba(29,185,84,.05); transform: translateY(-2px); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .doc-filter__bar { flex-direction: column; }
  .doc-filter__search { min-width: 100%; }
  .doc-filter__selects { width: 100%; }
  .doc-filter__selects select { flex: 1; }
  .doc-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .doc-hero { padding: 4rem 1.5rem 3rem; }
  .doc-main, .doc-specs { padding: 3rem 0; }
}
@media (max-width: 480px) {
  .doc-card__meta { gap: .6rem; }
  .doc-card__actions { flex-direction: column; }
}
