/* Profile Component - User profile card styling */

.profile-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: center;
  width: 100%;
}

.avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.avatar-upload-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background: #ddd;
  border: 2px solid #fff;
  box-shadow: var(--shadow-lg);
}

.avatar-upload {
  background: var(--brand);
  color: #fff;
  padding: 0.35rem 0.6rem;
  border-radius: var(--br-md);
  font-size: 0.8rem;
  cursor: pointer;
  border: none;
  transition: filter var(--transition-fast);
}

.avatar-upload:hover {
  filter: brightness(1.05);
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.pi-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--fg);
  font-weight: 500;
}

.pi-input {
  width: 95%;
  padding: 0.6rem;
  margin-top: 0.25rem;
  border-radius: var(--br-md);
  border: 1px solid var(--border-color);
  background: var(--bg-dark);
  color: var(--fg);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.pi-input:focus {
  outline: none;
  border-color: #888;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
  background: var(--bg-darker);
}

.pi-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.profile-save-btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* Avatar styles for user menu */
.avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 600px) {
  .profile-card {
    grid-template-columns: 1fr;
  }

  .avatar-wrap {
    flex-direction: row;
    justify-content: flex-start;
  }

  .pi-input {
    width: 100%;
  }
}
