/* ============ Employee Directory — Premium Minimal ============ */
:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --ink: #111111;
  --ink-soft: #4b4b4b;
  --muted: #8a8a8a;
  --line: #ececec;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.06);

  /* Department palettes (subtle pastels) */
  --badge-admin-bg: #fff3cd;     --badge-admin-fg: #8a6500;
  --badge-support-bg: #efe7ff;   --badge-support-fg: #5a3dbf;
  --badge-dev-bg: #e3efff;       --badge-dev-fg: #1f5fcf;
  --badge-sales-bg: #ffe1ea;     --badge-sales-fg: #b8294f;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 28px 80px;
}

/* ---------- Hero ---------- */
.hero { text-align: center; margin-bottom: 36px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.18em; color: var(--ink-soft);
  text-transform: uppercase; font-weight: 600;
}
.hero-eyebrow .dash {
  width: 24px; height: 1px; background: var(--ink-soft); display: inline-block;
}
.hero-title {
  font-family: 'Poppins', serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  margin: 14px 0 10px;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 14px; color: var(--ink-soft); margin: 0 auto 28px; max-width: 520px;
}

/* ---------- Filter bar ---------- */
.filter-bar {
  display: inline-flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; padding: 6px; background: transparent;
}
.filter-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--ink-soft);
  background: transparent; border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 16px; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.filter-btn i { font-size: 14px; }
.filter-btn:hover { color: var(--ink); border-color: #d6d6d6; }
.filter-btn.is-active {
  background: #0d0d0d; color: #fff; border-color: #0d0d0d;
}
.filter-btn .count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  font-size: 11px; font-weight: 600;
  background: rgba(0,0,0,0.06); color: inherit;
  border-radius: 999px;
}
.filter-btn.is-active .count { background: rgba(255,255,255,0.18); }

/* ---------- Grid layout ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  margin-top: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ---------- Featured card ---------- */
.featured-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.featured-photo {
  width: 100%; aspect-ratio: 4 / 4.2;
  object-fit: cover; object-position: center top;
  background: #eee;
}
.featured-body { padding: 20px 22px 22px; }
.featured-name {
  font-size: 20px; font-weight: 700; margin: 4px 0 4px; letter-spacing: -0.01em;
}
.featured-role {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  color: #5a3dbf; text-transform: uppercase; margin-bottom: 12px;
}
.featured-bio {
  font-size: 12.5px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 16px;
}
.social-row {
  display: flex; gap: 8px; margin-bottom: 18px;
}
.social-row a {
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); font-size: 13px; text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.social-row a:hover { background: #0d0d0d; color: #fff; border-color: #0d0d0d; }

.expertise-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 10px;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11px; font-weight: 500; color: var(--ink);
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px;
  background: #fafafa;
}

/* ---------- Standard grid (right) ---------- */
.standard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1200px) { .standard-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .standard-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .standard-grid { grid-template-columns: 1fr; } }

.member-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.member-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.member-photo-wrap { position: relative; }
.member-photo {
  width: 100%; aspect-ratio: 1 / 1.05;
  object-fit: cover; object-position: center top;
  background: #eee;
}
.badge {
  position: absolute; left: 12px; bottom: 12px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 5px 10px; border-radius: 6px;
}
.badge--admin   { background: var(--badge-admin-bg);   color: var(--badge-admin-fg); }
.badge--support { background: var(--badge-support-bg); color: var(--badge-support-fg); }
.badge--dev     { background: var(--badge-dev-bg);     color: var(--badge-dev-fg); }
.badge--sales   { background: var(--badge-sales-bg);   color: var(--badge-sales-fg); }

.featured-card .badge--featured {
  display: inline-block; margin-bottom: 10px; position: static;
}

.member-body { padding: 14px 16px 16px; }
.member-name {
  font-size: 14px; font-weight: 600; margin: 0 0 4px; letter-spacing: -0.005em;
}
.member-role { font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.member-card .social-row { margin-bottom: 0; }
.member-card .social-row a { width: 28px; height: 28px; font-size: 12px; }

/* Empty state */
.empty {
  grid-column: 1 / -1;
  padding: 60px 20px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius); background: #fff;
}


/* ---------- Controls Row Positioning ---------- */
.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px auto 0;
  max-width: 100%;
  flex-wrap: wrap;
}

/* Search Box Styling */
.search-box { position: relative; display: inline-flex; align-items: center; }
.search-box i { position: absolute; left: 14px; color: var(--muted); font-size: 14px; }
.search-box input {
  padding: 9px 16px 9px 38px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  outline: none;
  width: 240px;
  transition: border-color .18s ease;
}
.search-box input:focus { border-color: var(--ink-soft); }

/* View Toggle Container */
.view-toggle {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.03);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.toggle-btn {
  background: transparent; border: none;
  width: 32px; height: 32px; border-radius: 999px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all .18s ease;
}
.toggle-btn:hover { color: var(--ink); }
.toggle-btn.is-active {
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm);
}

/* ---------- PREMIUM LIST VIEW ENGINE ---------- */
/* Jab JS '#standardGrid' par '.is-list' class lagayega */
.standard-grid.is-list {
  grid-template-columns: 1fr; /* Single column card row stack */
  gap: 12px;
}

.standard-grid.is-list .member-card {
  flex-direction: row; /* Card structural flow turns horizontal */
  align-items: center;
  padding: 10px 16px;
}

.standard-grid.is-list .member-card:hover { transform: translateX(4px); } /* Sleek side slide on hover */

.standard-grid.is-list .member-photo-wrap {
  width: 52px; height: 52px;
  flex-shrink: 0; border-radius: 8px; overflow: hidden;
}

.standard-grid.is-list .member-photo { aspect-ratio: 1/1; height: 100%; }

/* Hide absolute badge on small photo container, show neatly inside list metadata instead */
.standard-grid.is-list .member-photo-wrap .badge { display: none; }

.standard-grid.is-list .member-body {
  padding: 0 0 0 16px;
  display: grid;
  grid-template-columns: 2.5fr 2fr 1fr; /* Table row structure distribution */
  align-items: center;
  width: 100%;
}

.standard-grid.is-list .member-name { margin: 0; font-size: 13.5px; }
.standard-grid.is-list .member-role { margin: 0; font-size: 12.5px; color: var(--ink-soft); }
.standard-grid.is-list .social-row { margin: 0; justify-content: flex-end; }

/* Responsive adjustments for Controls & List structure */
@media (max-width: 1024px) {
  .controls-row { flex-direction: column; gap: 14px; }
}
@media (max-width: 640px) {
  .standard-grid.is-list .member-body {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .standard-grid.is-list .social-row { justify-content: flex-start; margin-top: 6px; }
}