/* Responsive CSS for Group Members Popup */

/* Default grid styles */
#members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  justify-content: space-between;
}

/* Member item styling */
.member-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  transition: transform 0.2s ease-in-out;
}

.member-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Member photo */
.member-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  margin-bottom: 10px;
}

/* Member info */
.member-info {
  text-align: center;
  width: 100%;
}

.member-info h3 {
  margin: 0 0 3px 0;
  color: #0e0f3d;
  font-size: 1.1em;
}

.member-role {
  margin: 0 0 2px 0;
  color: #666;
  font-size: 0.9em;
}

.member-company {
  margin: 0 0 2px 0;
  color: #666;
  font-size: 0.9em;
}

.member-company a {
  color: #0e0f3d;
  text-decoration: none;
}

.member-email, .member-phone {
  margin: 0 0 2px 0;
  color: #666;
  font-size: 0.85em;
}

.member-email a, .member-phone a {
  color: #0e0f3d;
  text-decoration: none;
}

.member-website {
  display: inline-block;
  margin-top: 5px;
  color: #0e0f3d;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
}

.member-phone-call {
  display: inline-block;
  margin-top: 5px;
  color: #0e0f3d;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
  background-color: #f8f9fa;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.member-phone-call:hover {
  background-color: #0e0f3d;
  color: white;
  transform: translateY(-1px);
}

.member-tier {
  margin: 0 0 5px 0;
}

.tier-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: white;
}

/* Group members container styles */
#group-members-container {
  width: 100vw;
  max-width: 100%;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Large tablets and smaller screens */
@media (max-width: 992px) {
  #members-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    padding: 0 15px;
  }
  
  .member-item {
    max-width: 100%;
  }
}

/* Mobile devices */
@media (max-width: 576px) {
  #members-grid {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }
  
  .member-item {
    max-width: 100%;
    padding: 12px;
  }
  
  .member-info h3 {
    font-size: 1.1em;
  }
  
  .member-info p {
    font-size: 0.9em;
  }
}

/* Fix for profile photos on small screens */
@media (max-width: 400px) {
  .member-photo {
    width: 80px;
    height: 80px;
  }
} 