/**
 * KDF shortcode styles for Homeo Doctor BD
 * Used by [top_doctors layout="location-specialists"|"table"] and helper shortcodes.
 */

.kdf-specialists-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
  border-top: 1px solid rgba(226, 232, 240, 0.32);
  padding-top: 20px;
}

.dark .kdf-specialists-container {
  border-top-color: rgba(55, 65, 81, 0.5);
}

.kdf-specialist-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0f9ff;
  color: #0369a1;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  border: 1px solid #bae6fd !important;
  transition: all 0.2s ease;
  width: 100%;
  justify-content: center;
  text-align: center;
}

.kdf-specialist-link:hover {
  background: #e0f2fe;
  color: #0284c7;
}

.dark .kdf-specialist-link {
  background: rgba(12, 74, 110, 0.3);
  color: #7dd3fc;
  border-color: #0c4a6e;
}

.dark .kdf-specialist-link:hover {
  background: rgba(12, 74, 110, 0.5);
  color: #bae6fd;
}

.kdf-specialist-count {
  background: #dbeafe;
  color: #1e40af;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 12px;
}

.dark .kdf-specialist-count {
  background: rgba(30, 64, 175, 0.4);
  color: #93c5fd;
}

.kdf-female-specialist-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #faf5ff;
  color: #6b21a8;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  border: 1px solid #d8b4fe;
  transition: opacity 0.2s ease;
}

.kdf-female-specialist-link:hover {
  opacity: 0.9;
}

.dark .kdf-female-specialist-link {
  background: rgba(88, 28, 135, 0.3);
  color: #e9d5ff;
  border-color: #6b21a8;
}

.kdf-female-specialist-count {
  font-size: 12px;
  opacity: 0.9;
}

.kdf-top-doctors-table-wrap {
  width: 100%;
  margin: 0;
}

.kdf-top-doctors-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  table-layout: fixed;
}

.dark .kdf-top-doctors-table {
  background: #1f2937;
  color: #f9fafb;
}

.kdf-table-header th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e5e7eb;
}

.dark .kdf-table-header th {
  border-bottom-color: #374151;
}

.kdf-table-body {
  background: #ffffff;
}

.dark .kdf-table-body {
  background: #1f2937;
}

.kdf-table-row {
  border-bottom: 1px solid #f3f4f6;
}

.kdf-table-row:nth-child(odd) {
  background-color: rgba(245, 245, 245, 0.45);
}

.dark .kdf-table-row:nth-child(odd) {
  background-color: rgba(31, 41, 55, 0.65);
}

.kdf-table-row:hover {
  background-color: #f8fafc;
}

.dark .kdf-table-row:hover {
  background-color: #111827;
}

.kdf-table-row:last-child {
  border-bottom: none;
}

.dark .kdf-table-row {
  border-bottom-color: #374151;
}

.kdf-col-rank {
  width: 2.75rem;
  text-align: center;
  font-weight: 700;
  color: #0f766e;
  font-size: 1.125rem;
  line-height: 1.25;
  padding: 10px 4px;
  vertical-align: top;
}

.dark .kdf-col-rank {
  color: #5eead4;
}

.kdf-col-doctor {
  padding: 10px 12px 10px 8px;
  vertical-align: top;
}

.kdf-doctor-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.kdf-doctor-avatar {
  flex-shrink: 0;
}

.kdf-avatar-img {
  display: block;
  width: 5.75rem;
  height: 7.25rem;
  border-radius: 0.5rem;
  object-fit: cover;
  object-position: top center;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.dark .kdf-avatar-img {
  border-color: #374151;
  background: #111827;
}

.kdf-avatar-img--fallback {
  object-fit: contain;
  object-position: center;
  padding: 0.2rem;
  background: #f3f4f6;
}

.dark .kdf-avatar-img--fallback {
  background: #1f2937;
}

.kdf-doctor-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.single-content-area .kdf-doctor-name,
.kdf-doctor-name {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.kdf-doctor-name a {
  border-bottom: none !important;
}

.kdf-doctor-link {
  color: #0f766e;
  text-decoration: none;
}

.kdf-doctor-link:hover {
  color: #115e59;
}

.dark .kdf-doctor-link {
  color: #5eead4;
}

.dark .kdf-doctor-link:hover {
  color: #99f6e4;
}

.single-content-area .kdf-doctor-degree,
.single-content-area .kdf-doctor-specialty,
.single-content-area .kdf-doctor-designation,
.single-content-area .kdf-doctor-hospital,
.single-content-area .kdf-doctor-experience,
.kdf-doctor-degree,
.kdf-doctor-specialty,
.kdf-doctor-designation,
.kdf-doctor-hospital,
.kdf-doctor-experience {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.25 !important;
}

.kdf-doctor-degree {
  font-size: 0.9375rem !important;
  color: #4b5563;
  font-weight: 500;
}

.dark .kdf-doctor-degree {
  color: #d1d5db;
}

.kdf-doctor-specialty {
  font-size: 0.9375rem !important;
  color: #0f766e;
  font-weight: 600;
}

.dark .kdf-doctor-specialty {
  color: #5eead4;
}

.kdf-doctor-designation {
  font-size: 0.875rem !important;
  color: #374151;
  font-weight: 600;
}

.dark .kdf-doctor-designation {
  color: #d1d5db;
}

.kdf-doctor-hospital {
  font-size: 0.8125rem !important;
  color: #6b7280;
  font-weight: 500;
}

.dark .kdf-doctor-hospital {
  color: #9ca3af;
}

.kdf-doctor-experience {
  font-size: 0.8125rem !important;
  color: #047857;
  font-weight: 600;
}

.dark .kdf-doctor-experience {
  color: #6ee7b7;
}

.kdf-no-results-message {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  padding: 24px 12px;
  font-size: 14px;
  line-height: 1.3;
}

.dark .kdf-no-results-message {
  color: #9ca3af;
}

@media (max-width: 768px) {
  .kdf-table-header th {
    padding: 8px 10px;
    font-size: 12px;
  }

  .kdf-col-rank {
    width: 2.25rem;
    font-size: 1rem;
    padding: 8px 3px;
  }

  .kdf-col-doctor {
    padding: 8px 10px 8px 6px;
  }

  .kdf-doctor-info {
    gap: 10px;
  }

  .kdf-avatar-img {
    width: 5rem;
    height: 6.375rem;
    border-radius: 0.4375rem;
  }

  .single-content-area .kdf-doctor-name,
  .kdf-doctor-name {
    font-size: 1rem !important;
  }

  .kdf-doctor-degree,
  .kdf-doctor-specialty {
    font-size: 0.875rem !important;
  }

  .kdf-doctor-designation {
    font-size: 0.8125rem !important;
  }

  .kdf-doctor-hospital,
  .kdf-doctor-experience {
    font-size: 0.75rem !important;
  }
}

@media (max-width: 480px) {
  .kdf-top-doctors-table {
    margin: 8px 0;
  }

  .kdf-col-rank {
    width: 2rem;
    font-size: 0.9375rem;
    padding: 8px 2px;
  }

  .kdf-col-doctor {
    padding: 8px 8px 8px 4px;
  }

  .kdf-doctor-info {
    gap: 9px;
  }

  .kdf-avatar-img {
    width: 4.5rem;
    height: 5.75rem;
    border-radius: 0.375rem;
  }

  .single-content-area .kdf-doctor-name,
  .kdf-doctor-name {
    font-size: 0.9375rem !important;
  }

  .kdf-doctor-degree,
  .kdf-doctor-specialty {
    font-size: 0.8125rem !important;
  }

  .kdf-doctor-designation {
    font-size: 0.75rem !important;
  }

  .kdf-doctor-hospital,
  .kdf-doctor-experience {
    font-size: 0.6875rem !important;
  }

  .kdf-doctor-details {
    gap: 2px;
  }
}

/* Google featured-snippet doctor name list */
.abdbd-featured-snippet {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #B3DBF1;
  border-radius: 0.75rem;
  background: #EEF7FC;
}

.dark .abdbd-featured-snippet {
  border-color: #0B426C;
  background: rgba(11, 66, 108, 0.15);
}

.abdbd-featured-snippet__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: #333333;
}

.dark .abdbd-featured-snippet__title {
  color: #f9fafb;
}

.abdbd-featured-snippet__intro {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #4b5563;
}

.dark .abdbd-featured-snippet__intro {
  color: #d1d5db;
}

.abdbd-featured-snippet__list-title {
  margin: 0 0 0.625rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0F766E;
}

.dark .abdbd-featured-snippet__list-title {
  color: #7FC2E5;
}

.abdbd-featured-snippet__list {
  margin: 0;
  padding: 0;
  list-style: none;
  margin-bottom: 0 !important;
}

.abdbd-featured-snippet__item {
  margin: 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 119, 194, 0.12);
  margin-bottom: 0 !important;
}

.abdbd-featured-snippet__item::before {
  top: 12px !important;
}

.abdbd-featured-snippet__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.abdbd-featured-snippet__link {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
  color: #0D9488;
  text-decoration: none;
  transition: color 0.15s ease;
  border-bottom: none !important;
}

.abdbd-featured-snippet__link:hover {
  color: #0F766E;
  text-decoration: underline;
}

.dark .abdbd-featured-snippet__link {
  color: #7FC2E5;
}

.dark .abdbd-featured-snippet__link:hover {
  color: #EEF7FC;
}

/* Doctors directory listing SEO block (before specialist link lists) */
.abdbd-doctors-listing-seo {
  margin: 0 0 1.25rem;
}

.abdbd-doctors-listing-seo__title {
  margin: 0 0 0.875rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
}

.dark .abdbd-doctors-listing-seo__title {
  color: #f9fafb;
}

.abdbd-doctors-listing-seo__body {
  display: grid;
  gap: 0.875rem;
}

.abdbd-doctors-listing-seo__paragraph {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #4b5563;
}

.dark .abdbd-doctors-listing-seo__paragraph {
  color: #d1d5db;
}
