/* Custom styles for SHI Collaboration Profiles */

/* Profile Cards Grid */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.profile-card {
  background: #f8f9fa;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-card-image, .profile-card-image-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.profile-card-image-placeholder {
  background: #0366d6;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
}

.profile-card h3 {
  margin: 0 0 0.5rem 0;
  color: #24292e;
}

.profile-card h3 a {
  text-decoration: none;
  color: #0366d6;
}

.profile-card h3 a:hover {
  text-decoration: underline;
}

.profile-card-title {
  font-weight: 600;
  color: #586069;
  margin: 0 0 0.25rem 0;
}

.profile-card-org {
  color: #6a737d;
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
}

.profile-card-bio {
  line-height: 1.5;
  margin-bottom: 1rem;
  color: #24292e;
}

.profile-card-links {
  display: flex;
  gap: 0.5rem;
}

.profile-card-links a {
  text-decoration: none;
  font-size: 1.2rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.profile-card-links a:hover {
  opacity: 1;
}

/* Individual Profile Page Styles */
.profile-container {
  max-width: 800px;
  margin: 0 auto;
}

.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e1e4e8;
}

.profile-image, .profile-image-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-image-placeholder {
  background: #0366d6;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
}

.profile-info h1 {
  margin: 0 0 0.5rem 0;
  color: #24292e;
  font-size: 2.5rem;
}

.profile-info h2 {
  margin: 0 0 0.5rem 0;
  color: #586069;
  font-size: 1.5rem;
  font-weight: 600;
}

.profile-info h3 {
  margin: 0 0 1.5rem 0;
  color: #6a737d;
  font-size: 1.2rem;
  font-weight: 400;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #f1f8ff;
  border: 1px solid #c8e1ff;
  border-radius: 6px;
  text-decoration: none;
  color: #0366d6;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.profile-link:hover {
  background: #e1f5ff;
  border-color: #a2cbff;
  text-decoration: none;
}

.profile-bio {
  margin-bottom: 2rem;
}

.profile-bio h3 {
  color: #24292e;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.profile-bio p {
  line-height: 1.6;
  color: #24292e;
  font-size: 1.1rem;
}

.profile-content {
  margin-bottom: 2rem;
}

.profile-content h2 {
  color: #24292e;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e1e4e8;
  padding-bottom: 0.5rem;
}

.profile-content h3 {
  color: #24292e;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.profile-content ul {
  line-height: 1.6;
}

.profile-navigation {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e1e4e8;
}

.back-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #fafbfc;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  text-decoration: none;
  color: #586069;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.back-link:hover {
  background: #f3f4f6;
  border-color: #d0d7de;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profiles-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .profile-image, .profile-image-placeholder {
    width: 120px;
    height: 120px;
    align-self: center;
  }
  
  .profile-info h1 {
    font-size: 2rem;
  }
  
  .profile-links {
    justify-content: center;
  }
}