/* ============================================================
   Team Page Styles — GRIND Lab
   ============================================================ */

/* ── Director Section ── */
.director-full {
  max-width: 1200px; margin: 0 auto;
  padding: 64px 28px 48px;
  display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start;
}
.director-photo-full {
  position: relative;
}
.director-photo-full .photo-frame {
  width: 100%; aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--primary-light), var(--primary));
  border-radius: var(--radius-lg);
  overflow: hidden; position: relative;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 70px; color: rgba(255,255,255,0.2);
}
.director-photo-full .photo-frame img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.director-contact-card {
  background: var(--lighter);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px; margin-top: 16px;
}
.director-contact-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 13.5px; color: var(--text-dark);
}
.director-contact-item:last-child { border-bottom: none; padding-bottom: 0; }
.director-contact-item i { color: var(--accent); width: 16px; margin-top: 2px; flex-shrink: 0; }
.director-contact-item a { color: var(--accent); word-break: break-all; }
.director-info h2 { font-size: 38px; font-weight: 900; color: var(--text-dark); margin-bottom: 4px; }
.director-info .position { font-size: 18px; color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.director-info .department { font-size: 15px; color: var(--text-gray); margin-bottom: 24px; }
.director-bio-section { margin-bottom: 28px; }
.director-bio-section h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 14px; }
.director-bio-section p { font-size: 15px; color: var(--text-gray); line-height: 1.8; margin-bottom: 12px; }
.education-list { display: flex; flex-direction: column; gap: 10px; }
.edu-item { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--text-dark); }
.edu-item i { color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.edu-degree { font-weight: 600; display: block; margin-bottom: 1px; }
.edu-school { color: var(--text-gray); font-size: 13px; }
.research-interests-list { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-chip {
  background: var(--light); border: 1px solid rgba(0,150,183,0.15);
  color: var(--secondary); font-size: 13px; font-weight: 500;
  padding: 6px 15px; border-radius: 50px; cursor: default;
  transition: var(--transition);
}
.interest-chip:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.director-profile-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.profile-link-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; transition: var(--transition);
  border: 1.5px solid var(--border); color: var(--text-dark); background: var(--white);
}
.profile-link-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--light); }
.profile-link-btn i { font-size: 14px; }

/* ── Team Section Divider ── */
.team-section-divider { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.team-section-divider hr { border: none; border-top: 2px solid var(--border); margin: 0; }

/* ── Team Category ── */
.team-category { padding: 56px 28px; max-width: 1200px; margin: 0 auto; }
.team-category-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 36px;
}
.team-category-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--light); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.team-category-header h2 { font-size: 24px; font-weight: 800; color: var(--text-dark); }
.team-category-header .count { font-size: 14px; color: var(--text-light); }

/* ── Team Cards Grid ── */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--white); transition: var(--transition); overflow: hidden; text-align: center;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-card-photo {
  width: 100%; height: 200px;
  background: linear-gradient(160deg, var(--light), #d4efc0);
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; color: var(--accent); position: relative; overflow: hidden;
}
.team-card-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.team-card-body { padding: 20px; }
.team-card-body h3 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.team-card-role { font-size: 13px; color: var(--accent); font-weight: 500; margin-bottom: 6px; }
.team-card-dept { font-size: 12.5px; color: var(--text-light); margin-bottom: 12px; }
.team-card-research { font-size: 12.5px; color: var(--text-gray); line-height: 1.5; margin-bottom: 14px; }
.team-card-links { display: flex; justify-content: center; gap: 8px; }
.team-card-link {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--lighter); border: 1px solid var(--border);
  color: var(--text-gray); display: flex; align-items: center; justify-content: center;
  font-size: 13px; transition: var(--transition);
}
.team-card-link:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.team-card-tags { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-bottom: 12px; }

/* ── Placeholder / Join card ── */
.team-card.placeholder-card {
  background: var(--lighter);
  border-style: dashed; border-color: var(--border);
  cursor: default;
}
.team-card.placeholder-card:hover { transform: none; box-shadow: none; }
.team-placeholder-body {
  height: 100%; min-height: 240px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  padding: 28px; color: var(--text-light);
}
.team-placeholder-body i { font-size: 28px; color: var(--border); }
.team-placeholder-body span { font-size: 14px; font-weight: 600; }
.team-placeholder-body small { font-size: 12px; text-align: center; line-height: 1.5; }

/* ── Alumni Table ── */
.alumni-section { padding: 0 28px 64px; }
.alumni-container { max-width: 1200px; margin: 0 auto; }
.alumni-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
.alumni-table thead th {
  padding: 12px 16px; text-align: left;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-light); background: var(--lighter);
  border-bottom: 2px solid var(--border);
}
.alumni-table tbody tr { border-bottom: 1px solid var(--border-light); transition: var(--transition); }
.alumni-table tbody tr:hover { background: var(--lighter); }
.alumni-table td { padding: 14px 16px; color: var(--text-dark); }
.alumni-table td .name { font-weight: 600; }
.alumni-table td .degree { color: var(--accent); font-size: 13px; }
.alumni-table td .placement { color: var(--text-gray); }
.alumni-table td .year { color: var(--text-light); }

/* ── Collaborators ── */
.collab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.collab-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; transition: var(--transition);
  display: flex; gap: 14px; align-items: flex-start;
}
.collab-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.collab-avatar {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: var(--light); display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--accent); font-weight: 700;
}
.collab-info h4 { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 3px; }
.collab-info .collab-title { font-size: 12.5px; color: var(--text-gray); margin-bottom: 4px; }
.collab-info .collab-inst { font-size: 12px; color: var(--text-light); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .collab-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .director-full { grid-template-columns: 1fr; gap: 40px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .collab-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
}
