/* ========================================================
   Connections page custom styles
   ========================================================
   - Badge coloring (student / professor / industry / founder)
   - Single-column list (clean, no grid)
   - Mobile-friendly full-row click targets
   ======================================================== */

/* ---- Base: section spacing ---- */
h2 {
  margin-top: 3rem !important;
  padding-top: 1rem !important;
}

/* ---- Global link color ---- */
a {
  color: #4a5568;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #2b6cb0;
}

/* ---- List reset ---- */
ul {
  list-style: none;
  padding-left: 0;
}
ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.2s ease;
}
ul li:hover {
  background-color: #f7fafc;
  padding-left: 0.5rem;
}

/* ================================
   BADGE SYSTEM
   ================================ */
.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.03em;
  margin-right: 0.4rem;
  white-space: nowrap;
}

.badge-student   { background: #3182ce; color: #fff; }   /* blue */
.badge-professor { background: #d69e2e; color: #fff; }   /* gold */
.badge-industry  { background: #38a169; color: #fff; }   /* green */
.badge-founder   { background: #805ad5; color: #fff; }   /* purple */

/* ================================
   CARD GRID (single column)
   ================================ */
.connection-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.connection-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.2s ease;
  cursor: pointer;
}
.connection-item:hover {
  background-color: #f7fafc;
}
.connection-item .connection-name {
  font-weight: 600;
  color: #1a202c;
  text-decoration: none;
  flex-shrink: 0;
}
.connection-item .connection-name:hover {
  color: #2b6cb0;
}
.connection-item .affiliation {
  color: #718096;
  font-size: 0.9rem;
}
.connection-item .badge {
  flex-shrink: 0;
}

/* ================================
   RESPONSIVE / MOBILE
   ================================ */
@media (max-width: 768px) {
  h2 {
    margin-top: 2rem !important;
  }
  .connection-item {
    padding: 0.55rem 0.6rem;
    gap: 0.4rem;
  }
  .connection-item .badge {
    font-size: 0.68rem;
  }
  .connection-item .affiliation {
    font-size: 0.82rem;
    display: none;    /* hide org on small screens to save space */
  }
  .connection-list {
    max-width: 100%;
  }
}