@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

/*==========================================
=              LAYOUT CONTAINERS           =
==========================================*/

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  padding: 12px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: border-box;
}

.main {
  text-align: center;
  margin: auto;
  padding: 12px;
  display: inline-block;
}

/*==========================================
=               PROFILE CARD               =
==========================================*/

.main-div {
  display: inline-block;
  width: 350px;
  border: 2px solid darkgrey;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-div:hover {
/*  transform: scale(1.05);*/
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/*==========================================
=              PROFILE IMAGE               =
==========================================*/

.thumbnail {
  display: block;
  width: 300px;
  height: auto;
  margin: 5px auto;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumbnail:hover {
/*  transform: scale(1.08);*/
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/*==========================================
=              TEXT & LABELS               =
==========================================*/

.display-name {
  font-family: "Lato", sans-serif;
  font-style: normal;
  color: #000;
  font-size: 25px;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.15px;
  margin-bottom: 5px;
}

.p {
  color: #000;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
  margin: 0;
}

.model-details {
  display: flex;
  justify-content: space-around;
  padding: 20px 0;
  font-size: 15px;
  margin: 0;
}

/*==========================================
=          LIVE UPDATE INDICATION          =
==========================================*/

.updating {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.follower-count {
  position: relative;
}

.follower-count.updating::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border: 2px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

.update-time {
  font-size: 0.8em;
  color: #666;
  margin-top: 5px;
}