/* ============================================================
   VERBLISH — Teachers Browse Page & Cards
   css/teachers.css
   ============================================================ */

/* ══════════════════════════════════════════
   PAGE HERO
══════════════════════════════════════════ */
.teachers-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1a3a2a 100%);
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.teachers-hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(60, 184, 122, 0.08);
  top: -150px; left: -100px;
}
.teachers-hero::after {
  content: '';
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: rgba(74, 174, 217, 0.06);
  bottom: -100px; right: -50px;
}
.th-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(60, 184, 122, 0.15);
  color: var(--green);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.th-eyebrow .dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.th-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 14px;
  position: relative; z-index: 1;
}
.th-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.6;
  position: relative; z-index: 1;
}

/* Search bar */
.th-search-bar {
  display: flex;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
  position: relative; z-index: 1;
}
.th-search-input-wrap {
  flex: 1;
  position: relative;
}
.th-search-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 1rem; color: var(--gray-400);
}
.th-search-input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  border-radius: var(--radius-xl);
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.th-search-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.th-search-input:focus {
  outline: none;
  border-color: var(--green);
  background: rgba(255, 255, 255, 0.12);
}

/* ══════════════════════════════════════════
   MAIN LAYOUT
══════════════════════════════════════════ */
.teachers-main { padding: 48px 0 80px; background: var(--off-white); }

.teachers-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

/* ══════════════════════════════════════════
   FILTERS PANEL
══════════════════════════════════════════ */
.filters-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-200);
  padding: 24px;
  position: sticky;
  top: 84px;
}
.filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
}
.filter-panel-header h3 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1rem;
  color: var(--dark);
}
.filter-reset-btn {
  font-size: 0.78rem;
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.filter-reset-btn:hover { color: var(--blue-dark); }

.filter-group { margin-bottom: 24px; }
.filter-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
  margin-bottom: 10px;
}

/* Checkbox/radio chips */
.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
}
.filter-chip input { display: none; }
.filter-chip:hover { border-color: var(--green); color: var(--green); }
.filter-chip.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* Price range */
.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.price-input-group {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex: 1;
}
.price-currency {
  padding: 8px 8px;
  background: var(--gray-100);
  font-size: 0.82rem;
  color: var(--gray-400);
  font-weight: 600;
}
.price-input {
  flex: 1;
  border: none;
  padding: 8px 10px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--dark);
  width: 60px;
}
.price-input:focus { outline: none; }
.price-separator { color: var(--gray-400); font-size: 0.8rem; flex-shrink: 0; }

/* Range slider */
.range-slider {
  width: 100%;
  appearance: none;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: 99px;
  cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--green);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--gray-400);
  margin-top: 6px;
}

/* Rating buttons */
.rating-options { display: flex; flex-wrap: wrap; gap: 6px; }
.rating-btn {
  padding: 5px 12px;
  border-radius: 99px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-size: 0.78rem; font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
}
.rating-btn:hover { border-color: #f59e0b; color: #f59e0b; }
.rating-btn.active { background: #f59e0b; border-color: #f59e0b; color: #fff; }

/* Free trial toggle */
.filter-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.toggle-switch {
  position: relative;
  width: 44px; height: 24px;
}
.toggle-switch input { display: none; }
.toggle-thumb {
  position: absolute;
  inset: 0;
  background: var(--gray-200);
  border-radius: 99px;
  transition: var(--transition);
}
.toggle-thumb::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.toggle-switch input:checked + .toggle-thumb { background: var(--green); }
.toggle-switch input:checked + .toggle-thumb::after { transform: translateX(20px); }

/* Skeleton in filter */
.filter-skeleton {
  height: 28px;
  width: 100%;
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 99px;
}

/* Mobile apply button (hidden on desktop) */
.filter-apply-btn { display: none; width: 100%; justify-content: center; margin-top: 8px; }

/* ══════════════════════════════════════════
   RESULTS PANEL
══════════════════════════════════════════ */
.results-panel {}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.results-count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
}
.results-controls { display: flex; align-items: center; gap: 10px; }

.sort-label {
  font-size: 0.82rem;
  color: var(--gray-400);
  font-weight: 600;
}
.sort-select {
  appearance: none;
  padding: 8px 32px 8px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--dark);
  background: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239aa5b1' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  transition: var(--transition);
}
.sort-select:focus { outline: none; border-color: var(--green); }

/* Mobile filter toggle button */
.filter-toggle-btn {
  padding: 8px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--gray-700);
  background: var(--white);
  cursor: pointer;
  display: none;
  transition: var(--transition);
}
.filter-toggle-btn:hover { border-color: var(--green); color: var(--green); }

/* Active filter chips */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  min-height: 0;
}
.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
}
.chip-remove {
  font-size: 0.65rem;
  color: var(--green-dark);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}
.chip-remove:hover { color: var(--green); }

/* ══════════════════════════════════════════
   TEACHER CARDS GRID
══════════════════════════════════════════ */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

/* ── Individual Teacher Card ── */
.tc-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tc-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 30px rgba(60, 184, 122, 0.14);
  transform: translateY(-4px);
}

/* Top: avatar + name */
.tc-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tc-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green), var(--blue));
  display: flex; align-items: center; justify-content: center;
}
.tc-avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.tc-avatar-initials {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}
.tc-verified-dot {
  position: absolute;
  bottom: 0; right: 0;
  width: 18px; height: 18px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; color: #fff; font-weight: 700;
}
.tc-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.98rem;
  color: var(--dark);
  margin-bottom: 2px;
}
.tc-country {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* Badges */
.tc-badges {
  display: flex; flex-wrap: wrap; gap: 5px;
}
.tc-badge {
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.tc-badge-verified { background: var(--green-light); color: var(--green-dark); }
.tc-badge-trial    { background: var(--blue-light);  color: var(--blue-dark); }
.tc-badge-exp      { background: var(--gray-100);    color: var(--gray-600); }

/* Tags */
.tc-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tc-tag {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.7rem; font-weight: 600;
  background: var(--green-light);
  color: var(--green-dark);
}
.tc-tag-blue { background: var(--blue-light); color: var(--blue-dark); }

/* Footer: rating + price */
.tc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.tc-rating { display: flex; align-items: center; gap: 4px; }
.tc-stars { color: #f59e0b; font-size: 0.8rem; letter-spacing: -1px; }
.tc-rating-num {
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.85rem;
  color: var(--dark);
}
.tc-review-count { font-size: 0.72rem; color: var(--gray-400); }
.tc-price-amount {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.2rem;
  color: var(--green);
}
.tc-price-unit { font-size: 0.72rem; color: var(--gray-400); }

/* Book button */
.tc-btn-book {
  width: 100%;
  background: var(--green);
  color: #fff;
  padding: 11px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.88rem;
  transition: var(--transition);
  cursor: pointer; border: none;
}
.tc-btn-book:hover { background: var(--green-dark); transform: translateY(-1px); }

/* ══════════════════════════════════════════
   SKELETON LOADING CARDS
══════════════════════════════════════════ */
.tc-skeleton {
  pointer-events: none;
  gap: 14px;
}
.tc-skeleton .tc-top { gap: 12px; }
.tc-skel-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  flex-shrink: 0;
}
.tc-skel-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 6px;
}
.tc-skel-wide   { width: 80%; }
.tc-skel-narrow { width: 50%; }
.tc-skel-price  { width: 30%; }
.tc-skel-tag {
  display: inline-block;
  width: 70px; height: 24px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.tc-skel-btn {
  width: 100%; height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ══════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════ */
.teachers-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 32px;
  text-align: center;
}
.teachers-empty .empty-icon { font-size: 3rem; margin-bottom: 16px; }
.teachers-empty h3 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.2rem;
  color: var(--dark); margin-bottom: 8px;
}
.teachers-empty p { color: var(--gray-400); margin-bottom: 20px; }

/* Error state */
.tc-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: var(--gray-400);
}

/* ══════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 0;
}
.page-btn {
  padding: 8px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.82rem;
  color: var(--gray-700);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
}
.page-btn:hover { border-color: var(--green); color: var(--green); }
.page-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.page-ellipsis { color: var(--gray-400); padding: 0 4px; font-size: 0.9rem; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .teachers-layout { grid-template-columns: 240px 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .teachers-layout { grid-template-columns: 1fr; }

  .filters-panel {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 300px;
    z-index: 500;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    border-radius: 0;
  }
  .filters-panel.mobile-open { transform: translateX(0); }

  .filter-toggle-btn  { display: flex; }
  .filter-apply-btn   { display: flex; }

  .teachers-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

  .th-search-bar { flex-direction: column; }
}

@media (max-width: 480px) {
  .teachers-grid { grid-template-columns: 1fr; }
  .results-header { flex-direction: column; align-items: flex-start; }
}
