$surface: #ffffff;
$border: #e2e8f0;
$primary: #1b64f2;
$muted: #6b7280;
$text: #0f172a;
$danger: #e11d48;

:host {
  display: block;
}

.doctors-section {
  margin: 1.5rem auto;
  max-width: 1400px;
  background: $surface;
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 25px 55px rgba(15, 23, 42, 0.12);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;

  h2 {
    margin: 0;
    font-size: 1.4rem;
    color: $text;
  }

  p {
    margin: 0.2rem 0 0;
    color: $muted;
  }
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.doctor-card {
  border: 1px solid $border;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(247, 250, 255, 0.9), #fff);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);

  &:hover {
    border-color: rgba($primary, 0.4);
    transform: translateY(-3px);
  }
}

.doctor-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.doctor-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba($primary, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  .avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.doctor-info {
  flex: 1;
}

.doctor-name {
  margin: 0;
  font-size: 1.05rem;
  color: $text;
}

.doctor-specialization {
  margin: 0;
  color: $muted;
  font-size: 0.9rem;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  font-size: 0.8rem;
  font-weight: 600;
}

.doctor-details {
  color: $muted;
  font-size: 0.9rem;

  p {
    margin: 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }
}

.doctor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.view-profile-btn,
.btn-remove {
  border-radius: 12px;
  padding: 0.6rem 1rem;
  border: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.view-profile-btn {
  background: rgba($primary, 0.12);
  color: $primary;
}

.btn-remove {
  background: rgba($danger, 0.08);
  color: $danger;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  border-radius: 18px;
  border: 2px dashed rgba(148, 163, 184, 0.6);
  color: $muted;

  .empty-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  border-radius: 24px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.25);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;

  h2 {
    margin: 0;
    font-size: 1.3rem;
  }
}

.modal-close {
  border: none;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.profile-full-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-section {
  border: 1px solid $border;
  border-radius: 16px;
  padding: 1rem;

  h3 {
    margin: 0 0 0.75rem;
    color: $text;
  }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.03);
}

.info-label {
  font-size: 0.85rem;
  color: $muted;
}

.info-value {
  font-weight: 600;
  color: $text;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba($primary, 0.1);
  color: $primary;
  font-weight: 600;
  font-size: 0.9rem;
}

.biography-text {
  margin: 0;
  color: $muted;
  line-height: 1.5;
}

