/*
 * team.css
 * Stiluri pentru tabelul de membri ai departamentului
 * Integrat cu paleta TemplateMo Chain App Dev (#4b8ef1, Roboto)
 */

/* === Wrapper responsive pentru tabel === */
.team-table-wrapper {
  overflow-x: auto;
  margin-top: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  background: #fff;
  /* Fix: izolare stacking pentru a apărea deasupra pseudo-elementului decorativ
     `.about-us:after` (imaginea about-bg.jpg cu mașină/hartă) */
  position: relative;
  z-index: 2;
}

/* === Tabelul propriu-zis === */
.team-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #2a2a2a;
  background: #fff;
}

.team-table thead {
  background: linear-gradient(135deg, #4b8ef1 0%, #2f6fd6 100%);
}

.team-table thead th {
  padding: 16px 20px;
  text-align: left;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.team-table tbody tr {
  border-bottom: 1px solid #eef0f5;
  transition: background-color 0.2s ease;
}

.team-table tbody tr:last-child {
  border-bottom: none;
}

.team-table tbody tr:hover {
  background-color: #f7faff;
}

.team-table tbody td {
  padding: 18px 20px;
  vertical-align: top;
  line-height: 1.6;
}

/* === Celula cu numele cadrului didactic === */
.team-table .member-cell {
  width: 28%;
  min-width: 220px;
}

.team-table .member-cell a {
  color: #2a2a2a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.team-table .member-cell a:hover {
  color: #4b8ef1;
}

.team-table .member-cell strong {
  font-weight: 500;
  font-size: 15px;
  display: inline-block;
}

.team-table .member-cell .member-role {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #7a7a7a;
  font-style: italic;
  font-weight: 300;
}

/* === Celula cu disciplinele === */
.team-table .disciplines-cell {
  width: 42%;
  color: #555;
  font-size: 13px;
  line-height: 1.7;
}

/* === Celula CV === */
.team-table .cv-cell {
  width: 8%;
  min-width: 80px;
  text-align: center;
}

.team-table .cv-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 8px;
  background-color: #f5f8ff;
  color: #4b8ef1;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.team-table .cv-link i {
  font-size: 18px;
}

.team-table .cv-link .cv-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.team-table .cv-link:hover {
  background-color: #4b8ef1;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(75, 142, 241, 0.3);
}

/* === Celula cu profile de cercetător (text complet + iconițe) === */
.team-table .profiles-cell {
  width: 28%;
  min-width: 280px;
  font-size: 12px;
  line-height: 1.8;
}

.team-table .profile-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.team-table .profile-line:last-child {
  margin-bottom: 0;
}

.team-table .profile-line .profile-icon {
  flex-shrink: 0;
}

.team-table .profile-line .profile-text {
  color: #555;
  font-size: 12px;
  line-height: 1.4;
}

.team-table .profile-line .profile-text a {
  color: #4b8ef1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.team-table .profile-line .profile-text a:hover {
  color: #2f6fd6;
  text-decoration: underline;
}

.team-table .profile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.team-table .profile-orcid {
  background-color: #a6ce39;
}

.team-table .profile-wos {
  background-color: #5e33bf;
}

.team-table .profile-scopus {
  background-color: #e9711c;
}

.team-table .profile-scholar {
  background-color: #4285f4;
}

.team-table .profile-icon:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.team-table .profile-empty {
  color: #c0c0c0;
  font-size: 18px;
  font-weight: 300;
}

/* === Responsive: tablet și mobil === */
@media (max-width: 992px) {
  .team-table thead th,
  .team-table tbody td {
    padding: 14px 12px;
    font-size: 13px;
  }

  .team-table .member-cell strong {
    font-size: 14px;
  }

  .team-table .disciplines-cell {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .team-table {
    font-size: 12px;
  }

  .team-table .member-cell {
    min-width: 180px;
  }

  .team-table .profiles-cell {
    min-width: 240px;
  }

  .team-table .profile-icon {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .team-table .cv-link {
    padding: 6px 8px;
  }

  .team-table .cv-link i {
    font-size: 16px;
  }

  .team-table .cv-link .cv-label {
    font-size: 10px;
  }
}
