/* ==========================================================================
   TERAPİYLE - PSİKOLOGLAR (UZMANLAR) LISTING PAGE STYLESHEET
   Harmonized with Homepage: Uses .filter-tabs, .experts-grid, .expert-card
   ========================================================================== */

/* Main Wrapper */
.experts-page-main {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-page);
  padding-bottom: 60px;
  min-height: 100vh;
}

/* ==========================================================================
   1. CONTROLS SECTION: SEARCH & FILTER BAR (TOP PADDING APPLIED)
   ========================================================================== */
.exp-controls-section {
  padding-top: 140px;
  padding-bottom: 16px;
  position: relative;
  z-index: 10;
}

.exp-search-box-wrap {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 8px 12px 8px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto 28px;
  box-shadow: 0 8px 24px -4px rgba(16, 42, 67, 0.06);
  transition: all var(--transition-fast);
}

.exp-search-box-wrap:focus-within {
  border-color: var(--primary);
  box-shadow:
    0 0 0 4px rgba(14, 130, 253, 0.12),
    0 10px 28px -4px rgba(16, 42, 67, 0.08);
}

.exp-search-icon {
  color: var(--text-muted);
  font-size: 18px;
  flex-shrink: 0;
}

.exp-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--text-heading);
  background: transparent;
  padding: 10px 0;
}

.exp-search-input::placeholder {
  color: #8da2b5;
}

.exp-search-clear-btn {
  background: none;
  border: none;
  color: #8da2b5;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: color var(--transition-fast);
}

.exp-search-clear-btn:hover {
  color: var(--text-heading);
}

.exp-filter-drawer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(14, 130, 253, 0.2);
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.exp-filter-drawer-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.exp-filter-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.exp-filter-drawer-btn:hover .exp-filter-badge {
  background: #ffffff;
  color: var(--primary);
}

/* Active Applied Filter Badges Bar */
.exp-active-tags-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 12px;
  padding-top: 10px;
}

.exp-active-tags-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.exp-active-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef6ff;
  border: 1px solid #c7e2fd;
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
}

.exp-active-tag-remove {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  opacity: 0.7;
}

.exp-active-tag-remove:hover {
  opacity: 1;
}

.exp-clear-all-link {
  font-size: 12.5px;
  font-weight: 700;
  color: #e53e3e;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background var(--transition-fast);
}

.exp-clear-all-link:hover {
  background: #fff5f5;
}

/* ==========================================================================
   2. RESULTS HEADER & SORTING
   ========================================================================== */
.exp-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.exp-results-count-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exp-results-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-heading);
}

.exp-results-badge {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
}

.exp-sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.exp-sort-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.exp-sort-select {
  appearance: none;
  background: var(--bg-white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2358708A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 8px 38px 8px 16px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
}

.exp-sort-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 130, 253, 0.12);
}

/* ==========================================================================
   3. EMPTY STATE
   ========================================================================== */
.exp-empty-state {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-white);
  border: 1px dashed var(--border-light);
  border-radius: 24px;
  margin-bottom: 50px;
}

.exp-empty-icon-wrap {
  width: 72px;
  height: 72px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

.exp-empty-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.exp-empty-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* ==========================================================================
   4. PAGINATION / LOAD MORE
   ========================================================================== */
.exp-pagination-wrap {
  text-align: center;
  margin-bottom: 70px;
}

.exp-progress-indicator {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.exp-progress-bar {
  width: 180px;
  height: 5px;
  background: #e2e8f0;
  border-radius: 9999px;
  margin: 0 auto 18px;
  overflow: hidden;
}

.exp-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.exp-load-more-btn {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--text-heading);
  padding: 12px 32px;
  border-radius: 9999px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 42, 67, 0.04);
  transition: all var(--transition-fast);
}

.exp-load-more-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: #badcfb;
  transform: translateY(-2px);
}

/* ==========================================================================
   5. INLINE TRUST SECTION
   ========================================================================== */
.exp-trust-section {
  margin-bottom: 60px;
}

.exp-trust-card {
  background: linear-gradient(135deg, #f0f7ff 0%, #eaf4ff 100%);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  gap: 40px;
}

.exp-trust-lead h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.25;
  margin-bottom: 10px;
}

.exp-trust-lead p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.exp-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.exp-trust-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-heading);
  background: rgba(255, 255, 255, 0.85);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #dceaf7;
}

.exp-trust-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eef8f2;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   6. BOTTOM QUESTIONNAIRE CTA
   ========================================================================== */
.exp-bottom-cta {
  background: linear-gradient(135deg, #102a43 0%, #075fc2 100%);
  border-radius: 28px;
  padding: 56px 64px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px -10px rgba(7, 95, 194, 0.3);
}

.exp-bottom-cta::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(
    circle,
    rgba(14, 130, 253, 0.4) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.exp-bottom-cta-text h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.exp-bottom-cta-text p {
  font-size: 16px;
  color: #badcfb;
  max-width: 560px;
  line-height: 1.6;
}

.exp-bottom-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #075fc2;
  border: none;
  padding: 16px 32px;
  border-radius: 9999px;
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-fast);
  flex-shrink: 0;
  text-decoration: none;
}

.exp-bottom-cta-btn:hover {
  background: #f0f7ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   7. DETAILED FILTER DRAWER / MODAL
   ========================================================================== */
.exp-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 42, 67, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.exp-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.exp-filter-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: var(--bg-white);
  box-shadow: -10px 0 36px rgba(16, 42, 67, 0.18);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.exp-filter-drawer.active {
  transform: translateX(0);
}

.exp-drawer-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.exp-drawer-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.exp-drawer-header p {
  font-size: 13px;
  color: var(--text-secondary);
}

.exp-drawer-close-btn {
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.exp-drawer-close-btn:hover {
  background: #e2e8f0;
  color: var(--text-heading);
}

.exp-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
}

.exp-filter-group {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #edf2f7;
}

.exp-filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.exp-filter-group-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.exp-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-heading);
  padding: 8px 0;
  cursor: pointer;
}

.exp-checkbox-label input[type="checkbox"],
.exp-checkbox-label input[type="radio"] {
  accent-color: var(--primary);
  width: 17px;
  height: 17px;
  cursor: pointer;
}

.exp-tag-picker-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-tag-option-btn {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  color: var(--text-heading);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.exp-tag-option-btn:hover {
  border-color: #badcfb;
  color: var(--primary);
}

.exp-tag-option-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.exp-drawer-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 12px;
  background: var(--bg-white);
}

.exp-drawer-reset-btn {
  flex: 1;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  color: var(--text-heading);
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.exp-drawer-reset-btn:hover {
  background: #e2e8f0;
}

.exp-drawer-apply-btn {
  flex: 1.5;
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.exp-drawer-apply-btn:hover {
  background: var(--primary-hover);
}

/* ==========================================================================
   8. QUICK PROFILE PREVIEW MODAL
   ========================================================================== */
.exp-profile-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 42, 67, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1005;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.exp-profile-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.exp-profile-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  background: var(--bg-white);
  border-radius: 24px;
  box-shadow: 0 24px 60px -12px rgba(16, 42, 67, 0.25);
  z-index: 1006;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.exp-profile-modal.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.exp-modal-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.exp-modal-profile-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.exp-modal-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-light);
}

.exp-modal-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.exp-modal-role {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.exp-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  max-height: calc(85vh - 160px);
}

.exp-modal-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.exp-modal-text {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 22px;
}

.exp-modal-footer {
  padding: 18px 28px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fbfdff;
}

.exp-modal-close-icon {
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.exp-modal-close-icon:hover {
  background: #e2e8f0;
  color: var(--text-heading);
}

/* ==========================================================================
   9. RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1080px) {
  .exp-trust-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .exp-bottom-cta {
    flex-direction: column;
    text-align: center;
    padding: 44px 36px;
  }

  .exp-bottom-cta-text p {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .exp-controls-section {
    padding-top: 90px;
    padding-bottom: 12px;
  }

  .exp-search-box-wrap {
    padding: 6px 8px 6px 14px;
    margin-bottom: 20px;
  }

  .exp-search-input {
    font-size: 14.5px;
  }

  .exp-filter-drawer-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .exp-results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .exp-sort-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .exp-trust-grid {
    grid-template-columns: 1fr;
  }

  .exp-filter-drawer {
    max-width: 100%;
  }

  .exp-profile-modal {
    width: 95%;
    max-height: 90vh;
  }
}

@media (max-width: 480px) {
  .exp-bottom-cta {
    padding: 36px 20px;
  }

  .exp-bottom-cta-text h2 {
    font-size: 24px;
  }

  .exp-bottom-cta-btn {
    width: 100%;
    justify-content: center;
  }
}
