/* ============================================
   INSTAGRAM PAGE — Human Buenos Aires
   ============================================ */

/* ---- PROFILE HEADER ---- */
.ig-profile {
  padding-top: calc(var(--nav-h) + var(--space-12));
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
}

.ig-profile__inner {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  max-width: 640px;
}

.ig-profile__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  /* ring de Instagram */
  outline: 3px solid transparent;
  outline-offset: 3px;
  background-clip: padding-box;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(255,255,255,0.2);
}

.ig-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.ig-profile__info {
  flex: 1;
}

.ig-profile__top {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.ig-profile__handle {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.ig-follow-btn {
  background: #0095f6;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 20px;
  border-radius: 8px;
  transition: background var(--t);
  white-space: nowrap;
}

.ig-follow-btn:hover {
  background: #1877f2;
}

.ig-profile__name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.ig-profile__stats {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-3);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.ig-profile__stats strong {
  color: var(--text);
  font-weight: 600;
}

.ig-profile__bio {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ig-bio-link {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.ig-bio-link:hover {
  text-decoration: underline;
}

/* ---- TABS ---- */
.ig-tabs {
  border-bottom: 1px solid var(--border);
}

.ig-tabs__inner {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
}

.ig-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--space-4) 0;
  border-top: 1px solid transparent;
  margin-top: -1px;
}

.ig-tab--active {
  color: var(--text);
  border-top-color: var(--text);
}

/* ---- FEED ---- */
.ig-feed {
  padding-block: var(--space-2);
}

/* Behold widget override — make it fit our dark theme */
behold-widget {
  --behold-gap: 3px;
}

.ig-no-widget {
  text-align: center;
  padding: var(--space-16);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .ig-profile__inner {
    gap: var(--space-6);
  }

  .ig-profile__avatar {
    width: 72px;
    height: 72px;
  }

  .ig-profile__handle {
    font-size: 1.1rem;
  }
}
